Vimeo API php connection issues -
i utilizing vimeo api try , display videos. have set-up app on developer.vimeo.com/apps/, while creating authentication tokens app. have downloaded , included vimeo-php api found here, still having no luck display anything, let alone specific video, group, etc. have posted simple steps recommended on github authenticate vimeo believe missing along way.
/*includeds @ top of file */ include("../vimeo/autoload.php"); //following variables developer.vimeo.com/apps/myappid $client_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $client_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $clienttoken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $lib = new vimeo($client_id, $client_secret, $clienttoken); $search_results = $lib->request('/videos', array('page' => 1, 'per_page' => 50, 'query' => urlencode($_get['query']), 'sort' => 'relevant', 'direction' => 'desc', 'filter' => 'cc')); return $search_results;
Comments
Post a Comment