0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper for the Trove API - inspired by twitter_oauth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.4
>= 0

Runtime

~> 0.4.5
 Project Readme

trove_oauth (TroveOAuth)¶ ↑

A ruby wrapper for Trove (www.yourtrove.com), inspired by TwitterOAuth (github.com/moomerman/twitter_oauth)

Gem coming soon…

Example Usage:¶ ↑

client = TroveOAuth::Client.new(:consumer_key => …, :consumer_secret => …) request_token = @client.request_token(:oauth_callback => my_awesome_callback_url) redirect_to request_token request_token.authorize_url

meanwhile…¶ ↑

at your callback end point

access_token = client.authorize(request_token.token, request_token.secret, :oauth_verifier => verifier_recieved_at_callback)

then you can do groovy things like:¶ ↑

client.info => {“first_name”=>“Emma”, “last_name”=>“Persky”, “trove_internal_id”=>“123456”, “trove_email”=>“emma.persky@gmail.com”, “trove_username”=>“emmapersky”, “identities”=>{“photos”=>[[“Flickr”, “Emma Persky”, “12345”, 377], [“Facebook”, “Emma Persky”, “12345”, 321]]}}

client.services => []

client.service(‘facebook’) => []

client.service_bounceback_url(‘facebook’, ‘myawesomeserver.com/some_endpoint’) => “www.yourtrove.com/some_magic_url_for_bounceback

client.photos => {big ol’ data structure for photos…} client.photos(some params) => {smaller data structure of photos}

in theory:¶ ↑

client.add_photo client.add_photos

Copyright © 2011 Emma Persky. See LICENSE.txt for further details.