Forum Discussion
Hi DevRBSystems
You seem to be on the right track, but I don't see where you parse "code=..." from the "https://desktop?code=..." URL. It looks like you are treating it like a "normal" URL and opening it in the browser.
The "desktop" URL is what MYOB call the "Redirect URL", which is used to get back to your application after going through the MYOB login screens. When you get the "desktop" URL, instead of browsing to it (which gives the error you posted), you parse the URL to get the "code" value, which is used in subsequent communication with MYOB.
Your screenshot shows the "code" in the redirect URL, Phil_Jeffrey_KC posted an answer that might help you here.
See also this question Getting OAuth code when Redirect is http://desktop
Hi All,
Thanks for all the support and help with this, I've finally got it working.
I've moved the code from my test harness into our live app and our customers are finally syning again.
This hasn't been a pleasant experience with MYOB on this.
Cheers
A.
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.