针对 qbo 使用 c# devkit。当我昨天离开时,一切正常,但是今天尝试初始化测试应用程序中的服务上下文时,我开始收到“Intuit.Ipp.Exception.InvalidTokenException:未经授权”错误。
ServiceContext context = Initializer.InitializeServiceContext(oauthValidator, realmId, string.Empty, string.Empty, dataSourcetype);
错误出现在InitializeServiceContext中: context = new ServiceContext(oauthValidator,realmId,intuitServiceType);
我昨天注册了我的测试公司(即我现在有一个付费的 Quickbooks 在线帐户)我是否不允许继续针对真实帐户进行测试?或者我在某个地方犯了更大的错误。
谢谢
编辑:
当尝试登录 Intuit Developer Playground 上的测试应用程序时,我收到以下错误:
Oops! An error has occurred.
Please close this window and try again.
Error Code: internal_error
Message: Error Authorizing Request Token: <redacted-token>
最佳答案
您的 OAuth token 不再有效。初始化 QBO 的 ServiceContext 对象会检索领域的基本 URL,这需要授权并因此引发未经授权的错误。
关于intuit-partner-platform - Initializer.cs 中的 InitializeServiceContext 已开始在我的测试应用程序中抛出 "Unauthorized",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14507929/