Einfache Integration mit unserer einheitlichen 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";
}
Was Sie erhalten
So funktioniert es
- Registrieren Sie ein API2Cart-Konto
- Fügen Sie die Shops Ihrer Kunden hinzu, die auf einer unterstützten E-Commerce-Plattform basieren
- Arbeiten Sie mit Shop-Daten wie Bestellungen, Produkten, Kategorien, Lieferungen, Kunden usw.