Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python library for accessing the Voicebunny API
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
mock-responses
src
.gitignore
LICENSE.md
README.md
__init__.py
requirements.txt
test_pythoncarrot.py

README.md

Python Carrot - VoiceBunny Library

Python Carrot is a Python module that provides connection to the VoiceBunny.com HTTP RESTful API, using the library Requests for the HTTP request/response cycle. If you need more information on how to use our module check the installation guide or the tutorial.

Usage

# Imports
import PythonCarrotDev
import requests
import simplejson
from requests.auth import HTTPBasicAuth

# Initialize the module
vb_carrot = PythonCarrot.VBCarrot('xx','xxxxXXXXxxxxXXXX')

# Get information
response = vb_carrot.gender_ages()
print response['genderandages']

# Post project
project={
    'script': "Test project",
    'remarks': "Posted from Python-Carrot",
    'title' : "Test Project" 
}
response = vb_carrot.create_project(project)
print response['project']

# Get a project
response = vb_carrot.get_project(response['project']['id'])
print response['projects']

Request a VoiceBunny API Token

To use this library you need to request an API Token in the VoiceBunny.com Developer's Section.

TODO

  • migrate the tests to another library instead of text files mocked JSON responses
  • update the tests

Contributing

Feel free to fork our module or add a pull request

Don't you like Python?

If you're not confortable with Python language, you can also check our other libraries

Or why not, build your own library/module from scratch checking the API documentation.

Copyright

Copyright (c) 2008 Torrenegra IP, LLC. Distributed under Creative Commons CC-BY license.

Something went wrong with that request. Please try again.