Skip to content

Instantly share code, notes, and snippets.

@michaelhelmick
Created July 28, 2011 18:15
Show Gist options
  • Save michaelhelmick/1112152 to your computer and use it in GitHub Desktop.
Save michaelhelmick/1112152 to your computer and use it in GitHub Desktop.
def get_token_and_login_url(self, redirect_uri):
"""Gets the oAuth token via the oauth2 library."""
data = urllib.urlencode({'oauth_callback': redirect_uri if redirect_uri else 'oob'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment