$path[1], ); } public function getData($parsed) { $video_id = $parsed['video_id']; $buffer = file_get_contents("https://vimeo.com/api/v2/video/$video_id.xml"); $xml = new SimpleXMLElement($buffer); $videos = $xml->children(); $video = $videos[0]; return array( 'title' => $video->title, 'description' => strip_tags($video->description), 'thumbnail' => $video->thumbnail_medium, ); } }