automattic / wistia-php
PHP wrapper for Wistia API
Installs: 31 269
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 93
Forks: 10
Open Issues: 3
Requires
- guzzlehttp/guzzle: ^6.1
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2024-11-04 13:35:18 UTC
README
A PHP client for consuming the Wistia API.
Install
Via Composer
$ composer require automattic/wistia-php
Methods & Properties
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
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.
Credits
License
Wistia PHP - PHP wrapper to consume Wistia API
Copyright (C) 2015 Automattic
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.
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.
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.
Please see License File for more information.