Skip to content

Instantly share code, notes, and snippets.

View emmettbutler's full-sized avatar

Emmett Butler emmettbutler

View GitHub Profile
@sclm
sclm / example.py
Created March 6, 2014 18:44
Vimeo.py - Video Rename example
# Set up a VimeoClient instance:
import vimeo
client = vimeo.VimeoClient(ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET)
# Lets get the last (oldest by default) video that the authenticated user uploaded.
users_videos = client.me.videos()
# For now, we need to extract the ID.
# We can do this by taking the uri from the last item in the list,
# Splitting it on the slashes, then taking it's last element.