I WOULD GREATLY BENEFIT BY SEEING AN ACTUAL EXAMPLE THAT TRIGGERS THE API TO WORK

ITM
Contributing User
10 Posts
Contributing User
Australia
Contributing User

10Posts

0Kudos

0Solutions

I WOULD GREATLY BENEFIT BY SEEING AN ACTUAL EXAMPLE THAT TRIGGERS THE API TO WORK

I have asked the API support team for a simple example on how to use the API.    For example, a simple extract of ITEM data would be helpful.   They tell me that under no circumstances whatsoever will they give me an example.

 

Do I need a PHP script, an HTML Script or what ?  If I can get JUST ONE actual example (into which I can insert my own cudtomer and developer credientials) I am sure I can do the rest.

 

Can anyone help please ?

 

This is the current document ation on working with ITEMS - It means nothing to me

 

Item

Return, update, create and delete inventory items.

Date Released: Dec 2013Date Updated: Sep 2022

URL Supports

/{cf_uri}/Inventory/ItemGET |  PUT |  POST |  DELETE
3 REPLIES 3
JeremyF
Experienced User
35 Posts
Experienced User
Experienced User

35Posts

4Kudos

4Solutions

Re: I WOULD GREATLY BENEFIT BY SEEING AN ACTUAL EXAMPLE THAT TRIGGERS THE API TO WORK

Hi ITM 

 

This is as good a place to start as any

 

myob-php-api

 

Cheers

JF

kjm
Trusted Cover User
160 Posts
Trusted Cover User
Australia
Trusted Cover User

160Posts

14Kudos

2Solutions

Re: I WOULD GREATLY BENEFIT BY SEEING AN ACTUAL EXAMPLE THAT TRIGGERS THE API TO WORK

I do not blame the API support team for not wanting to "help". The documentation they have provided is sufficiently well structured for any developer to be able to work it out. This is where you need to start.

 your question seems to indicate you have next to no understanding of the authentication procedure of Oauth2 and I mean no offence to you but I don't blame the API team for not getting involved as they would end up being teachers/tutors rather than doing their own job.

There are literally hundreds of thousands of examples all over the Internet showing how to connect to an API using a OAuth2. . I would suggest you  trying get an understanding of that first as that is by far and away the one thing that confuses most new devs first when connecting to a secured  API

Also, if you're not understanding the actions and communications between a client of the API as you seem to be suggesting below when you say "it means nothing to me" then I think you probably need to do a little bit of research and reading first on how to consume and API

The documentation for the MYOB API is not bad. Try reading it and try starting at the beginning. Then when you do see an example, you'll understand what the code is trying to do. There are no shortcuts to this. You just have to understand the concepts behind how this works. This is not one of those situations where you can just look at a large piece of code and understand exactly what everything does and why it's doing it. For you to understand this, you need to understand the concepts of the access tokens and the role of the client id and cient secret

Authentication (myob.com)

Getting Started (myob.com)

Since myob has a host of POSTMAN assets for you to use why not simply use postman to get an understanding
Authenticate with OAuth 2.0 authentication in Postman | Postman Learning Center

Postman Collection (myob.com)

I was a dev team lead for years and the one thing that seem to always confuse new developers about oauth was the understanding of the access token. Once they understood that they sent to get the whole concept.  here is a great resource on that and if you've read through the postman resources you'll get it as well
Connecting to API using OAuth 2.0 from ALTERYX - The Data School Down Under

ITM
Contributing User
10 Posts
Contributing User
Australia
Contributing User

10Posts

0Kudos

0Solutions

Re: I WOULD GREATLY BENEFIT BY SEEING AN ACTUAL EXAMPLE THAT TRIGGERS THE API TO WORK

JeremyF, thanks for the link to the PHP examples.  I notice they were created back in 2013 - Over 10 years ago !

 

I am so indebted to you and hope I can make them work.

 

Thank you again !!!!!!!!!!!!!!!!!  

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