1. Go to this page and download the library: Download hitmeister/api-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hitmeister / api-sdk example snippets
use Hitmeister\Component\Api\ClientBuilder;
$client = ClientBuilder::create()
->setClientKey('YOUR_CLIENT_KEY')
->setClientSecret('YOUR_CLIENT_SECRET')
->setUserAgent('YOUR_USER_AGENT')
->build();
// Post the task to import your file. You will have the ID of the task.
$importFileId = $client->importFiles()
->post('http://www.example.com/my_products.csv', 'PRODUCT_FEED');
// Retrieve the information about your task
$data = $client->importFiles()->get($importFileId);
echo "URL: {$data->uri}\n";
echo "Status: {$data->status}\n";
// $result will be true or false
$result = $client->units()->update(10, ['condition' => 'new']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.