Integrate Easily with our Unified API
$api = new Connector('PASTE_YOUR_API_KEY','PASTE_YOUR_STORE_KEY');
$params = array(
'start' = 0,
'count' = 50,
'params' = 'id,name,price',
);
$result = $api-request('product.list', $params);
echo "Products count: " . $result-products_count . "\n";
foreach ($result-product as $product) {
echo "Product ID: " . $product-id . "\n" .
"Name: " . $product-name . "\n" .
"Price: " . $product-price . "\n\n";
}
$api = new Connector('PASTE_YOUR_API_KEY','PASTE_YOUR_STORE_KEY');
$params = array(
'created_from' = '2014-07-29 13:45:52',
);
$result = $api-request('product.count', $params);
echo "Products count: " . $result-products_count . "\n";
$api = new Connector('PASTE_YOUR_API_KEY','PASTE_YOUR_STORE_KEY');
$params = array(
'id' = 8,
'params' = 'force_all' //all supported fields
);
$result = $api-request('product.info', $params);
echo "ID: " . $result-id . "\n" .
"Type: " . $result-type . "\n" .
"Name: " . $result-name . "\n" .
"Price: " . $result-price;
$api = new Connector('PASTE_YOUR_API_KEY','PASTE_YOUR_STORE_KEY');
$params = array(
'find_value' = 'egestas',
'find_where' = 'name',
'find_params' = 'case_sensitive',
);
$result = $api-request('product.find', $params);
echo "Search result count: " . $result-products_count . "\n\n";
foreach($result-product[0] as $product) {
echo "Product ID: " . $product-id . "\n" .
"Name: " . $product-name . "\n" .
"Description: " . $product-description . "\n" .
"Price: " . $product-price . "\n\n";
}
What You Get
How It Works
- Register API2Cart account
- Add your customers’ stores built on any supported eCommerce platform
- Work with store data such as orders, products, categories, shipments, customers, etc