intuit-partner-platform - 您可以通过 OAuth 检索 Intuit 用户 ID

标签 intuit-partner-platform quickbooks-online

我正在使用“连接到 QuickBooks”按钮创建到 QuickBooks Online 的连接,如下页所述:

http://docs.developer.intuit.com/0025_Intuit_Anywhere/0010_Getting_Started/0020_Connect/0010_From_Within_Your_App/Implement_OAuth_in_Your_App

使用此方法可以检索用户输入的 Intuit 用户 ID(在 Intuit 登录对话框中出现提示时),以便我可以将该用户 ID 与访问 token 、访问 token secret 和 realmId 相关联返回。

最佳答案

Intuit 有一个“当前用户”API,可以满足您的要求。您可以在从 Intuit 获得 OAuth token 后立即发出此 API 请求,然后在您的应用程序中记录关联。

这是它的文档:

您基本上是对该 URL 执行 OAuth GET 请求:

然后 Intuit 会返回一个这样的响应,它将为您提供此人的姓名和电子邮件地址:

<?xml version="1.0"?>
<UserResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns="http://platform.intuit.com/api/v1">
  <ErrorCode>0</ErrorCode>
  <ServerTime>2012-04-13T18:47:34.5422493Z</ServerTime>
  <User>
    <FirstName>John</FirstName>
    <LastName>Doe</LastName>
    <EmailAddress>JohnDoe@g88.net</EmailAddress>
    <IsVerified>true</IsVerified>
  </User>
</UserResponse>

关于intuit-partner-platform - 您可以通过 OAuth 检索 Intuit 用户 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16197470/

相关文章:

c# - 使用 QuickBooks Online (QBO) Intuit 合作伙伴平台 (IPP) DevKit 查询具有未结余额的所有发票

quickbooks - 如何从桌面应用程序在线连接到 QuickBooks

intuit-partner-platform - Quickbooks Online 连接到特定公司

intuit-partner-platform - 澳大利亚 API 可用性

php - Quickbooks Online API - 设置 docNumber 默认自动增量

quickbooks - Intuit Anywhere API 告诉我某个字段在已指定时为必填字段

quickbooks - 如何使用 QBXML 将行项目添加到现有销售订单

php - 如何使用 php api 访问 Quickbooks 发票行项目

syntax-error - “Error validating Name:Invalid string.”添加客户时

asp.net - 与 QuickBooks Online V3 API 交互