Method: OAuth2::AccessToken#request

Defined in:
lib/oauth2/access_token.rb

#request(verb, path, opts = {}, &block) ⇒ Object

Make a request with the Access Token

Parameters:

  • verb (Symbol)

    the HTTP request method

  • path (String)

    the HTTP URL path of the request

  • opts (Hash) (defaults to: {})

    the options to make the request with

See Also:



96
97
98
99
# File 'lib/oauth2/access_token.rb', line 96

def request(verb, path, opts={}, &block)
  set_token(opts)
  @client.request(verb, path, opts, &block)
end