Method: Webmaster::Api::Authorization#oauth
- Defined in:
- lib/webmaster/api/authorization.rb
#oauth ⇒ Object
Setup OAuth2 instance
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/webmaster/api/authorization.rb', line 10 def oauth @client ||= ::OAuth2::Client.new(self.configuration.app_id, self.configuration.app_password, { :site => self.configuration.site || Webmaster::Configuration.size, :authorize_url => '/authorize', :token_url => '/token', :ssl => { :verify => false } } ) end |