python-vimeo

RSS, Simply Syndicated
Download

python-vimeo Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Julian Berman
  • Publisher web site:
  • http://github.com/Julian/

python-vimeo Tags


python-vimeo Description

python-vimeo provides a collection of Python modules for using Vimeo's APIs.INSTALLJust unpack and run: python setup.py installUSAGEAdvanced API methods flow through the VimeoClient class. Instantiate, then if you want to call API methods that require authentication, call the provided get_request_token, get_authorization_url and get_access_token methods to do the 3-legged authentication. Or if you already have an access token pass it in to the VimeoClient constructor. (If you happen to be using this module with django or another web framework like I am, the oauth2 docs have a quick example that you can take a look at for 3-legged authorization).For unauthenticated API calls, you're good to go right after instantiating.To call API methods the syntax is easy: find the path to the method in the API documentation, and call the method on the VimeoClient instance using the full path, separated by underscores (not periods!). Pass any parameters in by keyword. See the example:To call the vimeo >> videos >> getInfo method: v = VimeoClient() v.vimeo_videos_getInfo(video_id="5775787")You can control the output format of the response by either passing in a format argument when initializing or by using the .default_response_property attr. JSON might be the most convenient format to use as it'll get you a python dict back, but XML might be a bit faster.In general, consult the Vimeo API docs, as the behavior of this binding should by design follow the API docs closely. If you happen to be stuck, you can get in contact with me by filing a ticket on the git repository.Product's homepage


python-vimeo Related Software