Sha256: 49f6badb2435b17c9ddc1374ccdbe00afc5a8dde5324f19e63bc2ed9aaf131d9
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Meetup < OmniAuth::Strategies::OAuth2 option :name, "meetup" option :client_options, { :site => "https://api.meetup.com", :authorize_url => 'https://secure.meetup.com/oauth2/authorize', :token_url => 'https://secure.meetup.com/oauth2/access' } def request_phase super end uid{ raw_info['id'] } info do { :id => raw_info['id'], :name => raw_info['name'], :photo_url => raw_info['photo']['photo_link'] } end extra do { 'raw_info' => raw_info } end def raw_info @raw_info ||= access_token.get("/2/member/self?access_token=#{access_token.token}").parsed end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-meetup-0.0.2 | lib/omniauth/strategies/meetup.rb |