Intuit App:为OAuth 2.0获取accessTokenKey时出错

时间:2017-08-10 00:21:56

标签: php api oauth intuit

我是Quickbooks的新手,想要通过OAuth 2.0协议使用API​​。为此,我根据Quickbooks文档执行了以下步骤。

  1. 我创建了一个Intuit开发者帐户。
  2. 我已经创建了一个用于测试目的的应用程序。
  3. 我为测试应用程序提供了OAuth密钥。
  4. 我想使用Quickbooks提供的PHP SDK进行API请求,我开始根据PHP SDK的说明使用代码:

    
        require "vendor/autoload.php";
        use QuickBooksOnline\API\DataService\DataService;    
        $dataService = DataService::Configure(array(
        'auth_mode' => 'oauth2',
        'ClientID' => "Q0lCkcEshsGMHOEula2r5RKc2yhxvMsYEpKN1lw1WZwyfd1Si6",
        'ClientSecret' => "gE0F9hLgwx9OBzRpNxyOvWJH6L2fIhzAwBugPJHq",
        'accessTokenKey' => 'eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..4z4Assj4x1qt8H4DtQco6A.nmV2jTxaDMVdFWEUO16q5qhbd5aD6U-U-RYnSNywqg-HPC_3_jvwpMJU1a1S5X-PgPUy60WvVy_8p1awY7kIoFzTV4IhdFLrZpYtBUGCjcsvjxWeOSgP6oCayBEmCv7zzabtgB6vxU46jQqKX2IXYUGPPtyYO64hrgELFR4SKUK6boZiVnh8z19gnvsReKMmIINA3-NgC6QJqMRp6HWgzCa9RuDN9tCtrAK2dy5xmJRNSNgdv_gyg1bfdX4l4b30fLPzFk31fsTT9NTJq9PuGtdTsvUuCj7Hme6HPldD9TKYRXWU8TKrQQrQWEpdlbPr6F3rhP6IdmCv9t1XH_WzF_1IseRUoYhiTUjubig-j8gzwajIdYQTzpJQKJ92QiAEyt8k40WWg0v69hEC0w7WRBuUE-IJ50xWypqS_P28IWt1G14rovZ97soGOteSik-41g1icR2zxfNhXGq7zO7oU5B8r-ej5Pb52T0MCMktgd6y32bqwo2pcEzblL2bZs7DZ7LDx5peY4TIfGW21crTE6xjhRr7LdqB8K505pRqIOP20eaRgwtGHLZ3bdBt1_negw2AGjc409BM0nLzzmODxr3yo-YdGwkcOjm5QgbGAsrnpoSo9tSpxPHoN0vMRneRdsKCd6CZG5M1OIOMuj7spkm442tvwiAMCx2Fh-STG6fMnhOq7l_f8NW_3kscxtF2.obQxJKjPfi1KlaQQ_OUoNg',
        'refreshTokenKey' => "L011509163184Q0K7DT40SVXhJXAfyoj6B6EbSr3Ty64yVvF5A",
        'QBORealmID' => "123145857569084",
        'baseUrl' => "https://sandbox-quickbooks.api.intuit.com"
    ));
    
    
  5. 我正忙于获取 accessTokenKey 以完成配置并开始执行API请求。 QuickBooks提供了一个名为 OAuth Playground 的工具,用于获取 accessTokenKey 。我将应用程序密钥中的客户端ID 客户端密钥设置为消费者密钥消费者密钥 OAuth Playground&#39> 屏幕并按连接到QiuckBooks,但它给了我这个错误:
    We were unable to process your request.
    
    This error can occur when too much time has passed in the request. We have been notified of the problem and will investigate further.
    
    Please contact us for further assistance.
    Error Id: cxgdknrkjzppmjifkv2ipsgp-29491421
    
  6. 有人可以帮我解决这个错误吗?

0 个答案:

没有答案