Class: OmniAuth::Strategies::Pinterest

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/pinterest/omniauth.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



23
24
25
# File 'lib/pinterest/omniauth.rb', line 23

def raw_info
  @raw_info ||= access_token.get('/v1/me/').parsed['data']
end

#request_phaseObject



12
13
14
15
16
17
# File 'lib/pinterest/omniauth.rb', line 12

def request_phase
  options[:scope] ||= 'read_public,write_public'
  options[:response_type] ||= 'token'
  #options[:state] ||= '22'
  super
end