| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Postman collection for authenticating to the WorkflowMax API using OAuth 2.0.
Follow these steps to quickly get up and running with the WorkflowMax API and Postman:
Click the button below and select the Desktop version of Postman (Chrome extension doesn't support environment variables). This will also install the Collection and Environment we'll be using.
Alternatively, you can download the Xero OAuth2.0.postman_collection and OAuth 2.0.postman_environment JSON files above and import them via the Import button in the top left of the Postman Workplace sceen.
Go to the Xero developer portal and create an OAuth2 app.
If you haven't already signed up for a xero account you can do so here.
Use the following values:
Then:
Copy the Client id, Client secret and OAuth 2.0 redirect URI from the My Apps screen into the environment variables in Postman. To add these details to the Environment, make sure you have the OAuth 2.0 Environment selected, click the eye button, then edit.
Our Developer Center lists the available scopes here. For getting started you will need at least:
offline_access workflowmax
In addition, to make further test calls we would also suggest adding:
openid profile email
Add the scopes required to the scopes environment variable.
Go to your staff list in WorkflowMax and click on your user name. Scroll to the very bottom of the page and tick "Authorise 3rd Party Full Access"
At this stage you will be prompted to log in to Xero.
You'll be taken through to the account Select window. Select the account you want to connect to. If you want to connect to more than one account, you can repeat the steps above and select another account.
If you've included the openid profile email scopes, you'll also be asked to access your basic profile information.
If you see a message saying you have no WorkflowMax accounts go back and complete step 5. "Ensure you have API Access privileges"
Once complete you'll be passed back to Postman.
We now have the last remaining tokens needed to access the Xero API. These need to be set to the Environment Variables, to do this:
Follow the same process for the Refresh Token.
Congrats! You're now authenticated and can start making API calls. Your access token will last for 12mins, after which time you'll need to refresh the token.
| Back | FazBrowse Home | New Git URL |