AccountRight API Authentication - On My Local Machine

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
gregambrose
Contributing Partner
6 Posts
Contributing Partner
Australia
Contributing Partner

6Posts

0Kudos

0Solutions

AccountRight API Authentication - On My Local Machine

Hi,

 

I'm having trouble developing API calls to cloud AccountRight  on my local machine as I can't obtain a token. I have looked at the following link which is very helpful but I cant find a solution  to my particular problem.

 

https://community.myob.com/t5/MYOB-API-questions-and-answers/Getting-Invalid-Request-when-requesting...

 

1. I tried to set up an account with redirect url http://etc and I found that it wasnt acceptable because the URL needed to be https. I thus created an account with https:// pointing to my clients server, where I places a suitable script to report the resulting code. All works fine there.

 

2. On my local machine, I have been trying to obtain a token, using an API call with the code returned in 1 above. It fails, and as the link above explains, apparently the token request has to come from the same machine as the redirect where the code was created.

 

If that is the case, how do I develop locally, where I don't HTTPS on my local machine, so can't use it as redirect URL to generate a code to use?

 

I cant use the code from clients system, as it wasnt generated on my machine.

 

So how do people run API calls like this from a local machine?

 

You would think this issues would be addressed in the documentation as I would think most developers would have this issue.

 

I hope you can help.

 

Greg

 

 

 

I created an 

4 REPLIES 4
Mike_James
Ultimate Partner
5,839 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,839Posts

1,080Kudos

755Solutions

Re: AccountRight API Authentication - On My Local Machine

Hi Greg @gregambrose, this Help topic on Authentication explains that no tokens are required for accessing desktop files. The topic on Headers  is relevant.


Regards, Mike (mike@datawise.co.nz)
DataWise Limited (www.datawise.co.nz), developers of:
DataWise ProActive - Custom Reporting from MYOB programs
(MYOB Business, including AccountRight Live, AccountRight v19.x and exo Payroll)

Bulk download of attachments (more details...)

gregambrose
Contributing Partner
6 Posts
Contributing Partner
Australia
Contributing Partner

6Posts

0Kudos

0Solutions

Re: AccountRight API Authentication - On My Local Machine

Hi Mike,

 

Thanks for the reply.

 

These are not desktop files. I'm trying to access the cloud based versions that the client is using, plus a sandbox version that was set up. How can I access these cloud based instances from my local machine?

 

Regards
Greg

 

 

 

 

Mike_James
Ultimate Partner
5,839 Posts
Ultimate Partner
New Zealand
Ultimate Partner

5,839Posts

1,080Kudos

755Solutions

Re: AccountRight API Authentication - On My Local Machine

My apologies, I misread your question. Perhaps an email to developers@myob.com would get you some answers.


Regards, Mike (mike@datawise.co.nz)
DataWise Limited (www.datawise.co.nz), developers of:
DataWise ProActive - Custom Reporting from MYOB programs
(MYOB Business, including AccountRight Live, AccountRight v19.x and exo Payroll)

Bulk download of attachments (more details...)

gregambrose
Contributing Partner
6 Posts
Contributing Partner
Australia
Contributing Partner

6Posts

0Kudos

0Solutions

Re: AccountRight API Authentication - On My Local Machine

Hi Mike,

 

Thanks for the suggestion. I'll give it a try.

 

Regards
Greg

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post