Parent

Files

GoogleToken

Constants

GOOGLE_SETTINGS

Public Class Methods

consumer() click to toggle source
# File lib/oauth/models/consumers/services/google_token.rb, line 11
def self.consumer
  @consumer||=create_consumer
end
create_consumer(options={}) click to toggle source
# File lib/oauth/models/consumers/services/google_token.rb, line 15
def self.create_consumer(options={})
  OAuth::Consumer.new credentials[:key],credentials[:secret],GOOGLE_SETTINGS.merge(options)
end
get_request_token(callback_url, scope=nil) click to toggle source
# File lib/oauth/models/consumers/services/google_token.rb, line 19
def self.get_request_token(callback_url, scope=nil)
  consumer.get_request_token({:oauth_callback=>callback_url}, :scope=>scope||credentials[:scope]||"http://www-opensocial.googleusercontent.com/api/people")
end

Public Instance Methods

portable_contacts() click to toggle source
# File lib/oauth/models/consumers/services/google_token.rb, line 23
def portable_contacts
  @portable_contacts||= PortableContacts::Client.new "http://www-opensocial.googleusercontent.com/api/people", client
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.