PHP code example of vhx / vhx-php
1. Go to this page and download the library: Download vhx/vhx-php 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/ */
vhx / vhx-php example snippets
\VHX\Api::setKey('your VHX API key');
// example customer create
$customer = \VHX\Customers::create(array(
email => '[email protected]',
name => 'First Last',
product => 'https://api.vhx.tv/products/1'
));
// example video create with header
$video = \VHX\Videos::create(array(
title => 'My Video'
), array(
'VHX-Client-IP' => '0.0.0.0'
));
json
{
"/vhx-php": "1.12.*"
}
}