Socket
Book a DemoInstallSign in
Socket

trove_oauth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trove_oauth

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

= trove_oauth (TroveOAuth)

A ruby wrapper for Trove (http://www.yourtrove.com), inspired by TwitterOAuth (http://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', 'http://myawesomeserver.com/some_endpoint') => "https://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

Copyright (c) 2011 Emma Persky. See LICENSE.txt for further details.

FAQs

Package last updated on 13 Aug 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.