Get Token for Authentication
POST https://rest.webropolsurveys.com/token
Gets the bearer token with user credentials provided in body. Also sets the retrieved access_token to Collection variables, after which you're able to run the rest of the requests.
Request Body
[{"name"=>"grant_type", "value"=>"password", "datatype"=>"string"}, {"name"=>"username", "value"=>"{{username}}", "datatype"=>"string"}, {"name"=>"password", "value"=>"{{password}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"access_token":"IwEobrfOrBV1SM1XuNGkn_8t56rca_mkWAzVbDiSwhq7R157FpywRAYooqtnCZL7uVpbkB83Q11IuqorKouDkUPxjOLc8j3TqtKY1Vl--i9tOey0VlAoe7w2PVGd8Iuw2JUsd_Ry3pHLpjUD759GgPF6YWm8aBsq_enov2EQ","token_type":"bearer","expires_in":14399,"refresh_token":"ZckZG7eV25Cbhsu3FSekUtpp838TSwqq4lAUfdYDw0KkUZAb_vnrMTeJlbT5Da4dhwaxA2GQI2GUceT","userName":"webropol-username",".issued":"Fri, 28 May 2021 07:58:27 GMT",".expires":"Fri, 28 May 2021 11:58:27 GMT"}