You are on page 1of 2

Endpoint

Use this URL to make API calls: http://vimeo.com/api/rest/v2

This guide explains how to use the Vimeo Advanced API from a PHPbased website. It was written for ModX, but should be easily adaptable to any PHP CMS. We are going to do the following: (A) Install the Vimeo API on our modx site. (B) Register our site with Vimeo and get our Consumer Keys. (C) Authorize our site and get our OAuth Tokens. (D) Start using the Advanced API for our Vimeo Gallery! PART A INSTALL THE VIMEO API LIBRARY ON YOUR SITE 1. Download the "Advanced API PHP Library" from this page: http://www.vimeo.com/api/docs/downloads 2. From that zip, upload "vimeo.php" and "index.php" to a folder called "vimeo" on the root of your website (i.e., so it's in the same folder as your "assets" and "manager" folders.) 3. Create a folder within "vimeo" called "cache" with permissions 777. 4. You need the full absolute server path to vimeo.php. For example, on DreamHost, my absolute path would be /home/danzg/mycoolsite.com/vimeo/vimeo.php.
-get the absolute server path in PHP whit this code:

<?php $path = getcwd(); echo "This Is Your Absolute Path: "; echo $path; ?>

In the case of Guau Films site is: "/home/guau/public_html/wp/wp-content/themes/guautheme/vimeo"

You might also like