Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
March 2019
March 2019
I want to get access token without going to the login screen. When I send a CURL request to obtain access token I am redirected to myob login screen, how to skip that?
March 2019
March 2019
You need the user to login to their account via secure.myob.com to authenticate and retrieve the access code initially. After that you can use the access token and refresh token without the user re-authenticating via the website.
April 2019
April 2019
I need to do the same, as I am trying to connect to MYOB via an Azure function.
This is the code that MYOB have published -
var developerKey = "YOUR API KEY"; var developerSecret = "YOUR API SECRET"; var configuration = new ApiConfiguration(developerKey, developerSecret, "http://desktop"); var oauthService = new OAuthService(configuration); var tokens = oauthService.GetTokens(OAuthLogin.GetAuthorizationCode(configuration)); var keystore = new SimpleOAuthKeyService();keystore.OAuthResponse = tokens; // Get Company Files var cfService = new CompanyFileService(configuration, null, keystore); var companyFiles = cfService.GetRange();
The problem is the GetAuthorizationCode function as that function opens the MYOB login page and returns the authorization code via the HTML.
Surely there must be another way to generate the code?
16
|
235
|
|||
1
|
217
|
|||
41
|
3350
|
|||
8
|
564
|
|||
8
|
760
|