Skip to content

Commit

Permalink
Feature/browse endpoint (#19)
Browse files Browse the repository at this point in the history
* Adding browse all PHP
* Adding browse all PHP - removed comments
* bump version update changelog
  • Loading branch information
scottusrobus committed Dec 2, 2016
1 parent 9a0d88d commit 0fc931b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 1.8.0
**2016-12-02**

* Add browse resource with the `all` method.

### 1.7.0
**2016-11-29**

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can install the bindings via [Composer](http://getcomposer.org/). Add this t
```json
{
"require": {
"vhx/vhx-php": "1.7.*"
"vhx/vhx-php": "1.8.*"
}
}
```
Expand Down Expand Up @@ -84,6 +84,9 @@ watchlist
watching
* [`items`](http://dev.vhx.tv/docs/api/?php#customer-watching)

browse
* [`all`](http://dev.vhx.tv/docs/api/?php#browse)

videos
* [`create`](http://dev.vhx.tv/docs/api/?php#videos-create)
* [`retrieve`](http://dev.vhx.tv/docs/api/?php#videos-get)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0
1.8.0
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vhx/vhx-php",
"version": "1.7.0",
"version": "1.8.0",
"description": "VHX PHP API Wrapper",
"keywords": [
"vhx",
Expand Down
1 change: 1 addition & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Resources
require(dirname(__FILE__) . '/lib/Authorizations.php');
require(dirname(__FILE__) . '/lib/Analytics.php');
require(dirname(__FILE__) . '/lib/Browse.php');
require(dirname(__FILE__) . '/lib/Collections.php');
require(dirname(__FILE__) . '/lib/Customers.php');
require(dirname(__FILE__) . '/lib/Products.php');
Expand Down
9 changes: 9 additions & 0 deletions lib/Browse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace VHX;

class Browse extends Resource {
public static function all($params = array()) {
return self::_list($params);
}
}

0 comments on commit 0fc931b

Please sign in to comment.