API Authentification

I Done This has two ways of authenticating with the API, via API token or OAuth token.

In order to get access to the API and whether an API token is enough, or if you want to create your own OAuth application that your application can use to create a full third-party integration; please contact our customer support team at support@idonethis.com.

API TOKEN:

The API Token will give you access to your user and its usage is very simple and straightforward. Authentication is done with the Header parameter  Authorization as key and Token YourTokenHere as value.

See Javascript jQuery sample request below. 

$.ajax({      	 	url: "https://beta.idonethis.com/api/v2/entries",    <br>	type: "GET",     	beforeSend: function(xhr){ xhr.setRequestHeader('Authorization', 'Token abcdef12345'); },      	 	success: function() { alert('Success!'); }   }); 	

OAUTH AUTHENTICATION

If you are building an application that need to authenticate I Done This users as part of its flow, e.g. a third-party integration, you will need an OAuth application created by I Done This. After creation, you will receive a Client ID and a Client Secret that you can use as part of the standard OAuth authentication flow to let your application approve access to I Done This.

Once the OAuth handshake has been done and credentials for the user have been established, you can access the API on behalf of that user with the standard OAuth token authentication header.

More details of the OAuth endpoints, authentication and sample code will be provided here soon.

Still need help? Contact Us Contact Us