I am trying to do an API call Via the "REST client" extension in VSCode. I think I am doing it correctly, but I keep receiving an error that says: "Expected authorization in headers, but none provided." I am wondering if it has something to do with my sign-on security (2-factor authentication).
Any help would be much appreciated!
This is my full script (I did not include the actual API, SurveyID, DataCenter for security reasons):
POST https://DATACENTER.qualtrics.com/API/v3/responseexports HTTP/1.1
Content-Type: application/json
X-API-TOKEN: myapitoken
{
"surveyId": "SV_SURVEYID",
"format": "csv"
}
GET https://DATACENTER.qualtrics.com/API/v3/responseexports/ES_1234
X-API-TOKEN: myapitoken
GET https://DATACENTER.qualtrics.com/API/v3/responseexports/ES_1234/file
X-API-TOKEN: myapitoken