This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |