Talenox supports using OAuth 2.0 to grant third-party systems to access Talenox resources.
With OAuth 2.0 application, users are able to define their own permission for accessing the resources.
For more details, you can head over to the Talenox API documentation.
Where to find and create
Login to Talenox, click on your user name at top right of the menu bar.
Click on API Settings > developer page > New Application to create Oauth app in Talenox
Fill in the following to generate client credentials:
Redirect URI:
https://oauth.pstmn.io/v1/callback
Origin URI - Leave blank for postman. Note that this should be filled in for actual app setup and should be your app domain url.
scopes - e.g.
leave
orleave_read leave_write
. Note that this space-delimited.
Press submit. Note that you should save the client id and secret on your own to use in step 5, as you won’t be able to view the secret after this.
Open Postman, click on Talenox Leave Api Demo and click “
Variables
”In “Variables” tab, update initial values and current values based on your Oauth app created on Talenox:
CLIENT_ID
CLIENT_SECRET
OAUTH_SCOPE - e.g. leave or leave_read,leave_write,profile_read,profile_write
Press save to save the values
Test by running one of the endpoints. Click on “
Get leave types
” > click on “Authorization tab
” and > click on “Get New Access Token
”You will see the Oauth prompt to select a company in your browser. Select a company and press ‘Authorize’.
The browser will prompt you to open postman.app. Click “
open postman.app
” and press “proceed” when shown the Authorization complete prompt.Postman will show the token details like below. Press “
Use token
”Press “Send” on Postman to run the api. You should see the response below:
Access token has expiry duration (30 mins) and tokens will be refreshed on a periodic basis