openveo/rest-php-client

REST client for OpenVeo Web Service


Keywords
php, rest, client, web service, restfull, openveo
License
AGPL-3.0

Documentation

OpenVeo PHP Client

OpenVeo PHP REST client to interact with OpenVeo Web Service.

Documentation

Installation

Install the latest version with:

composer require openveo/rest-php-client

Usage

<?php

require_once('lib/openveo-rest-php-client/autoload_dist.php');
use Openveo\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&param2=value2');
var_dump($results);

?>

Contributors

Maintainer: Veo-Labs

License

AGPL