Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby gem that wraps the PyBossa API (incomplete tests)
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
.yardopts
Gemfile
LICENSE
README.md
Rakefile
USAGE
pybossa-api.gemspec

README.md

The PyBossa API Ruby Gem

A Ruby wrapper for the PyBossa API.

Gem Version Build Status Dependency Status Coverage Status Code Climate

Installation

gem install pybossa-api

API Examples

>> require 'pybossa-api'

>> PyBossa::App.list limit: 100 # default limit is 20
=> [{"info"=>{"task_presenter"=>"...", "thumbnail"=>"..."}, ...}, ...]

>> PyBossa::App.list short_name: 'flickrperson'
=> [{"info"=>{"task_presenter"=>"...", "thumbnail"=>"..."}, ...}, ...]

>> PyBossa::App.get 128
=> {"info"=>{"task_presenter"=>"...", "thumbnail"=>"..."}, ...}

>> PyBossa::API.api_key = '21ec2020-3aea-1069-a2dd-08002b30309d'

>> app = PyBossa::App.create "info"=>{"task_presenter"=>"...", "thumbnail"=>"..."}, ...
=> {"info"=>{"task_presenter"=>"...", "thumbnail"=>"..."}, ...}

>> PyBossa::App.update app['id'], description: "An example API call"
=> nil # raises an error on failure

>> PyBossa::App.delete app['id']
=> nil # raises an error on failure

You can perform similar operations on PyBossa::Task and PyBossa::TaskRun.

More documentation at RubyDoc.info.

Bugs? Questions?

This gem's main repository is on GitHub: http://github.com/opennorth/pybossa-api-ruby, where your contributions, forks, bug reports, feature requests, and feedback are greatly welcomed.

Copyright (c) 2012 Open North Inc., released under the MIT license

Something went wrong with that request. Please try again.