Releases: vhx/vhx-php
v1.11.0
Adds header support. Headers can be passed as an array via the last param (either the second or third param depending on the method).
Example:
$customer = \VHX\Customers::create(array(
'name' => 'First Last',
'email' => '[email protected]',
'product' => 'https://api.vhx.tv/products/1'
), array(
'VHX-Client-IP' => '0.0.0.0'
));
v1.10.0
To allow for greater flexibility with request data we now send data using a content type of JSON with PUT and POST requests as opposed to POST fields. This makes sending objects like the new metadata property for collections and videos easier to deal with.
v1.9.0
Ensures PHP 7.0 compatibility
v1.8.0
Adds an interface for our browse endpoint, where api users can retrieve browse items for a given product.
Example request:
# list browse items
\VHX\Browse::all(array(
'product' => $product
));
v1.7.0
Adds watching resource (an alias to customers/:id/watching
) with the items
method. Example request:
$watching = \VHX\Watching::items("https://api.vhx.tv/customers/1");
v1.6.1
Fix bug introduced in 1.6.0 that was causing collections/:id/items
requests to return the wrong response.
v1.6.0
Adds an interface for our customers watchlist endpoint for retrieving, adding/removing items from customer's a watchlist.
v1.5.1
Collections > Items Bug fix
Allow passing of collection resource both as the first param or as part of a single params array with key collection
.
1.5.0
- Add analytics resources with report method
v1.4.1
- Fix typos with handleCurlError method