Skip to content

HTTPS clone URL

Subversion checkout URL

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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/main/groovy/com/voicebunny/api
.gitignore
README.md
build.gradle

README.md

Groovy Carrot - VoiceBunny Library

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

Usage

@GrabResolver(name='voicebunny', root='https://github.com/VoiceBunny/mvn-repository/raw/master/releases')
@Grab(group='com.voicebunny', module='groovy-carrot', version='1.1.0')

import com.voicebunny.api.*

// Initialize the library
def vb = new VoiceBunny('yourUserId', 'yourToken', 'https://api.voicebunny.com')

// Get information
def response = vb.languages
println response.languages

// Post project
def projectData = [
    script: "Test project",
    remarks: "Posted from Groovy-Carrot",
    title: "Test Project"
]
response = vb.postProject projectData
println response.project

// Get a project
response = vb.getProject(response.project.id)
println 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.

Contributing

Feel free to fork our gem or add a pull request

Don't you like Groovy?

If you're not confortable with the Groovy language, you can also check our other libraries:

Or why not, build your own library 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.