How to use API collection
-
Download .json file from API documentation (http://apismarthub.smartyads.com/docs/).
To do so, right-click on ‘Postman collection’ on the menu, and select ‘Save as…’. Left-click opens .json file in a new tab, where you can also save the file.
-
Open Postman.
-
Click ‘Import’ and choose the file.
-
If the last operation is correct, you will see the collection list (named Smarthub). Choose ‘Login’ in the list.
-
Please find UUID on the platform: open Settings -> Copy UUID.
-
On ‘Headers’ tab of Postman, replace UUID with your data from platform (point #5 above).
-
Go to the ‘Body’ tab and set your password and email that you use to log in into SmartHub platform in the appropriate fields.
-
Click ‘Send’ button.
-
If the last operation is correct, you will see the response with your token. Copy the token (without semicolon).
-
Go to the Authorization tab -> choose ‘Type’ -> ‘Bearer token’-> insert your token to the token field.
-
Click ‘Send’ button.
-
Get success response and use other posts. A token is valid for 24 min.