oauth - 如何更新 Intuit QuickBooks 与 .net 应用程序集成的访问 token secret ?

标签 oauth access-token intuit-partner-platform

我正在使用以下链接中的代码来更新 Intuit QuickBooks 集成的访问 token 。

https://gist.github.com/IntuitDeveloperRelations/7259345

但是,我无法测试此代码,因为 intuit 仅在 token 创建日期后 150 天后才更新其访问 token ,并且我仅在几天前创建了 token 。所以我不知道输出。现在,它正在生成带有错误消息的 xml 响应。

现在这个方法返回给我一个似乎是访问 token 的字符串。我还需要更新 Access Token Secret 吗?如果是,那么如何生成它?或者输出也包含 secret ?

实际上,你能给我这个方法的输出吗?

最佳答案

成功的响应如下所示:

<ReconnectResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://platform.intuit.com/api/v1">    
    <ErrorMessage/>    
    <ErrorCode>0</ErrorCode>    
    <ServerTime>2012-01-04T19:21:21.0782072Z</ServerTime>    
    <OAuthToken>qye2eIdQ5H5yMyrlJflUWh712xfFXjyNnW1MfbC0rz04TfCP</OAuthToken>    
    <OAuthTokenSecret>cyDeUNQTkFzoR0KkDn7viN6uLQxWTobeEUKW7I79</OAuthTokenSecret>
</ReconnectResponse>

引用 Intuit 的 documentation .

请注意,您将获得一个新 token 和一个您应该存储的新 token secret 。

请记住,您可以使用 Intuit's OAuth Playground生成生命周期较短的 token 以进行测试。

关于oauth - 如何更新 Intuit QuickBooks 与 .net 应用程序集成的访问 token secret ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24675145/

相关文章:

oauth - Google 数据 API - 两条腿的身份验证 token 重用

ios - 如何打开 OAuth 弹出窗口(窗口层次结构)

quickbooks - 通过 QuickBooks for Windows 中的 IDS 进行 CreditMemo 对账

asp.net-mvc-4 - 如何使用 MVC 4 实现三足 OAuth?

java - 如何使用 Azure Oauth 应用程序注册为每个环境 (local/dev/test/prod) 提供不同的 URL

asp.net-mvc-4 - 在 VS2012 中运行代码分析时出错

react-native - 如何使用 Expo 获取 FB Access Token

python - 使用 Python-oauth2 在 python 中为 tumblr API 初始化 Oauth 客户端

azure - 如何使用 MSAL 读取 ID token

Karate 直觉 : How to validate dynamic json array