Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add doc string for get_access_token [quickbooks/views.py] #19

Open
grue opened this issue Mar 7, 2014 · 0 comments
Open

add doc string for get_access_token [quickbooks/views.py] #19

grue opened this issue Mar 7, 2014 · 0 comments

Comments

@grue
Copy link
Owner

grue commented Mar 7, 2014

filename : quickbooks/views.py
line # : 51
tag : todo
md5 : 912230653c3b748a1025bf453ce4ba10

   # [todo] - add doc string for get_access_token
   session = OAuth1Session(client_key=settings.QUICKBOOKS['CONSUMER_KEY'],
                           client_secret=settings.QUICKBOOKS['CONSUMER_SECRET'],
                           resource_owner_key=request.session['qb_oauth_token'],
                           resource_owner_secret=request.session['qb_oauth_token_secret'])
       remote_response = session.parse_authorization_response('?{}'.format(request.META.get('QUERY_STRING')))
   realm_id = remote_response['realmId']
   data_source = remote_response['dataSource']
   oauth_verifier = remote_response['oauth_verifier']
       # [review] - Possible bug? This should be taken care of by session.parse_authorization_response
   session.auth.client.verifier = unicode(oauth_verifier)
       response = session.fetch_access_token(ACCESS_TOKEN_URL)
       # Delete any existing access tokens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant