ContributionsMost RecentMost LikesSolutionsRe: doco makes reference to OAuthLogin.GetAuthorizationCode...where is this class? Thanks for the replykjm. I have the access tokens and I'm passing them into the SimpleOAuthKeyService.OauthResponse. That side of things is fine. I'm just getting exceptions when trying to fetch the companyfile object with the CompanyFileService from the SDK. I suspect there may be some unexpected json or a breaking .NET 6 change that is yet to be addressed. My next step will be to play with it in an old .NET framework and report it via GitHub I guess. I'm also leaning towards just pulling the JSON old school style but it would be nice to not have to build that out. MYOB is MIA... Developer site is a jungle of 404's. Re: doco makes reference to OAuthLogin.GetAuthorizationCode...where is this class? I'm now having issues with the CompanyFileService.GetRange() method. Using: // Get Company Files var companyFileService = new MYOB.AccountRight.SDK.Services.CompanyFileService(configuration,null,oAuthKeyService); var companyFiles = companyFileService.GetRange(); GetRange() is throwing the following exception: MYOB.AccountRight.SDK.ApiOperationException: 'Encountered an operation error (https://secure.myob.com/oauth2/account/authorize/)' Inner Exception: JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 2, position 1 I'm working in a .NET 6 WPF solution. Re: doco makes reference to OAuthLogin.GetAuthorizationCode...where is this class? Cheers John - I came back to the forum and saw you posted this after I spent an hour stuffing around with it :) Re: doco makes reference to OAuthLogin.GetAuthorizationCode...where is this class? Hey, I also wound up in MYOB website 404 land sorting this out. I've played with the code from KJM to spit out the auth code in a .NET core WPF app. It's a bit rough at this stage but seems to do the trick as a replacement for the lost OAuthLogin.GetAuthorizationCode: private string GetAuthorizationCode() { var redirectUri = $"http://localhost:8080/"; var developerKey = "blah blah"; var AuthorizationCodeEndpoint = "https://secure.myob.com/oauth2/account/authorize"; // Creates an HttpListener to listen for requests on that redirect URI. var httpListener = new HttpListener(); httpListener.Prefixes.Add(redirectUri); // Listening httpListener.Start(); // Creates the OAuth 2.0 authorization request. var authorizationRequest = string.Format("{0}?response_type=code&scope=CompanyFile&redirect_uri={1}&client_id={2}", AuthorizationCodeEndpoint, System.Uri.EscapeDataString(redirectUri), developerKey); // Opens request in the browser. var ps = new ProcessStartInfo(authorizationRequest) { UseShellExecute = true, Verb = "open" }; Process.Start(ps); //System.Diagnostics.Process.Start(authorizationRequest); // Waits for the OAuth authorization response. var context = httpListener.GetContext(); var request = context.Request; httpListener.Stop(); var uri = new Uri(request.Url.OriginalString); var query = System.Web.HttpUtility.ParseQueryString(uri.Query); var code = query.Get("code"); return code; }