Question

I'm developing a local python application that can make note on evernote using evernote api. In a web application, to implements an oauth login process, it's need to provide callback url to get_request_token method, so web application knows what to do after the request. But my application works as a script from command line; so what can i do in this case?

How can i work with oauth in an command line script?

self._client = EvernoteClient(
           consumer_key = self._settings.consumer_key,
           consumer_secret = self._settings.consumer_secret,
           sandbox=self._settings.sandbox
      )
      request_token = self._client.get_request_token(**'YOUR CALLBACK URL'**)
      print request_token
Was it helpful?

Solution

If you are creating a local app, you could use developer token instead of doing OAuth.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top