美好的一天,
我刚从github下载并安装在我的localhost QuickBooks PHP DevKit - IPP Intuit Anywhere演示应用程序中。
然后我尝试访问“example_app_ipp_v3”文件夹以启动我的应用 (也配置了config.php)
<?php
/**
* Intuit Partner Platform configuration variables
*
* See the scripts that use these variables for more details.
*
* @package QuickBooks
* @subpackage Documentation
*/
// Turn on some error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Require the library code
require_once dirname(__FILE__) . '/../../../QuickBooks.php';
// Your application token (Intuit will give you this when you register an Intuit Anywhere app)
$token = '961a033ab1294b4499bb04dbd0d14744c9ba';
// $token = '96262faa-cf42-424a-b7ff-7637a939a591';
// Your OAuth consumer key and secret (Intuit will give you both of these when you register an Intuit app)
//
// IMPORTANT:
// To pass your tech review with Intuit, you'll have to AES encrypt these and
// store them somewhere safe.
//
// The OAuth request/access tokens will be encrypted and stored for you by the
// PHP DevKit IntuitAnywhere classes automatically.
$oauth_consumer_key = 'qyprdZ5wvJ7vfPWWl0ez5kMRJlTF5H';
$oauth_consumer_secret = 'qv46uqwMemeMCb2FqllAnjOYMf4T4YOwU9eL02HG';
// If you're using DEVELOPMENT TOKENS, you MUST USE SANDBOX MODE!!! If you're in PRODUCTION, then DO NOT use sandbox.
$sandbox = true; // When you're using development tokens
//$sandbox = false; // When you're using production tokens
// This is the URL of your OAuth auth handler page
$quickbooks_oauth_url = 'http://qbintegrations.com/docs/partner_platform/example_app_ipp_v3/oauth.php';
// This is the URL to forward the user to after they have connected to IPP/IDS via OAuth
$quickbooks_success_url = 'http://qbintegrations.com/quickbooks-php/docs/partner_platform/example_app_ipp_v3/success.php';
// This is the menu URL script
$quickbooks_menu_url = 'http://qbintegrations.com/quickbooks-php/docs/partner_platform/example_app_ipp_v3/menu.php';
// This is a database connection string that will be used to store the OAuth credentials
// $dsn = 'pgsql://username:password@hostname/database';
// $dsn = 'mysql://username:password@hostname/database';
$dsn = 'mysqli://root:hack2help@localhost/qb_db';
// You should set this to an encryption key specific to your app
$encryption_key = 'bcde1234';
// Do not change this unless you really know what you're doing!!! 99% of apps will not require a change to this.
$the_username = 'DO_NOT_CHANGE_ME';
但是当我点击连接按钮时,我收到了这个错误..
我尝试在在线网络服务器上传相同的文件,然后我成功连接到QB .. (在config.php [database和url]上进行了轻微配置,但使用了相同的令牌)
顺便说一句..它也是在虚拟主机上设置的..现在我想在我的localhost上成功连接,这样我就可以更快地发展。 请帮帮我:)谢谢!