Marketcloud API official PHP client library
composer require marketcloud/marketcloud-php
composer install
Then you can use the Composer's autoload
require_once('vendor/autoload.php');
You can download the latest release from GitHub and then include the init.php file
require_once('/path/to/marketcloud-php/init.php');
The official documentation can be found at http://www.marketcloud.it/documentation
You can interact with the api through a Marketcloud
Marketcloud\Marketcloud::setCredentials(array(
'secret_key' => 'your-secret-key',
'public_key' => 'your-public-key'
));
Every resource method, returns json data:
$response = Marketcloud\Products::get();
echo json_encode( (array)$response->body )