openveo/rest-php-client

OpenVeo Web Service 的 REST 客户端

3.0.0 2018-10-16 14:31 UTC

This package is auto-updated.

Last update: 2024-09-17 09:35:37 UTC


README

OpenVeo PHP REST 客户端,用于与 OpenVeo Web Service 交互。

文档

安装

使用以下命令安装最新版本

composer require openveo/rest-php-client

用法

<?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);

?>

贡献者

维护者: Veo-Labs

许可

AGPL