Skip to content

Instantly share code, notes, and snippets.

@camikazegreen
Created September 9, 2013 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camikazegreen/6491477 to your computer and use it in GitHub Desktop.
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)
$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