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:
- Requiring the client library.
- Defining a
username
and password
.
- Creating a new unauthorised request and issuing POST to the Token endpoint.
- Handling
token
and expiry
attributes from the response.
- 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!