Learner\Services\Videos\Vimeo::getVideoDetail PHP Method

getVideoDetail() public method

Get the video detail.
public getVideoDetail ( integer $id ) : array
$id integer
return array
    public function getVideoDetail($id)
    {
        $this->setId($id);
        $data = $this->getData($this->baseUrl);
        if (!$data) {
            throw new VideoNotFoundException("video_not_found");
        }
        if (!isset($data->title)) {
            throw new VideoNotFoundException("video_not_found");
        }
        return ['title' => $data->title, 'description' => $data->description, 'duration' => $data->duration, 'upload_date' => $data->upload_date, 'thumbnail_url' => $data->thumbnail_url];
    }