Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
October 2019 - last edited October 2019 by Hannah_B
October 2019 - last edited October 2019 by Hannah_B
I tried but unable to access the code. Please have a look on below code.
private const string CsOAuthServer = "https://secure.myob.com/oauth2/account/authorize/";
private const string CsOAuthScope = "CompanyFile";
try
{
string url1 = string.Format("{0}?client_id={1}&redirect_uri={2}&response_type=code&scope={3}&state={4}", CsOAuthServer,
"sytcvymfdt3xfa9q38XXXXX", HttpUtility.UrlEncode("http://desktop"), CsOAuthScope, "emFtYW4wNzFzZUBnbWFpbC5jb206IUAxMXXXXX");
HttpClient client = new HttpClient();
client.BaseAddress = new Uri(url1);
client.DefaultRequestHeaders.Accept.Add(
new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("text/plain"));
HttpResponseMessage response = client.GetAsync("authorize").Result;
var REG = response.Content.ReadAsStringAsync();
}
catch (Exception ex)
{
}
Please see the video if you need more information
Reference Link:
https://myobapi.tumblr.com/post/60294451539/passing-state-via-oauth
**Editd by MYOB Moderator**
October 2019
October 2019
Hi @ZamanKhan
Thanks for reaching out, I can see you have emailed us at developers@myob.com. I have replied to your email via developers.
Please note I have removed the video link from above and edited this post due to sensitive information within this.
Thanks,
Thanks,
@Hannah_B
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution
October 2019
October 2019
Please help me Still I am stuck here....
by
AL6
3 weeks ago
0
114
|
0
|
114
|
||
41
|
3256
|
|||
14
|
567
|
|||
1
|
214
|
|||
33
|
1524
|