( ! ) Warning: get_browser(): browscap ini directive not set in /var/www/vendorama/cart/includes/browser.inc on line 127
Call Stack
#TimeMemoryFunctionLocation
10.0006365256{main}( ).../index.php:0
20.0010365760include_once( '/var/www/vendorama/cart/includes/global.inc' ).../index.php:544
30.0015368040include_once( '/var/www/vendorama/cart/includes/browser.inc' ).../global.inc:82
40.0034381840get_browser ( ).../browser.inc:127
API > Request Formats on Vendo

API > Request Formats

Request Formats

This is currently a low REST API: as a general rule, use GET to retrieve data and POST to update or insert.

  • Using GET: all parameters are encoded in the URI string.
  • Using POST: all parameters are read using POST variables, including your API key.

Typical requests:

  • GET request to https://.vendo.co.nz/api/products?api_key={YOUR_API_KEY} – List all products
  • GET request to https://.vendo.co.nz/api/product/1?api_key={YOUR_API_KEY} – List all product data with product_id of 1
  • GET request to https://.vendo.co.nz/api/product?api_key={YOUR_API_KEY}&product_id=1&fields=price,name – List only price and name for product with product_id of 1
  • POST request to https://.vendo.co.nzapi/product with no product_id – Create a new product
  • POST request to https://.vendo.co.nz/api/product/1 – Update product with product_id of 1