https://github.com/baraja-core/vimeo-video-api
Simple API wrapper for Vimeo.
https://github.com/baraja-core/vimeo-video-api
api-wrapper vimeo-api
Last synced: 6 months ago
JSON representation
Simple API wrapper for Vimeo.
- Host: GitHub
- URL: https://github.com/baraja-core/vimeo-video-api
- Owner: baraja-core
- License: mit
- Created: 2019-09-13T18:07:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T13:41:46.000Z (about 3 years ago)
- Last Synced: 2025-02-17T10:48:59.328Z (9 months ago)
- Topics: api-wrapper, vimeo-api
- Language: PHP
- Homepage: https://baraja.cz
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vimeo video API
===============
Simple API wrapper for Vimeo. [Czech documentation](https://php.baraja.cz/zpracovani-nahledovych-obrazku-z-vimea)
Download video name, description, thumbnail, duration and more.
📦 Installation
---------------
It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on
[Packagist](https://packagist.org/packages/baraja-core/vimeo-video-api) and
[GitHub](https://github.com/baraja-core/vimeo-video-api).
To install, simply use the command:
```
$ composer require baraja-core/vimeo-video-api
```
You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.
And simple create instance or create service:
```yaml
service:
- \Baraja\VimeoAPI\VimeoVideoAPI(%vimeo.referer%)
parameters:
vimeo:
referer: https://baraja.cz
```
Or manually:
```php
$api = new \Baraja\VimeoAPI\VimeoVideoAPI;
$token = 0; // Some token as integer
$info = $api->getInfo($token);
echo var_dump($info);
// or specific information
echo 'Duration is: ' . $info->getDuration();
```
Referer
-------
In new Vimeo API you must use `http referer`, it's domain name of your server where your API is hosted.
If the referrer is not listed, the `baraja.cz` is assumed.
📄 License
-----------
`baraja-core/vimeo-video-api` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/variable-generator/blob/master/LICENSE) file for more details.