[英]“Incorrect username or password” error message in Qualtrics API v2.5
Due to some features that I wish were available in Qualtrics v3 ( see previous post ), I checked out their most recent previous version ( v2.5 ) to try to find a GET request which closely approximates the data from individual surveys that I'm trying to obtain on each request. 由于我希望Qualtrics v3中提供某些功能( 请参阅上一篇文章 ),因此我检查了他们的最新前一版本( v2.5 ),以尝试找到一个GET请求,该请求与我所进行的各个调查的数据非常接近尝试获取每个请求。 However, when I do their built-in API test on my own credentials:
但是,当我使用自己的凭据进行内置API测试时:
I get the following error: 我收到以下错误:
<XML>
<Meta>
<Status>Error</Status>
<RequestType>getSurvey</RequestType>
<ErrorCode>500</ErrorCode>
<QualtricsErrorCode>ESRV09</QualtricsErrorCode>
<ErrorMessage>Incorrect Username or Password</ErrorMessage>
<Debug/>
</Meta>
<Result/>
I've double-checked to ensure that I'm entering the proper credentials, well-defined survey ID, and API token, but am not sure why I am getting this error. 我已仔细检查以确保输入正确的凭据,定义明确的调查ID和API令牌,但不确定为什么会收到此错误。
As an aside, if there is another survey platform (such as SurveyMonkey) which has an API which allows me to extract information from individual surveyIDs without having to export everything manually first, I would greatly appreciate any knowledge of such services. 顺便说一句,如果有另一个具有API的调查平台(例如SurveyMonkey),该API允许我从单个SurveyID中提取信息,而不必先手动导出所有内容,那么我将不胜感激对此类服务的任何了解。
Based on the image above you are missing the URL field, which should be api.php. 根据上图,您缺少URL字段,该字段应为api.php。 Also, I think you want response data, so the request would be getLegacyResponseData.
另外,我认为您需要响应数据,因此请求将是getLegacyResponseData。
At a minimum, the actual generated url should be something like this: 实际生成的URL至少应如下所示:
https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?API_SELECT=ControlPanel&Version=2.5&Request=getLegacyResponseData&User=[user_name_here]&Token=[token_here]&Format=JSON&SurveyID=[survey_id_here] https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?API_SELECT=ControlPanel&Version=2.5&Request=getLegacyResponseData&User=[user_name_here]&Token=[token_here]&Format=JSON&SurveyID=[survey_id_here]
You should not set JSONPCallback to false. 您不应将JSONPCallback设置为false。 Set it to true and to setup your Ajax call properly, refer to JQuery JSONP documentation
将其设置为true并正确设置您的Ajax调用,请参考JQuery JSONP文档
I called the Qualtrics customer support line when I was getting the same error. 遇到相同错误时,我致电Qualtrics客户支持热线。 It turns out my organization changed the way that users get access to Qualtrics from individual accounts to using single sign on.
事实证明,我的组织将用户从单个帐户访问Qualtrics的方式更改为使用单点登录。 When they did that my username changed!
当他们这样做时,我的用户名更改了! It used to me my organizational email address, but after the change it was different, although the API token was the same.
它曾经是我的组织电子邮件地址,但更改之后就不同了,尽管API令牌相同。 In order to find your username:
为了找到您的用户名:
I was surprised that my username was NOT the email address that I used to get access to my account. 我很惊讶我的用户名不是我用来访问帐户的电子邮件地址。 Hope this helps someone!
希望这对某人有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.