Vimeo is a fantastic video service, and now you can use it’s ‘Simple API’ in your CodeIgniter applications.
This Vimeo PHP Class is simple enough to use as a standalone class too.
I’ve listed the methods currently supported bellow. But check the Vimeo Api Documentation
Here’s a full list of the current calls and how to use them:
$this->load->library('vimeo'); // User Calls $this->vimeo->call('user', array('method' => 'info', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'clips', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'likes', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'appears_in', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'all_clips', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'subscriptions', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'all_clips', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'albums', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'channels', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'groups', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'contacts_clips', 'id' => 'user603985')); $this->vimeo->call('user', array('method' => 'contacts_like', 'id' => 'user603985')); // Activity Calls $this->vimeo->call('activity', array('method' => 'user_did', 'id' => 'user603985')); $this->vimeo->call('activity', array('method' => 'happened_to_user', 'id' => 'user603985')); $this->vimeo->call('activity', array('method' => 'contacts_did', 'id' => 'user603985')); $this->vimeo->call('activity', array('method' => 'happened_to_contacts', 'id' => 'user603985')); $this->vimeo->call('activity', array('method' => 'everyone_did', 'id' => 'user603985')); // Clip Call $this->vimeo->call('clip', array('id' => '2541390')); // Group Calls $this->vimeo->call('group', array('method' => 'info', 'id' => 'bestof08')); $this->vimeo->call('group', array('method' => 'users', 'id' => 'bestof08')); $this->vimeo->call('group', array('method' => 'clips', 'id' => 'bestof08')); // Channel Calls $this->vimeo->call('channel', array('method' => 'info', 'id' => '1341')); $this->vimeo->call('channel', array('method' => 'clips', 'id' => '1341')); // Album Calls $this->vimeo->call('album', array('method' => 'info', 'id' => '21')); $this->vimeo->call('album', array('method' => 'clips', 'id' => '21'));
REQUIREMENTS:
- curl
Download Vimeo API CodeIgniter Library
License: GNU GENERAL PUBLIC LICENSE – Version 2
Version: 1.0