# Php call of inventory

**URL:** <https://forum.manager.io/t/php-call-of-inventory/17299>\
**Category:** Uncategorized\
**Created:** [August 9, 2018, 11:56am UTC](https://forum.manager.io/t/php-call-of-inventory/17299 "2018-08-09T11:56:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 9, 2018, 11:56am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/1 "2018-08-09T11:56:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 10, 2018, 6:38am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/2 "2018-08-10T06:38:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 10, 2018, 6:43am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/3 "2018-08-10T06:43:21Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [August 10, 2018, 12:25pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/4 "2018-08-10T12:25:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 10, 2018, 12:41pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/5 "2018-08-10T12:41:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [August 10, 2018, 12:51pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/6 "2018-08-10T12:51:57Z")

</div>

We are discussing this because the forum has rules, which are enforced by the moderators. See [FAQ - Manager Forum](https://forum.manager.io/faq).

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 10, 2018, 12:53pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/7 "2018-08-10T12:53:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [August 10, 2018, 2:29pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/8 "2018-08-10T14:29:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 10, 2018, 2:55pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/9 "2018-08-10T14:55:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [August 11, 2018, 6:00am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/10 "2018-08-11T06:00:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![VACUUMDOG](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/vacuumdog/32/7101_2.png) [@VACUUMDOG](https://forum.manager.io/u/VACUUMDOG)\
**Post date:** [August 12, 2018, 6:04am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/11 "2018-08-12T06:04:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [August 12, 2018, 6:42am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/12 "2018-08-12T06:42:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![VACUUMDOG](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/vacuumdog/32/7101_2.png) [@VACUUMDOG](https://forum.manager.io/u/VACUUMDOG)\
**Post date:** [August 12, 2018, 7:22am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/13 "2018-08-12T07:22:12Z")

</div>

> [@Davide](#):
>
> But Manager doesn’t produce any gz with the APIs.

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

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 12, 2018, 12:33pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/14 "2018-08-12T12:33:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 12, 2018, 12:35pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/15 "2018-08-12T12:35:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/2/2271c92cac89b09bda877902fa1ebf4cea2efbd4.png)

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 12, 2018, 12:35pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/16 "2018-08-12T12:35:55Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/a/ab605655fbbc102af2c8ca6b3b46a83cf8e53fdd.png)

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 12, 2018, 12:37pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/17 "2018-08-12T12:37:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/3/314e5ff90d610199f87215ff563fd841e2d95da9.png)

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 12, 2018, 12:38pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/18 "2018-08-12T12:38:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/c/cfc4fa7f260c636236b5c67c88ec9e5479439e5b.png)

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [August 12, 2018, 3:18pm UTC](https://forum.manager.io/t/php-call-of-inventory/17299/19 "2018-08-12T15:18:23Z")

</div>

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

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/4/4999dac5afd94b7ca825f981d2bd26dbb5f92780.png)

if you click on one of the “businesses”:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/a/ac1f7330c58f677b3304eefaef340195821fcf7e.png)

and going on:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/e/ea2fceb13467b1fd35ace6ffd2c6bab06f5b1790.png)

till you reach the leaf:

![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/2X/c/c8a493fdbf0590b316b2667f8abecdbfd757fd2d.png)

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.

---

<div class="post-metadata">

**Author:** ![IKey](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IKey](https://forum.manager.io/u/IKey)\
**Post date:** [August 16, 2018, 6:30am UTC](https://forum.manager.io/t/php-call-of-inventory/17299/20 "2018-08-16T06:30:15Z")

</div>

@lubos can you please check this difference?

[Next page](https://forum.manager.io/t/php-call-of-inventory/17299.md?page=2)
