PHP code example of openveo / rest-php-client
1. Go to this page and download the library: Download openveo/rest-php-client 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/ */
openveo / rest-php-client example snippets
enveo\Client\Client as OpenveoClient;
$webServiceUrl = 'Openveo Web service url';
$clientId = 'Your application client id generated by OpenVeo';
$clientSecret = 'Your application client secret generated by OpenVeo';
$certificatePath = 'Path of the OpenVeo certificate on your server if OpenVeo is in HTTPS';
// Instanciate client with url, client id, client secret and eventually a certificate
$client = new OpenveoClient($webServiceUrl, $clientId, $clientSecret, $certificatePath);
// Make web service call
$results = $client->get('webServiceEndPoint?param1=value1¶m2=value2');
var_dump($results);