Token authorisation example v1.2

This example details the Token authorisation method and how it can be used in conjuction with our client libraries. Please see our Token documentation for more information about this method and why you might consider using it.

Step by step

This example will run you through:

  1. Requiring the client library.
  2. Defining a username and password.
  3. Creating a new unauthorised request and issuing POST to the Token endpoint.
  4. Handling token and expiry attributes from the response.
  5. Creating a new authorised request, ready for further integration.

Supported languages

We are always improving the examples we offer, if your language isn't supported here then it may be coming soon!