First of all, you need to create an account. It’s free and it takes a minute. Once you are there, click on “Developer”, and create an OAuth 2.0 client. Download the client secret JSON, which should look like:
The client’s id and secret uniquely identify your application. A client can access several HubRise accounts, so you will generally need to create only one client.
To access a HubRise account, you need the account owner approval. Open a web browser with this URL:
If you try it, don’t forget to encode the query parameters. Or just copy this link and replace the
client_id with yours.
HubRise authenticates the user, prompts him to choose the location, account, catalog and customer list he’s willing to connect, and obtain consent to access the requested scope. If the user is not logged in, he will be able to sign in or create an account.
HubRise server sends the result of the authorization to the provided URL. If the user approves the request, then the response contains an authorization code that looks like:
Now let’s see how we get an access token from the returned code.