Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Producteev Api Client
branch: master
Failed to load latest commit information.
lib fix issue
spec up version remove validator
.rspec up version remove validator
Gemfile add rspec gem
Gemfile.lock add rspec gem
README.md Remove crap warning about ruby version
Rakefile add rake file
producteev.gemspec add rake file

README.md

Producteev Api

A Ruby wrapper for the Producteev REST API

Supports all the API methods. If i have missed any let me know. More information on the API can be found at http://code.google.com/p/producteev-api/wiki/methodsDescriptions#Summary

I need to write some tests i know, but if you feel like doing it just raise a merge request.

Installation

Install the gem by issuing

gem install producteev

or put it in your Gemfile and run bundle install

gem "producteev"

Usage

Create a new client instance

require 'rubygems'
require 'producteev'

#no debug
producteevclient = Producteev.new("api_key_from_producteev","api_secret_from_producteev")
#debug
producteevclient = Producteev.new("api_key_from_producteev","api_secret_from_producteev",true)

Login in as a user

client1 = producteevclient.login("username","password")
client2 =  producteevclient.login("username1","password1")

Get the server time

client1.time

Get as list of tasks

client1.tasks.show_list
client2.tasks.show_list({:page=>1})

Get as list of lables

client1.labels.show_list
client2.labels.show_list({:page=>1})

Dashboards, users and activities can also be used in the same way. Please note all httparty exceptions you will have to deal with. All function calls return a hash.

Something went wrong with that request. Please try again.