Forum Discussion

aloktibrewal's avatar
3 years ago

Unable to get token from refresh token

Request
POST / https://secure.myob.com/oauth2/v1/authorize/


client_id=d739f2f7-0ef5-47ab-9946-b2e694363192&client_secret=E3bymLRGH2S4SmQV8g3fgiU4&refresh_token=bq7R!IAAAAPTFVGdjX_SkUFh2YHkO_Q6t4yLW0_1nSievq6uMm9CXwQAAAAGo8Oh1k0cEc10RKHfNgMHBAgD9w1yCmUBWUP6oIiZo65Q1G5hJLOdrVv5sGP19moEg5xyH0afMI4UPcGtpuky10lxGVL4CFcvdnLKrPDLNiTcVolcmh3JX-hZ&grant_type=refresh_token

 

 

Response
{"error":"invalid_request"}

  • The_Doc's avatar
    The_Doc
    Ultimate Cover User

    Hi aloktibrewal 

     

    This is an extraordinary complex subject and your post lacks very little information.

     

    Essentially, from your post it seems your encoding will be in error - and that is where it gets really complex - which language are you using - and what is your format are you using and to answer the question - only someone using your coding language will be able to answer that.

     

    It took me months of trial and error to settle on a format using MSAcess VBA as I wrote my own as I didn't like MYOB's SDK written in C# and VBasic though they worked - my coding works perfectly but is high specific to the VBA language of MSAccess.

     

    And hence this 'POST' which is what it has to be is then code specific.

     

    You wil get a quicker answer if you go direct to the api help email daddress developers@myob.com

     

    however, they are not coders and their comments are generic not specific.

     

    I found no help anywhere - not because it wasn't there - that it is highly, highly specific to your coding language and by definition then extraordinarily hard to give you fixes.

    Unlike a general coding question - this is probably the most difficult time consuming problem of getting access to the online file.

     

    Sorry I canot give you more help - ...

     

    The Doc

    • Steven_M's avatar
      Steven_M
      Former Staff

      Hi aloktibrewal 

       

      As has been indicated by the The_Doc, providing additional information to a query would be able to offer further insight into how best the MYOB Community can assist with your query. 

      In saying that, should you not want to provide that information in this public space or would like direct assistance from MYOB API support we would recommend reaching out to the dedicated MYOB API Support team through DeveloperCentre: Contact Us