Statistics
12
1
0
66d
Badges
Tags
api
Dependencies
  • php (>=7.1.0)
  • ext-curl (*)

Vimeo video API

Simple API wrapper for Vimeo. Czech documentation

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;

$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.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com