Permalink
Browse files

make_api_call takes a string token and tokenifies that

  • Loading branch information...
1 parent af27f20 commit d78e250390d8f29c467e0d5c1a48201d1aa3df5f @brosner brosner committed Dec 29, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 contacts_import/oauth_consumer.py
@@ -122,6 +122,8 @@ def authorization_url(self, token):
return request.to_url()
def make_api_call(self, url, token, http_method="GET", **kwargs):
+ if isinstance(token, basestring):
+ token = oauth.Token.from_string(token)
response = self._oauth_response(
self._oauth_request(url, token,
http_method = http_method,

0 comments on commit d78e250

Please sign in to comment.