2. Example Postman
In postman you should first retrieve a bearer, and then you can use the api’s.
Get Bearer
IMPORTANT!!! This is a simple example. You should use variables in Postman since it is considere more safe.
- Change the request to Post
- Enter the URL (https://api.ubidogy.com/api/getToken
- Add the jsonbody (username/apikey) and CLICK SEND
- Retrieve the token
Get content
Now you just open a new tab, and enter the URL that you want to use
- Choose GET (if it is a post request, then choose post of course)
- Enter the URL
- Choose Authorization
- Choose Bearer Token
- Enter the token form the getToken request
- Press Send
- And in the output you now have a nice Json formatted result.
0 Comments