2017 © Pedro Peláez
 

library vhx-php

VHX PHP API Wrapper

image

vhx/vhx-php

VHX PHP API Wrapper

  • Monday, July 31, 2017
  • by scottusrobus
  • Repository
  • 26 Watchers
  • 7 Stars
  • 1,871 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 21 Versions
  • 7 % Grown

The README.md

VHX PHP API Client

API applications can be created in the VHX admin or by emailing api@vhx.tv., (*1)

Installation

Requires PHP 5.3.3 and later., (*2)

Composer, (*3)

You can install the bindings via Composer. Add this to your composer.json:, (*4)

{
  "require": {
    "vhx/vhx-php": "1.12.*"
  }
}

Then install via:, (*5)

composer install

Then use Composer's autoload:, (*6)

require_once('vendor/autoload.php');

Manual You can also download the latest release. Then simply include the init.php file., (*7)

require_once('/path/to/vhx-php/init.php');

Documentation

Documentation, including a step-by-step tutorial is available on the VHX Developer Docs site. For Full API reference go here., (*8)

Getting Started

Before requesting your first resource, you must setup your instance with your VHX API key:, (*9)

\VHX\Api::setKey('your VHX API key');

Every resource is accessed via the \VHX namespace:, (*10)


// example customer create $customer = \VHX\Customers::create(array( email => 'customer@email.com', name => 'First Last', product => 'https://api.vhx.tv/products/1' ));

Headers can be passed in as the last argument, which would either be the second or third argument depending on the method. See each individual method for specifics., (*11)


// example video create with header $video = \VHX\Videos::create(array( title => 'My Video' ), array( 'VHX-Client-IP' => '0.0.0.0' ));

Resources & methods

products * retrieve * all, (*12)

customers * create * update * retrieve * all * addProduct * removeProduct, (*13)

watchlist * items * addItem * removeItem, (*14)

watching * items, (*15)

browse * all, (*16)

videos * create * retrieve * all * files, (*17)

collections * create * update * retrieve * all * items, (*18)

authorizations * create, (*19)

analytics * report, (*20)

The Versions

31/07 2017

dev-master

9999999-dev https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

api video vhx

31/07 2017

1.12.0

1.12.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

api video vhx

17/02 2017

1.11.0

1.11.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

api video vhx

01/02 2017

1.10.0

1.10.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

api video vhx

02/12 2016

1.8.0

1.8.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

29/11 2016

1.7.0

1.7.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

21/11 2016

1.6.1

1.6.1.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

18/11 2016

1.6.0

1.6.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

17/10 2016

1.5.1

1.5.1.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

19/08 2016

1.5.0

1.5.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

22/04 2016

1.4.1

1.4.1.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

18/02 2016

1.4.0

1.4.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

18/02 2016

1.3.1

1.3.1.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

16/02 2016

1.3.0

1.3.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

08/01 2016

1.2.0

1.2.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

22/12 2015

1.1.0

1.1.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

22/12 2015

1.0.1

1.0.1.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

18/12 2015

1.0.0

1.0.0.0 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

29/11 2015

1.0.0-beta.3

1.0.0.0-beta3 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

28/11 2015

1.0.0-beta.2

1.0.0.0-beta2 https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx

24/11 2015

1.0.0-beta

1.0.0.0-beta https://github.com/vhx/vhx-php

VHX PHP API Wrapper

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

api video vhx