How to Authenticate MYOB API and Get Data in Php

Myob is popular accounting software of Australia and New Zealand. Its provides tax, accounting and other service to small and medium businesses.

Lets get started with MYOB api authentication process. To access all accounting data outside, you need to authenticate it via account credential.

To authenticate with MYOB api, you need Client ID and Secret key. Use scope as CompanyFIle and grant type as authorization_code.

Steps to Get Myob API Authentication

Step 1: Getting Code to get access token to authenticate api call. Save below code in get-data.php file.

Step 2: After this file hit on server, you will get the code which is use for get the access token.

Use below authenticate.php to generate the token. In this file use your Myob Accountright file access credential.

This will generate new access token every time using created Refresh Token. In this way, no need to authenticate it via account login credential again an again.

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

2 thoughts on “How to Authenticate MYOB API and Get Data in Php”

Leave a Comment

Your email address will not be published. Required fields are marked *