Class: OmniAuth::Strategies::Instapaper
- Inherits:
-
XAuth
- Object
- XAuth
- OmniAuth::Strategies::Instapaper
- Defined in:
- lib/omniauth/strategies/instapaper.rb
Instance Method Summary collapse
Instance Method Details
#get_credentials ⇒ Object
22 23 24 25 26 27 |
# File 'lib/omniauth/strategies/instapaper.rb', line 22 def get_credentials OmniAuth::Form.build(.) do text_field 'Email or Username', 'username' password_field 'Password', 'password' end.to_response end |
#raw_info ⇒ Object
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 |