Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
My Developer keys somehow were not active in that case. Helen activated them and I got through.
Hi there @Rizwan46,
I can see we have an open support ticket for you where we'll continue to assist.
For the benefit of anyone else reading this thread, a 403 error is most commonly down to the API key. It happens when the key is missing from the headers or if the key is inactive. You can reach out to firstname.lastname@example.org if new keys you create require activation.
Oauth2 is a required process (it cannot be skipped) however it is a one-time setup where you can use the refresh tokens for ongoing access. As a result, you can set up your Oauth2 code to run as a configuration or setup screen and store tokens securely for your background 'headless' process to run.
I am new to MYOB development and I am facing many issues. I am not able to access company flie using the sample C# code as in below:-
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;
//tokens = oauthService.RenewTokens(keystore.OAuthResponse);
// Get Company Files
var cfService = new CompanyFileService(configuration, null, keystore);
var companyFiles = cfService.GetRange();
I get a 403- Forbidden issue when trying to Get files from cloud? any idea?
Apart from the above I would like to know:-
Is it possible to get auth code and auth tokens withouth actually using a web browser interface as I want to get both from backed (no login/user intervention required).
Many Thanks in Advance
Solved! Go to Solution.
by MANGI on June