baraja-core/vimeo-video-api

There is no license information available for the latest version (v1.1.0) of this package.

Simple API wrapper for Vimeo.

v1.1.0 2020-03-24 21:08 UTC

This package is auto-updated.

Last update: 2020-08-07 19:43:44 UTC


README

Simple API wrapper for Vimeo.

Download video name, description, thumbnail, duration and more.

Install

By Composer:

composer require baraja-core/vimeo-video-api

And simple create instance or create service:

service:
    - \Baraja\VimeoAPI\VimeoVideoAPI(%vimeo.referer%)

parameters:
    vimeo:
        referer: https://baraja.cz

Or manually:

$api = new \Baraja\VimeoAPI\VimeoVideoAPI('https://baraja.cz');

$token = 0; // Some token as integer

echo var_dump($api->getInfo($token));

Referer

In new Vimeo API you must use http referer, it's domain name of your server where your API is hosted.