Skip to content

Instantly share code, notes, and snippets.

@ronanq
Last active September 8, 2015 09:24
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 ronanq/c5d078ea57a1ae0b7317 to your computer and use it in GitHub Desktop.
Save ronanq/c5d078ea57a1ae0b7317 to your computer and use it in GitHub Desktop.
XeroOAuth-PHP config example with site url override
<?php
// standard config settings go before this, just including the bit to change
$signatures = array(
'consumer_key' => 'YOURCONSUMERKEY',
'shared_secret' => 'YOURCONSUMERSECRET',
# BIT TO CHANGE
// Override default settings with SHA2 URLs
'xero_url' => 'https://sha2-api.xero.com/',
'site' => 'https://sha2-api.xero.com',
'authorize_url' => 'https://sha2-api.xero.com/oauth/Authorize',
# BIT TO CHANGE ENDS
// API versions
'core_version'=> '2.0',
'payroll_version'=> '1.0',
'file_version' => '1.0'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment