Project

producteev

0.0
No commit activity in last 3 years
No release in over 3 years
Api client for producteev
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.8.0

Runtime

>= 0
 Project Readme

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.