Forum Discussion

Hasco's avatar
Hasco
Trusted Cover User
6 years ago

Getting started with C# example

Hi guys,

I'm just trying to get up and running with the C# example project. I've replaced the lines:

 

// I've put my actual key and secret in here

private const string DeveloperKey = "yep, my correct key is in here";
private const string DeveloperSecret = "yep, my correct secret is in here";

 

// and set this to true

private const bool UseCloud = true;

 

App builds and runs OK. MYOB Oauth2 Authentication screen launches and I put in my correct email address and password (these are certainly correct as I run the AccountRight desktop app all the time with these details). 

 

Next screen I see is a window showing:

 

We have encountered some issue with the request, please try again later or contact your app support
  • invalid_request

No other info is given. Help!

 

Disclaimer: 

I'm a former c++ sofware engineer but haven't written a line of code in about 8 years. Also new to Oauth2. Be gentle! I'm coming back up to speed slowly :)

 

Cheers,

Adam

 

  • All good, redirect URI issue.

     

    Cheers,

    Adam

     

  • Hasco's avatar
    Hasco
    Trusted Cover User

    All good, redirect URI issue.

     

    Cheers,

    Adam

     

    • Hannah_B's avatar
      Hannah_B
      MYOB Moderator

      Hi Hasco 

       

      Thanks for reching out, Thanks for the update glad that is resolved. 

       

      Thanks,