Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is a python library wrapper for Vzaar's version 1.0 API.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 build
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 __init__.py
Octocat-spinner-32 setup.py
Octocat-spinner-32 vzaar.py
README.md

python-vzaar

This is a wrapper for Vzaar's version 1.0 API. As of this repository's initial commit, all documented API methods are implemented.

The most up-to-date version of this code will be available at https://github.com/fourk/vzaar

The original API documentation can be found at http://developer.vzaar.com/docs/version_1.0/

Usage:

Install using setuptools, pip, or by cloning the repository and running:

python setup.py intall

Once installed, it can be used with:

from vzaar import Vzaar
api = Vzaar(username, api_key, video_sucess_redirect, max_video_size)

api.user_details(username)

If you're using django, you can define the values in your settings object instead of having to set them when you instantiate the api object. Add each of the following to your settings, then import DjangoVzaar instead of importing Vzaar.

VZAAR_USERNAME - string - your username (not your email)
VZAAR_KEY - string - Vzaar API key
VIDEO_SUCCESS_REDIRECT - string - where to redirect a user after upload
        ex: http://example.com/callback/
MAX_VIDEO_SIZE - integer - size (in bytes) of maximum alowed upload size

Once the above keys are defined in your settings.py file, you can use the api like so:

from vzaar import DjangoVzaar
api = DjangoVzaar()

Dependencies

Something went wrong with that request. Please try again.