Project Description
A Vimeo Advanced API wrapper for .NET

- 20/09/2010 -

I've created a small windows application that uses the API.

http://dl.dropbox.com/u/1920761/Vimeo%20API/Video%20Uploader.zip
Methods Exposed:

vimeo.auth.getFrob
vimeo.auth.getToken
vimeo.videos.upload.getTicket
vimeo.videos.upload.verifyManifest
vimeo.videos.upload.getQuota
vimeo.videos.setPrivacy
vimeo.videos.setTitle
vimeo.videos.setDescription
vimeo.videos.getInfo
vimeo.videos.embed.getPresets
vimeo.videos.embed.setPreset

// Call constructor with no token.
VimeoAPI.Authentication _Auth = new VimeoAPI.Authentication(APIKey, SecretKey);
VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);

// This method will get you a URL so the user can link the application to Vimeo.
string loginURI = _Vimeo.GetApplicationLinkUrl();

//Open the browser / redirect the user to the Vimeo account linking page.

// The return URL bound to the Vimeo's API key will include the frob id, use the frob id to get a token with the below method.
string token = _Vimeo.GetApplicationUserLinkToken(frob);

// Once you have this token, you don't need to link or request another one again.
// Upload a video to a user who already linked the application to Vimeo
VimeoAPI.Authentication _Auth = new VimeoAPI.Authentication(APIKey, SecretKey, UserToken);
VimeoAPI.Methods _Vimeo = new VimeoAPI.Methods(_Auth);
_Vimeo.UploadSingleFile(filePath);

This library can be used for both Windows and Web applications.

A great thanks goes to Fraser James, who helped me in dealing with some of the issues I encountered. Thanks!

Enjoy!

Last edited Sep 20, 2010 at 11:08 AM by BernardGatt, version 20