-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing scope for inital set up when requesting tenants, incorrect examples and other feedback #29
Comments
Thanks @williamthowe.
I didn't realise this. We'll have to double check this and add it the default list of scopes.
Some basic docs on setting up the actually Xero app from their control panel is probably a good idea. 👍
I want to ensure people can store the Xero access token and tenant ID however they wish, so I don't want to necessarily provide precise instructions. However, more details here might be useful.
You are right. Good catch.
Thanks for your feedback. |
@DivineOmega does anything need to be actioned here? Or has everything already been resolved? |
@dextermb These changes haven't been actioned yet. We'll need to test if the It would be a good idea to include docs on setting up the Xero app. And also we need to make the fixes to the documentation described by the bullet pointed items in my 1 April comment above. |
It definitely seems to be the case that |
Also when you renew the token and save it you will need to add json_encode, Update your example code if possible. |
I can confirm this too. Glad I came across this as made me scratch my head a little too. |
The missing |
Hey, thanks for the the library, looks very nice - however I'm just setting it up and have some feedback:
accounting.settings.read
to the default provided scopes inconfig/xero-laravel-lf.php
, because you get 0 tenants back from the initial set up call example you provide which had me floundering for a bit.You save the access token and tenant like so:
but then call it:
$user->xero_access_token
!=$user->xero_oauth_2_access_token
.And when you try to access the data, AccessToken takes an array like so:
Also note that the token gets saved as an object, so you need to pass the access_token param or cast
$user->xero_access_token
to an array I guess.Anyway, thanks! Hopefully the rest is plain sailing :)
The text was updated successfully, but these errors were encountered: