Created
September 9, 2013 04:30
-
-
Save camikazegreen/6491477 to your computer and use it in GitHub Desktop.
Drupal OAuth Connector module settings for Intuit Partner Platform (QuickBooks Online API, IPP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$provider = new stdClass(); | |
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */ | |
$provider->api_version = 1; | |
$provider->name = 'ipp'; | |
$provider->title = 'ipp'; | |
$provider->url = 'https://oauth.intuit.com'; | |
$provider->consumer_advanced = array( | |
'oauth2' => 0, | |
'signature method' => 'HMAC-SHA1', | |
'authentication realm' => '', | |
'request token endpoint' => '/oauth/v1/get_request_token', | |
'authorization scope' => '', | |
'authorization endpoint' => 'https://appcenter.intuit.com/Connect/Begin', | |
'access token endpoint' => 'https://oauth.intuit.com/oauth/v1/get_access_token', | |
); | |
$provider->mapping = array( | |
'fields' => array( | |
'uid' => array( | |
'resource' => 'https://appcenter.intuit.com/api/v1/user/current', | |
'method post' => 0, | |
'field' => 'User', | |
'querypath' => 0, | |
'sync_with_field' => '', | |
), | |
'name' => array( | |
'resource' => '', | |
'method post' => 0, | |
'field' => '', | |
'querypath' => 0, | |
'sync_with_field' => '', | |
), | |
'avatar' => array( | |
'resource' => '', | |
'method post' => 0, | |
'field' => '', | |
'querypath' => 0, | |
'sync_with_field' => '', | |
), | |
), | |
'format' => 'xml', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment