Jump to content

(Archived) Unable to setup evernote oauth in python web2py - Status 401


Recommended Posts

Hi I am using evernote api for the first time.

 

I am developing an application in python web2py.

 

MY code is:

from evernote.api.client import EvernoteClientdef index():        client = EvernoteClient(            consumer_key = 'mbilal-1478',            consumer_secret = '948cf866b851995c',            sandbox = True        )    request_token = client.get_request_token('http://localhost/evernote/test/approved')    redirect(client.get_authorize_url(request_token))    return dict()def approved():    client = EvernoteClient(            consumer_key = 'mbilal-1478',            consumer_secret = '948cf866b851995c',            sandbox = True        )    request_token = client.get_request_token('http://localhost/evernote/test/approved')        oauth_verifier = request.vars.get('oauth_verifier', '')    auth_token = client.get_access_token(                request_token['oauth_token'],                request_token['oauth_token_secret'],                oauth_verifier,            )

and I am getting status 401, please help me in finding where is the issue.

 

Regards

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...