Search code examples
phpvimeovimeo-api

Vimeo pro authentication php


I am trying to authenticate VIMEOPRO using VIMEOPRO API in php. I add vimeo.phpfile in my index.php and create a object of PhpVimeo class.

Below is my code

<?php
 require_once('vimeo.php');
 session_start();
 $vimeo = new phpVimeo('Customer key', 'Seceret key');
 $token = $vimeo->getRequestToken();
 echo '<pre>';
 print_r($token);
 die;
?>

Below is my error

Signature error

I also trying VIMEOPRO PHP plugin but another error occur

Error

and last there is difference b/w client id and client secret key

Thanks in advance


Solution

  • phpVimeo is the old, deprecated library (as mentioned in the readme: https://github.com/vimeo/vimeo-php-lib#readme)

    Use the new php library: https://github.com/vimeo/vimeo.php with your client_id and client_secret.

    For more information on generating authentication, check the docs: https://github.com/vimeo/vimeo.php#generate-your-access-token