I am trying to get started to build my first implementation using veeqo APIs. I have done very little with APIs, and am having a difficult time getting started using the veeqo API document at API Docs - Veeqo Developers
My first project is to download the inventory file in order to obtain the current inventory for every SKU in veeqo.
I do have my API key.
I understand that (and please correct me if I am wrong throughout this message) since this project is for internal use only, that I can use API Keys authentication.
The sample shows:
curl --request GET \
--url https://api.veeqo.com/orders \
--header 'accept: application/json' \
--header 'x-api-key: YOUR API KEY HERE'
Question 1: For my inventory project do I still use the orders folder? If not, what folder should I be using?
Question 2: Do I need to include any code before the Curl for processing json? if so what is the code
Question 3: Is the curl code PHP code?
Question 4: To use this code in PHP; would the PHP code be:
<?php
`curl --request GET \`
` --url https://api.veeqo.com/orders \ `
` --header 'accept: application/json' \ `
` --header 'x-api-key: YOUR API KEY HERE'`
Question 5: Don't I need an ending ";"?
Question 6: How do I check to see if the curl failed or completed successfully?
Question 7: How do I obtain the failure reason in order to display it?
Question 8: I understand the limits discussion, but how do I monitor and throttle the throughput in order to stay within the limits?
Under Code Samples:
Question 9: I am not familiar with GitHub. How do I get to the Veeqo API GitHub page?
Under Dashboard:
Question 10: The link in "The live example can be [found here.](https://veeqo-dashboard.herokuapp.com/)" results in an image indicating that there are no examples???
Thank you in advance.
If you’re looking to retrieve data about inventory, you should target the /products endpoint instead of /orders. You can learn more about the various product related methods here: API Docs - Veeqo Developers
You may want to have a look at the cURL library for PHP to make HTTP requests from PHP to the Veeqo API.
Either approach is fine. For your use case it would probably make more sense to request all 50 products in one go.
The response contains an X-Total-Pages-Count header which contains the total number of pages of products. You can use this number to request the final page of products.