Vimeo pro authentication php

1k views Asked by At

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

1

There are 1 answers

4
Dashron On BEST ANSWER

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