MYOBCommunity
Partner Zone
|
|
Partner Zone

PHP API oAuth access code

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
2 REPLIES 2
Former Staff DeveloperJack
141 Posts
Former Staff
Australia
DeveloperJack
Former Staff

141Posts

31Kudos

21Solutions

Re: PHP API oAuth access code

Hi there,
There is no alternative to using OAuth - you MUST implement Oauth to get authorization from your customer to access their data. For CLI applications, this might be during installation or configuration.

Once authenticated, you can use the refresh tokens to refresh the access token which can be done in a headless application (e.g. your CLI tool).

If you need assistance with this feel free to reach out to the API team via developers@myob.com.

Cheers,
Jack
Jack Skinner
MYOBapi Evangelist

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/
Contributing Partner Nocturnal0107
8 Posts
Contributing Partner
Nocturnal0107
Contributing Partner

8Posts

1Kudos

1Solutions

Accepted Solution Solved Solution

Re: PHP API oAuth access code

You may close this thread, already made a workaround

Highlighted
Contributing Partner Nocturnal0107
8 Posts
Contributing Partner
Nocturnal0107
Contributing Partner

8Posts

1Kudos

1Solutions

Solved: Go to Solution

PHP API oAuth access code

Good day Everyone,

 

Is it posible to get Access Code without loging your MYOB Account? or include on the request?

 

for example:

https://secure.myob.com/oauth2/account/authorize?client_id=f8xsgrvgngfj52xupx3h3a2m&redirect_uri=http://remote.genissteel.com.au:7580/MYOB_API&response_type=code&scope=CompanyFile&USERNAME=MY.MYOB@MYDOMAIN.COM&PASSWORD=MY.PASSWORD

I need this because i'm access the API via PHP CLI so I cant login my account there.

 

Thank you. 

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post