2

针对 qbo 使用 c# devkit。当我昨天离开时,一切正常,但是今天尝试在我的测试应用程序中初始化服务上下文时,我开始收到“Intuit.Ipp.E​​xception.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>
4

1 回答 1

3

您的 OAuth 令牌不再有效。为 QBO 初始化 ServiceContext 对象会检索领域的基本 URL,这需要授权并因此引发未经授权的错误。

于 2013-01-24T19:02:51.130 回答