Skip to content
This repository

Groovy library for accessing the Voicebunny API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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.