- To download Postman, go to https://www.postman.com/downloads/ and select the relevant bit version of your OS.
- Click the button to download and the installation file for Postman should start downloading. Locate the installation file (usually in the “Downloads” folder) and double-click on the file and complete the installation setup.
Using Postman with MiX Integrate:
In the following section, we’ll cover the following in Postman and provide an example of each:
- Authentication process (getting a token)
- Using the “GET” method.
- Using the “POST” method.
- Using the “PUT” method.
- Using the “DELETE” method.
Authentication process:
MiX Integrate uses an OAuth 2.0 authorization protocol and thus we need to supply Postman with these details to be able to authenticate, receive a token and make subsequent API requests. To get a token, complete the following steps within Postman upon launching the application:
- Click on the Authorization tab at the top.
- Select “OAuth 2.0” as the authentication type.
- Under Configure new token section enter any token name.
- Grant Type, select “Password Credentials”.
- For Access Token URL, the token URL will need to point to the environment where the MiX Fleet Manager account and client ID and client secret lives. Below is a list of the token URL’s:
- https://identity.uk.mixtelematics.com/core/connect/token
- https://identity.za.mixtelematics.com/core/connect/token
- https://identity.ent.mixtelematics.com/core/connect/token
- https://identity.us.mixtelematics.com/core/connect/token
- https://identity.au.mixtelematics.com/core/connect/token
- https://identity.om.mixtelematics.com/core/connect/token
- https://identity.alg.mixtelematics.com/core/connect/token
- Client ID: Details received via mail upon application registration
- Client Secret: Details received via mail upon application registration
- Enter your MiX Fleet Manager username in the username field.
- Enter your MiX Fleet Manager password in the password field.
- Scope: offline_access MiX.Integrate
- Client Authentication: Select “Send as Basic Auth header”
- Once all the details have been completed, click on “Request Token” (note that the below is just an example with the “Access Token URL” pointing to the “uat” environment):
- On the Manage Access Tokens window that pops up, select Use Token”:
- Your newly generated token will be stored under the Header tab and will be sent with each request being made: (you may need to click the hidden icon as shown below if you cannot see the token)
NOTE: The token will expire within 60 minutes after it was initially generated and will need to be replaced by generating a new token to be able to continue making requests.
You can now use it to make requests to MiX Integrate and get a response with the data asked for.