1. Go to this page and download the library: Download vientodigital/vimeo-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vientodigital / vimeo-api example snippets
// The documentation refers to the following as `privacy.view`
$params = ['privacy' => ['view' => 'disable']];
// `scope` is an array of permissions your token needs to access.
// You can read more at https://developer.vimeo.com/api/authentication#supported-scopes
$token = $lib->clientCredentials(scope);
// usable access token
var_dump($token['body']['access_token']);
// accepted scopes
var_dump($token['body']['scope']);
// use the token
$lib->setToken($token['body']['access_token']);
// `redirect_uri` must be provided, and must match your configured URI
$token = $lib->accessToken(code, redirect_uri);
// Usable access token
var_dump($token['body']['access_token']);
// Accepted scopes
var_dump($token['body']['scope']);
// Set the token
$lib->setToken($token['body']['access_token']);