marketcloud / marketcloud-php
Marketcloud PHP sdk
Installs: 1 869
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 5
Open Issues: 2
Requires
- php: >=5.3.3
- nategood/httpful: ^0.2.20
README
Marketcloud API official PHP client library
Installation with Composer
composer require marketcloud/marketcloud-php
composer install
Then you can use the Composer's autoload
require_once('vendor/autoload.php');
Manual installation
You can download the latest release from GitHub and then include the init.php file
require_once('/path/to/marketcloud-php/init.php');
Documentation
The official documentation can be found at http://www.marketcloud.it/documentation
API overview
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 )