Project

ruby_desk

0.02
No commit activity in last 3 years
No release in over 3 years
A gem that works as an interface for oDesk APIs that can be used for both desktop and web applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

RubyDesk¶ ↑

A gem built by BadrIT (www.badrit.com) that works as an interface for oDesk APIs. It can be used for both desktop and web applications

Using RubyDesk with Rails¶ ↑

If you want to use oDesk APIs with Rails applications you may better use ror_desk. ror_desk is a plugin built on Ruby Desk and makes it much easier to use with Rails.

For more information read the documentation at aseldawy.github.com/ruby_desk/

Example¶ ↑

Initialize with your api key

rd = RubyDesk::Connector.new(api_key, api_secret)

Get the URL that will ask the user to authenticate your application

rd.auth_url

You should then redirect the user to the returned URL to get the frob. When you get the frob set it using

rd.frob = frob

Finally, you should request an api_token

rd.get_token

Now you are ready to use all the APIs you need

team_rooms = RubyDesk::TeamRoom.get_teamrooms(rd)
team_rooms.each { |team_room| puts team_room.id }

Copyright © 2010 Ahmed ElDawy. See LICENSE for details.