Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Ruby gem that wraps the PyBossa API (obsolete)

License

Notifications You must be signed in to change notification settings

opennorth-archive/pybossa-api-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: https://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

About

Ruby gem that wraps the PyBossa API (obsolete)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages