Postman Environment Setup
I have imported the Postman collection to my instance. I do not have an environment configured, and there are variables throughout the Box Postman collection that need a point of reference. I am using the OAuth2.0 authentication. On the first call, for example, the variable in the url is 'client_id'. How can I set up the environement so that variables are properly used?
I have the ability to create the token on the developer portal, but cannot figure out how to get Postman to work with my instance. Thank you
-
Hey ,
Thanks for using the Box Postman Collection!
Getting started could be a bit overwhelming but I can assure you it's not too bad.
What you will want to do is choose any endpoint you're interested in trying out. In this case, let's try out the Get Folder Items call. Once you select that in Postman you will see that the Request Method is "GET" and the url to the right of the method is https://api.box.com/2.0/folders/folder_id/items.
Replace the folder_id with 0 to specify that it's the root.
Finally, below, in the Headers tab, you will see key value pairs like so
In the Key column type in "Authorization" and in the Value column type in "Bearer Your-Developer-Token" so it will look something like this "Bearer aq23seDBd3fse35s" (not a real dev token)
After you have that in there hit send in the top right and you should be able to see a response from Box.
Hope this helps and let us know if you run into any other issues, thanks!
Please sign in to leave a comment.
Comments
1 comment