php artisan bundle:install vimeo-api
Add the following to your application/bundles.php file:
'vimeo-api' => array('auto' => true),
Move the config/vimeo.php to the application folder and add the following to your application/config/vimeo.php file:
return array(
'consumer_key' => 'YOUR CONSUMER KEY',
'consumer_secret' => 'YOUR CONSUMER SECRET',
'access_token' => 'YOUR ACCESS TOKEN',
'access_token_secret' => 'YOUR ACCESS TOKEN SECRET',
);
$vimeo = IoC::resolve('vimeo-api');
try {
$activity = $vimeo->call('vimeo.activity.userDid');
print_r($activity);
}
catch (VimeoAPIException $e) {
echo "Encountered an API error -- code {$e->getCode()} - {$e->getMessage()}";
}
Fork of https://github.com/vimeo/vimeo-php-lib
Questions @danielschniepp