Thanks to visit codestin.com
Credit goes to i-done-this.readme.io

Authentication

I Done This has two ways of authenticating with the API. Via API Token or OAuth token.

You can find the API Token located in your Account Settings: https://beta.idonethis.com/u/settings. If you have any further questions, please refer to the Help Desk or contact us at [email protected]

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",
   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.

To pass the API Token using parameters field, use
api_token=##OAUTHORAPIKEY##

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