Php call of inventory

Is there a way to call the data of the inventory from a server using php? Is there API or other method used?

1 Like

Ok I just found the dosumentation. But having problem with the passwords. None of them gets me inside the api, even admin pass. Is there a way to change the api password?

I successfully changed the password in the admin and it changed the API pass too. Now when I get into api with my user and pass it downloads me a .gz file (which is not working but seems like a zip file) and thats all it does. Where do I go from there?

Please do not double post your questions. It lessens your chance of getting an answer.

Why are we discussing about the way that I am seeking answers and not the solution to the php integration?
Plus what do I do with the .gz file?

1 Like

We are discussing this because the forum has rules, which are enforced by the moderators. See FAQ - Manager Forum.

I have seen that, which rule did I break?
I am really sorry but I feel like a customer here and not an anonymus blogger.

  • Don’t cross-post the same question or comment in multiple topics.

Ok I found the other post and just deleted it, was not on puprose. I will wait for more info on .gz file. Thanks

The .gz is an anomaly. You should see a ramification of JSON values starting from business and ending with the single value you entered in each form. No file should be downloaded.

A .gz file is a compressed (zipped) file. Google search for .gz files. There are many good programs out there for ‘unzipping’. The information within that file might clear things up a bit for you.

Yes, we know it. But Manager doesn’t produce any gz with the APIs. SE we have to understand what’s going on.

Apparently it does for IKey…just thought it might contain some useful info in it…

Ok I opened the file and it seems to have the html content inside. It is downloaded automaticaly when I log in to the api with the credentials.

There something wrong with your setup… you should see something like this:

image

if you click on one of the “businesses”:

and going on:

till you reach the leaf:

image

As I told you better check your browser because there is something wrong. You shouldn’t get any .gz or .zip file. A JSON data is only a text sting.

@lubos can you please check this difference?