Python or JS documentation to call the APIs
In addition to the Postman Collection, is there any documentation on how to call the APIs in Python or JS (if we're working to automate the APIs calls in our company)?
-
Hi Amiteshwar,
We don't have examples like that yet, but thanks for the suggestion. We're examining how we might help developers build on the Toast Platform, and comments like this help us understand what tools might be valuable.
Matt
0 -
Thanks for the response Matt Welch. I was curious how the pm.sendRequest() would look like if called in Javascript. Is it just a normal fetch function (with the authentication object as one of the parameters)? Looking forward to your experienced response!
0 -
There are any number of ways to make requests in node/javascript. Postman has a very opinionated way of running pre-request scripts. It might me helpful to just look at the authentication documentation and build your node code from that, rather than trying to copy the Postman code directly, though it can certainly serve as inspiration! You can look at the docs for sendRequest here.
0
Please sign in to leave a comment.
Comments
3 comments