App Developers can use our OAuth authentication to generate API tokens. As a developer you just need to send our customers (admins only can use OAuth) to the authentication form, and then request the token from the “redirect url” on your server. Here is how it works.
User Login URL:
Redirect to your URL
If the user successfully logs in, the browser will be redirected to the redirect_url you set when the login form was loaded. The code you need to request a Token will be passed to the redirect url in the query string.
Obtaining a Token
Within your redirect url (script) you will send a get request to our verify url (see below) including both your Client ID and the Code you have received with the redirect.
The verify url will respond with a json object like the following:
Just save the Token value into your server and use it to connect to our API. Don’t forget to redirect the user to a thank you page including detailed information about your App usage.
Sample php code for your redirect script:
//set your client_id
$client_id = “your_client_id“;
$code = $_GET[‘code’];
$response = file_get_contents($verify_url);
In order to obtain a Client ID please get in touch with email@example.com