enableHR uses the OAuth 2.0 authorization code flow to issue API access tokens on behalf of users. Please get an understanding of OAuth 2.0 from https://oauth.net before proceeding if you are not familiar with the protocols.
Before you can start using the enableHR API you need to get the client credentials for your application.
At this point you will have to contact enableHR via email or phone to get the client credentials for your application
property | description |
---|---|
redirect_uri | this is the callback URL within your application that will be called after the user has authenticated and authorized access to your application |
client_id | provided by enablehr once you provide use the redirect_uri |
client_secret | provided by enablehr once provide the redirect_uri |
enableHR will provide you the client_id and client_secret via an email or SMS
Keep the client secret safe as this is your password to access our API's
enablehr uses the OpenAPI specifications and uses OpenAPI 3.0 to specify our API.
enableHR API specifications can be found at https://rest.enablehr.com/enablehr.yaml OR https://rest.enablehr.com/enablehr.json.
OpenAPI tools allow you to program in any language of your choice. OpenAPI offers tools to allow you to generate code from the OpenAPI specifications. Once you have selected your language the next step will show you how to generate the code in your selected language
The following steps are using the online editor http://editor.swagger.io There are build tools available from OpenAPITools that can be incorporated into a build process.
Unzip the file in an appropriate directory and use the README.md file to identify the steps to build the code for accessing the endpoint.
To use this code you will need to add additional code to extract the OAUTH 2.0 token and provide it to each call of the API.
Use the instructions found in README.md to compile the libraries
Follow the normal process to build your application using your IDE or your build tools.
Please see authentication for further details.