使用API首次签名凭据错误 [英] credentials error signing in the first time using API
问题描述
我在 http://msdn.microsoft.com/中试用了示例代码。 EN-US /库/ jj966345.aspx 功能,将用户名,密码和令牌更改为我刚刚通过注册过程获得的用户名,密码和令牌。特别是
,我使用的用户名是以&api_" 开头的API用户名,我确认我可以使用此用户名和密码暂时登录Web UI。 这是一个生产帐户。
I tried out the sample code in http://msdn.microsoft.com/en-US/library/jj966345.aspx , after changing the username, password, and token to those I just obtained through the signup process. in particular, the username I used is the API username that starts with "api_" , I verified that I can suscessfully log into the web UI using this username and password. this is a production account.
但我收到以下错误:
2013年5月1日下午6:28:05 org.apache.axis.utils.JavaUtils isAttachmentSupported
警告:无法使用找到所需的类(javax.activation.DataHandler和javax.mail.internet.MimeMultipart)。附件支持已禁用。
操作失败并出现以下错误:
May 01, 2013 6:28:05 PM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
The operation failed with the following faults:
AdApiError
代码:105
错误代码:InvalidCredentials
消息:身份验证失败。提供的凭据无效或帐户无效
AdApiError
Code: 105
Error Code: InvalidCredentials
Message: Authentication failed. Either supplied credentials are invalid or the account is inactive
为什么会出错?这很奇怪,因为相同的凭证在用户界面上工作正常。
why is it giving errors ? it's strange since the same credentials work fine on the UI.
我唯一可以发现的怀疑是,当我登录用户界面时,我查看显示为"待处理"的帐户状态和"财务状况"为"暂停"。这可能是原因吗?
the only suspicion I can find is that when I log into the UI, I see the account status shown as "pending" and financial status as "on hold". could this be the reason?
我试过沙盒帐户,同样的问题
I tried the sandbox account, same issue
谢谢
杨
推荐答案
我确定这不是一个帐户问题,因为我使用python示例查询相同的内容,并且它有效。
well I determined that this is not an account problem, because I used the python examples to query the same thing, and it worked.
这篇关于使用API首次签名凭据错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!