langleyfoxall / xero-laravel

💸 Access the Xero accounting system using an Eloquent-like syntax
https://packagist.org/packages/langleyfoxall/xero-laravel
GNU Lesser General Public License v3.0
85 stars 40 forks source link

You are not permitted to access this resource #37

Closed SFD153 closed 3 years ago

SFD153 commented 3 years ago

I got 'You are not permitted to access this resource' from the following code. Is there any method to solve this issue?

$access_token_object = json_decode($access_token);

$xero = new XeroApp( new AccessToken( array( 'access_token' => $access_token_object->access_token, 'refresh_token' => $access_token_object->refresh_token, 'expires' => $access_token_object->expires, ) ), $xero_tenantid );