1. Go to this page and download the library: Download venatus/xmaven-php-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/ */
venatus / xmaven-php-sdk example snippets
eate instance of the API Wrapper
$xm = new Xmaven\API($userId, $privateKey);
//Get all media items
$res = $xm->makeRequest('GET','/v1/media');
//Get all media items, limit to just 5 returned.
$res = $xm->makeRequest('GET','/v1/media', array(
'limit' => 5,
));
//Create a new media item
$res = $xm->makeRequest('POST','/v1/media',array(),array(
'title' => 'test',
));
var_dump($res);