You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
|
8 months ago
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
|
||
|
|
use app\libraries\Vimeo_library;
|
||
|
|
|
||
|
|
class Event_video extends MY_Controller {
|
||
|
|
protected $vimeo;
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
$this->my_parent_controller();
|
||
|
|
$this->vimeo = new Vimeo_library();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Fetch video details from vimeo
|
||
|
|
*/
|
||
|
|
public function get_video_details () {
|
||
|
|
$video_id = $this->input->get('video_id');
|
||
|
|
$details = $this->vimeo->getVideo($video_id);
|
||
|
|
output_to_json($this, json_encode($details));
|
||
|
|
}
|
||
|
|
}
|