Permalink
Browse files

Merge pull request #7 from phaer/master

now usable with oauth2
  • Loading branch information...
2 parents 16f4d76 + 856c851 commit 3b62450fd457f58ca6b8d79025a02b5be5626fa1 @joar committed Oct 8, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 automgtic/__init__.py
View
4 automgtic/__init__.py
@@ -130,14 +130,14 @@ def digest_file(f, block_size=2 ** 20):
def authorize():
client = get_client()
uri = client.prepare_request_uri(
- mg_config['server'] + '/oauth/authorize',
+ mg_config['server'] + '/oauth-2/authorize',
redirect_uri='http://foo.example/')
print 'Go to {0}, then paste the $CODE part in "?code=$CODE" below.'.format(uri)
code = raw_input('code: ')
token_uri = client.prepare_request_uri(
- mg_config['server'] + '/oauth/access_token',
+ mg_config['server'] + '/oauth-2/access_token',
code=code)
token_request = urlopen(token_uri)

0 comments on commit 3b62450

Please sign in to comment.