API Testing with RestLet (Chrome)
Restlet is a powerful extension from Chrome which provides automated API testing. You can easily test requests with the Neobi API in minutes using the user friendly extension.
Restlet Client is the most popular REST client available as a Chrome extension. It automatically updates itself, can be opened in one or several browser tabs and comes with a convenient browser toolbar icon.
If you haven't already, please sign up for a Free account in the Developer portal. Also, download the latest copy of Restlet client so you can follow along.
1) Register an Application with Neobi
To obtain a ‘client_id’ and ‘client_secret’, you must register an Application in the Developer portal:
Once we receive and approve your request, you will get an email with the ID and secret. Keep these safe and do not let anyone access them.
2) Use Restlet to alobtain an Authentication Token
In order to make requests to the Neobi Cannabis API, you must use an authentication token which you can obtain by the following configuration. In the Restlet application, choose POST as the type and send a request to the following authorization endpoint:
Add these Key / Value pairs to the Body of the request and you should get a response with an access token / bearer:
Hit SEND and you should receive a response with several values including a bearer token which you can copy and use in any subsequent Requests.