Vimeo Video Extension

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Type:silverstripe-module

2.6.3 2016-11-29 20:06 UTC

README

Maintainer Contact

  • Eduard Malyj <eduard.malyj (at) gmail (dot) com>

  • Andre Lohmann (Nickname: andrelohmann)

Requirements

Silverstripe 3.3.x

Overview

this module offes an extended VideoFile Object with automatically upload functionality to your vimeo pro account. the module extends andrelohmann-silverstripe/mediafiles

you need to create an app on https://developer.vimeo.com/apps/new and afterwards request upload for this application (takes up to 5 days) and create an access token

Usage

Add Vimeo Credentials to your _ss_environment.php

define('VIMEO_CLIENT_ID', 'YOUR_CLIENT_ID');
define('VIMEO_CLIENT_SECRET', 'YOUR_CLIENT_SECRET');
define('VIMEO_ACCESS_TOKEN', 'YOUR_ACCESS_TOKEN');
define('VIMEO_ALBUM_ID', 'YOUR_ALBUM_ID'); // optional, put every uploaded video in to a defined album
define('VIMEO_PLAYER_PRESET_ID', 'YOUR_PLAYER_PRESET_ID'); // optional, set a embedded preset to every uploaded video

Use the following method to get the ids of your albums and presets

curl -X GET -H "Authorization: bearer VIMEO_ACCESS_TOKEN" https://api.vimeo.com/me/albums
curl -X GET -H "Authorization: bearer VIMEO_ACCESS_TOKEN" https://api.vimeo.com/me/presets