Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
include resource path in signature base string
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hamblen committed Nov 18, 2009
1 parent 4235930 commit 2476fed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions meetup_api_client.py
Expand Up @@ -196,12 +196,13 @@ def _fetch(self, uri, oauthreq=None, signature_method=signature_method_plaintext
url_args['format'] = 'json'
oauth_access = oauth.OAuthRequest.from_consumer_and_token(self.consumer,
token = temp_access_token,
http_url="http://api" + DEV + ".meetup.com/",
http_url="http://api" + DEV + ".meetup.com/" + uri + "/",
parameters=url_args)
oauth_access.sign_request(signature_method, self.consumer, temp_access_token)
url_args.update(oauth_access.get_oauth_parameters());
args = urllib.urlencode(url_args)
url = API_BASE_URL + uri + '/' + "?" + args
url = oauth_access.to_url()
else:
args = urllib.urlencode(url_args)
url = API_BASE_URL + uri + '/' + "?" + args
print "requesting %s" % (url)
try:
request = urllib2.Request(url)
Expand Down Expand Up @@ -389,4 +390,4 @@ class BadRequestError(ClientException):
url = oauth_session.get_authorize_url()
print "Opening a browser on the authorization page: %s" % url
webbrowser.open(url)


0 comments on commit 2476fed

Please sign in to comment.