dev-master
9999999-dev http://visupedia.netOfficial Visupedia API library client for PHP
MIT
The Requires
- ext-json *
- guzzle/guzzle 3.7.*
by Gaël Gillard
visupedia
Official Visupedia API library client for PHP
Official Visupedia API library client for PHP, (*1)
This library is generated by alpaca, (*2)
Make sure you have composer installed., (*3)
Add the following to your composer.json, (*4)
{ "require": { "visupedia/visupedia": "@dev" } }
Update your dependencies, (*5)
$ php composer.phar update
This package follows the
PSR-0
convention names for its classes, which means you can easily integrate these classes loading in your own autoloader., (*6)
Works with [ 5.4 / 5.5 ], (*7)
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; // Then we instantiate a client (as shown below)
$client = new Visupedia\Client(); // If you need to send options $client = new Visupedia\Client(array(), $clientOptions);
The following options are available while instantiating a client:, (*8)
All the callbacks provided to an api call will recieve the response as shown below, (*9)
$response = $client->klass('args')->method('args', $methodOptions); $response->code; // >>> 200 $response->headers; // >>> array('x-server' => 'apache')
The following options are available while calling a method of an api:, (*10)
Set request_type in options to modify the body accordingly, (*11)
When the value is set to raw, don't modify the body at all., (*12)
$body = 'username=pksunkara'; // >>> 'username=pksunkara'
Returns an MyVisu api instance, (*13)
The following arguments are required:, (*14)
$visu = $client->visu("53214f86e2ae54.93050075");
Returns all information about the wanted Visu, (*15)
The following arguments are required:, (*16)
$response = $visu->get("5396d8c752cfd8.93460735", "fr", "2", $options);
Here is a list of Contributors, (*17)
MIT, (*18)
Report here., (*19)
Gaël Gillard (dev@visupedia.net), (*20)
Official Visupedia API library client for PHP
MIT
visupedia