Skip to content

Commit

Permalink
access token requests should accept add'l args
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed May 19, 2009
1 parent 7b76c85 commit 3763abe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/oauth/consumer.rb
Expand Up @@ -97,6 +97,11 @@ def uri(custom_uri = nil)
end
end

def get_access_token(request_token, request_options = {}, *arguments)
response = token_request(http_method, (access_token_url? ? access_token_url : access_token_path), request_token, request_options, *arguments)
OAuth::AccessToken.from_hash(self, response)
end

# Makes a request to the service for a new OAuth::RequestToken
#
# @request_token = @consumer.get_request_token
Expand Down

0 comments on commit 3763abe

Please sign in to comment.