Skip to content

SerdarSanri/Laravel-Vimeo-Api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vimeo API

Installation

Aritsan

php artisan bundle:install vimeo-api

Bundle Registration

Add the following to your application/bundles.php file:

'vimeo-api' => array('auto' => true),

Configuration

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',
);

Usage

$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

About

Laravel Bundle - Vimeo API — Read more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%