Skip to content

Commit

Permalink
Merge pull request #16 from XeroAPI/sid-development
Browse files Browse the repository at this point in the history
Update to add Assets, Identity and Project example calls
  • Loading branch information
SidneyAllen authored Mar 10, 2020
2 parents 0b2f5dd + 7ab3ef9 commit b50089a
Show file tree
Hide file tree
Showing 6 changed files with 956 additions and 233 deletions.
2 changes: 1 addition & 1 deletion authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// If we don't have an authorization code then get one
if (!isset($_GET['code'])) {
$options = [
'scope' => ['openid email profile offline_access accounting.settings accounting.transactions accounting.contacts accounting.journals.read accounting.reports.read accounting.attachments']
'scope' => ['openid email profile offline_access assets projects accounting.settings accounting.transactions accounting.contacts accounting.journals.read accounting.reports.read accounting.attachments']
];

// Fetch the authorization URL from the provider; this returns the urlAuthorize option and generates and applies any necessary parameters (e.g. state).
Expand Down
1 change: 0 additions & 1 deletion callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
echo $jwt->getGivenName();

$config = XeroAPI\XeroPHP\Configuration::getDefaultConfiguration()->setAccessToken( (string)$accessToken->getToken() );
$config->setHost("https://api.xero.com");
$identityInstance = new XeroAPI\XeroPHP\Api\IdentityApi(
new GuzzleHttp\Client(),
$config
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Xero oAuth2 app for PHP",
"type": "project",
"require": {
"xeroapi/xero-php-oauth2": "1.2.0",
"xeroapi/xero-php-oauth2": "1.4.0",
"monolog/monolog": "1.0",
"vlucas/phpdotenv": "^4.1"
},
Expand Down
Loading

0 comments on commit b50089a

Please sign in to comment.