PHP code example of marketcloud / marketcloud-php

1. Go to this page and download the library: Download marketcloud/marketcloud-php 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/ */

    

marketcloud / marketcloud-php example snippets






Marketcloud\Marketcloud::setCredentials(array(
  'secret_key' => 'your-secret-key',
  'public_key' => 'your-public-key'
));

$response = Marketcloud\Products::get();

echo json_encode( (array)$response->body )

composer  install