This tells Postman to get the response header "X-BISCOTTI" from the request and store it in our global variable "session_token". tGlobalVariable("session_token",postman.getResponseHeader("X-BISCOTTI") ) Postman automatically handles the cookie but we need to capture the "X-BISCOTTI" token to use in the other requests, so if you click on "Tests" you'll see this line: So if you click on the AMP: Login request then click "body" you'll see we're supplying credentials ampadmin/Aruba123! and an optional destination value (that I don't think does anything, but I made it drive to "/api" anyway). Per the Airwave 8.2.8 API Guide we see that we need to supply "credential_0" and "credential_1" as username and password respectively. We'll need to run this POST request first in order to get the session cookie and token we need to authenticate us to use any of the other POST requests (it seems like just the cookie is good enough to successfully run GET requests). I can throw the raw import into a pastebin and share it here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |