I followed the instructions and got the access token. Yet when I use their sample code to call listNotebooks()
I get 3 things -- "notes", "documents" and "web clippings" in a list. There are no names of actual notebooks. There is also no error. How to get the list of notebooks.
Asked
Active
Viewed 94 times
0

user1782328
- 53
- 1
- 6
-
What do you mean by no names of actual notebooks? Do you have notebooks named `notes`, `documents` or `web clippings`? Any code snippet? – kentaro Oct 24 '17 at 22:10
-
The code is mostly from the django python sample. I have received the access token following their instructions and it is also in the format it should be acc to [their website](http://dev.evernote.com/doc/articles/authentication.php), i.e.- "S=..:U=....." – user1782328 Oct 26 '17 at 10:23
-
The callback code in oauth/views.py that i edited is `def callback(request): accessToken = "S=s1:...." client = EvernoteClient(token=accessToken) note_store = client.get_note_store() notebooks = note_store.listNotebooks() for n in notebooks: print "\n", n, "\n" client = EvernoteClient(token=accessToken) user_store = client.get_user_store() print user_store.getUser() return render_to_response('oauth/callback.html', {'notebooks': notebooks})` I go to server-address:port/callback and get the output – user1782328 Oct 26 '17 at 10:23
-
I have no notebooks notes or anything called notes documents and web clipping. I have several notebooks each having several notes. None of those are printed or displayed in the browser or terminal. – user1782328 Oct 26 '17 at 10:24
-
The user store does display my name though. Its very weird if this is not how its supposed to be. Any hints why this is happening??? – user1782328 Oct 26 '17 at 10:25
-
Your API calls go to sandbox.evernote.com, right? Did you make sure you don't have those notebooks there? – kentaro Oct 26 '17 at 18:15
-
Thanks, it works now! That was the problem!!! – user1782328 Oct 27 '17 at 05:13
1 Answers
1
The problem was everytime I called EvernoteClient(token=accessToken,sandbox = False)
I had to pass sandbox= False. Not passing meant it was true by default. And the three notebooks: web clippings, etc are in sandbox.evernote.com by default.
Thanks to kentaro

user1782328
- 53
- 1
- 6