Class: OmniAuth::Strategies::Instapaper

Inherits:
XAuth
  • Object
show all
Defined in:
lib/omniauth/strategies/instapaper.rb

Instance Method Summary collapse

Instance Method Details

#get_credentialsObject



22
23
24
25
26
27
# File 'lib/omniauth/strategies/instapaper.rb', line 22

def get_credentials
  OmniAuth::Form.build(options.xauth_options) do
    text_field 'Email or Username', 'username'
    password_field 'Password', 'password'
  end.to_response
end

#raw_infoObject



29
30
31
# File 'lib/omniauth/strategies/instapaper.rb', line 29

def raw_info
  @raw_info ||= MultiJson.decode(access_token.get("/api/1/account/verify_credentials").body).first
end