vizad / intuit
此包已被废弃且不再维护。未建议替代包。
Intuit 的 OAuth 1.0 客户端,使用 The PHP League OAuth1-Client
v1.0
2016-07-09 13:02 UTC
Requires
- php: >=5.4.0
- league/oauth1-client: ~1.2
This package is auto-updated.
Last update: 2021-05-21 07:56:09 UTC
README
通过 Composer 安装
composer require vizad/intuit
用法
define('QB_CUSTOMER_ID', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); define('QB_CUSTOMER_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $intuitClient = new Vizad\Intuit([ 'identifier' => QB_CUSTOMER_ID, 'secret' => QB_CUSTOMER_SECRET, 'callback_uri' => "CALLBACK_URI", 'sandboxMode' => true ]); $temporaryCredentials = $intuitClient->getTemporaryCredentials(); $_SESSION['temporary_credentials'] = serialize($temporaryCredentials); $authurl = $intuitClient->getAuthorizationUrl($temporaryCredentials); echo "<a href='".$authurl."'>Connect to Quickbooks Account</a>";