2017 © Pedro Peláez
 

library wistia-php

PHP wrapper for Wistia API

image

automattic/wistia-php

PHP wrapper for Wistia API

  • Friday, September 2, 2016
  • by xyu
  • Repository
  • 127 Watchers
  • 7 Stars
  • 3,883 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 13 % Grown

The README.md

Wistia PHP

Latest Version Software License, (*1)

A PHP client for consuming the Wistia API., (*2)

Install

Via Composer, (*3)

``` bash $ composer require automattic/wistia-php, (*4)


## Methods & Properties |Method|Parameters| |---|---| |`get_client`|`N/A`| |`get_token`|`N/A`| |`list_projects`|`N/A`| |`show_project`|`(string) $project_hashed_id`| |`create_project`|`(array) $project_data`| |`update_project`|`(string) $project_hashed_id`, `(array) $project_data`| |`delete_project`|`(string) $project_hashed_id`| |`copy_project`|`(string) $project_hashed_id`| |`list_sharings`|`(string) $project_hashed_id`| |`show_sharing`|`(string) $project_hashed_id`, `(int) $sharing_id`| |`create_sharing`|`(string) $project_hashed_id`| |`update_sharing`|`(string) $project_hashed_id`, `(int) $sharing_id`, `(array) $sharing_data`| |`delete_sharing`|`(string) $project_hashed_id`, `(int) $sharing_id`| |`list_medias`|`N/A`| |`show_media`|`(string) $media_hashed_id`| |`create_media`|`(string) $file_path`, `(array) $media_data`| |`update_media`|`(string) $media_hashed_id`, `(array) $media_data`| |`delete_media`|`(string) $media_hashed_id`| |`copy_media`|`(string) $media_hashed_id`| |`stats_media`|`(string) $media_hashed_id`| |`show_account`|`N/A`| |`show_customizations`|`(string) $media_hashed_id`| |`create_customizations`|`(string) $media_hashed_id`, `(array) $customizations_data`| |`update_customizations`|`(string) $media_hashed_id`, `(array) $customizations_data`| |`delete_customizations`|`(string) $media_hashed_id`| |`list_captions`|`(string) $media_hashed_id`| |`show_captions`|`(string) $media_hashed_id`, `(string) $language_code`| |`create_captions`|`(string) $media_hashed_id`, `(array) $captions_data`| |`update_captions`|`(string) $media_hashed_id`, `(array) $captions_data`| |`delete_captions`|`(string) $media_hashed_id`, `(string) $language_code`| |Properties|Type| |---|---| |`$client`|`object`| |`$format`|`string`| |`$last_response_code`|`int`| ## Constructor When instantiating the library, you need to pass an array of parameters to the constructor. The array must include the index `token` which contains your Wistia token. Optionally the array can include the format of the responses, the value can be `json` (default), or `xml`. If it does not exist, `json` will be used. ## Tests To run PHPUnit tests on this library, copy the file `tests/config.sample.php`, rename it to `config.php` and fill in the requested details. Then open the terminal and navigate to the root of the library and use this command:

$ phpunit ```, (*5)

Note: Tests may fail if you run them too many times consecutively. There's a limit of 1000 requests/hour from Wistia, also the upload of dummy data may fail due to the internet connection problems and this will cause the tests to fail too., (*6)

Credits

License

Wistia PHP - PHP wrapper to consume Wistia API, (*7)

Copyright (C) 2015 Automattic, (*8)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version., (*9)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*10)

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA., (*11)

Please see License File for more information., (*12)

The Versions

02/09 2016

dev-master

9999999-dev http://github.com/Automattic/wistia-php

PHP wrapper for Wistia API

  Sources   Download

GPLv2

The Requires

 

The Development Requires

php wrapper client video wistia

02/09 2016

1.0.2

1.0.2.0 http://github.com/Automattic/wistia-php

PHP wrapper for Wistia API

  Sources   Download

GPLv2

The Requires

 

The Development Requires

php wrapper client video wistia

30/10 2015

1.0.1

1.0.1.0 http://github.com/Automattic/wistia-php

PHP wrapper for Wistia API

  Sources   Download

GPLv2

The Requires

 

The Development Requires

php wrapper client video wistia

05/10 2015

1.0.0

1.0.0.0 http://github.com/Automattic/wistia-php

PHP wrapper for Wistia API

  Sources   Download

GPLv2

The Requires

 

The Development Requires

php wrapper client video wistia

18/09 2015

1.0.0-beta

1.0.0.0-beta http://github.com/Automattic/wistia-php

PHP wrapper for Wistia API

  Sources   Download

MIT

The Requires

 

The Development Requires

php wrapper client video wistia