Jump to content
2019 Calendar Templates Read more... ×

Search the Community

Showing results for tags 'python'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
  • FAQ's & Best Practices
    • FAQ's
    • Best Practices
  • Possible Bugs/Technical Issues
    • General Technical Issues
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Web Client
    • Evernote Product Suite
  • Product Feedback/Feature Requests
    • General Feature Requests
    • Evernote Business
    • Evernote for Android
    • Evernote for iOS
    • Evernote for Mac
    • Evernote for Windows
    • Evernote Web Client
    • Evernote Integrations
    • Evernote Product Suite
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions
  • Evernote Forum Archives
    • General Discussion Archive
    • Product Archives
  • Evernote Preview Program
    • Evernote Preview Program
  • Using Evernote

Blogs

There are no results to display.

There are no results to display.

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Subscription

Found 50 results

  1. dflamholc

    Geeknote

    Hi, hope this is the right place to ask this. Is anyone here aware of Geeknote for Evernote? Its a python based app for accessing Evernote through command line. It's currently at v01 i think but haven't been updated for some time. I have written a python plugin for a 3D app I'm using on a daily basis for my work, which collects data from a 3D scene and uploads it as a note to evernote with checkboxes lists etc. This increases efficiency massively in my work as I'm able to very quickly bring myself up to date on files I haven't looked at for a while, but having to go back to for updates on client request etc. I'm wondering if this accessibility is something Evernote is going to continue to support or even possibly provide themselves in the near future? I'd be sad to see this accessibility not being available in the near future for whatever reason. https://github.com/VitaliyRodnenko/geeknote thanks, david
  2. I'm importing the NoteResultSpec struct using the python SDK with the following line: from evernote.edam.notestore.ttypes import NoteResultSpec And I'm getting an import error. Is this struct still supported? If not, how do I fetch Note content as notestore.getNote is deprecated and this struct is needed for notestore.getNoteWithResultSpec?
  3. Hello, I'm a newbie for web app developing. Here's my question - When I run the django sample included in the evernote SDK for python. There's a authorization page describes what my application be able to do, and what's my application NOT able to do. Just like the 1st attached file. My question is - How can I enable the permission to access the account information when user authorizes the web app??? (Like the remain bandwidth and next cycle start day). The 2nd attached file is what I working on recently. I hope user can get their own account remain bandwidth and next cycle start day when they visit the web app.
  4. Hello, I've been using Evernote for a few years, and was looking for someway to transfer my thousands of Kindle highlights to it. Github had a few solutions, but they were all several years old and didn't really make good use of the API. I wrote my own Kindle2Evernote Python script. I'm not sure what else to do with it, and would be interested if any developers have any futher ideas for me. I'm not super interested in providing for the everyman with some kind of GUI, but for people with basic programming experience should be able to make use of it. In brief, a user gets a development token from Evernote, and downloads their highlights page from kindle.amazon.com, and directs the script to it. The script parses the HTML, and sends the API one note for every highlight, containing the name of the book, the author, the highlight, a Kindle link to the passage, and various IDs. Any thoughts would be greatly appreciated, thanks!
  5. Hi, What I'm looking for is a feature like my post in this stack overflow post:http://stackoverflow.com/questions/27950710/in-... If you scroll down on the page, you will see my post with the heading 'Try "Python Script" plugin'. If it could be possible to extend the desktop Evernote app so that I can add custom macros (e.g. using Python or another language/platform, such as .NET), it would really enhance my experience with using Evernote. The reason for the feature request is that it's great that new notes are timestamped when created, but if I realize that there was a typo or mistake in one of my previous notes, when I go to edit the note, it replaces the timestamp (of when it was created) with the timestamp from when it was *edited*, which causes me to not actually know when the note was created. This has caused me to instead depend on adding the actual time to various parts of a note so that I can easily find notes that are associated with a particular date or time by searching them for the string with the date. Despite my original motivation, I can see the utility of adding custom macros for inserting text. The potential is pretty limitless.By the way, the plugin pattern is super useful from an engineering perspective in general, and if you're using an IoC / DI container (such as Ninject or Castle Windsor) in your framework, it's very easy to extend the application to take plugins by reflecting over the namespace or file directory and loading the assemblies or modules at runtime. The key would be to ensure that you get the security right (to prevent malicious code from reaching your server), but I'm sure that there are ways to restrict the code loaded as 3rd party plugins.
  6. Is there a way to add code such as $>this code block right here it would be super useful since I store my programming notes in here. I don't want to change the font size and indent everytime. If this isn't available please add this on. I know many others would benefit. Also, if you guys could team up with Beaker Notebook since they have the coding version of this. If you could collaborate with them it would be HUGE!
  7. Hello, I am trying to figure out why my search is not returning all of the notes in each notebook. Ordinarily my application searches for notes in a particular notebook that have been created after a certain timestamp. After investigating why my latest notes haven't been appearing, I've found that my application doesn't see a significant amount of my notes at all! I've written a quick example of the code which shows the issue: evernote_client = EvernoteClient(token=settings.EVERNOTE_AUTH_TOKEN,sandbox=settings.EVERNOTE_SANDBOX_MODE)for notebook in evernote_client.get_note_store().listNotebooks(): print(notebook.name + " which is guid " + notebook.guid) # Create a note filter that filters for all notebook's events note_filter = NoteFilter() note_filter.notebookGuid = notebook.guid event_metadata_list = evernote_client.get_note_store().findNotesMetadata(settings.EVERNOTE_AUTH_TOKEN, note_filter, 0, 5, NoteStore.NotesMetadataResultSpec()) print("The number of notes found in " + notebook.name + " is " + str(len(event_metadata_list.notes)))You can see that all I do is count the number of notes in each notebook. If we take my 'Daily' notebook as an example, the result is: I can quite clearly see that the number of notes in 'Daily' is actually 6. Does anyone know what's going on here? I have essentially no filters on the notes, so (in theory) it should return all notes, right? Thanks Richard
  8. Hello, I have question regarding Evernote API. Currently I'm using latest version of Evernote SDK for Python (https://github.com/evernote/evernote-sdk-python), but I'm not able to fetch all data from my note. For example, I have note with text and image, but getResource returns only image from this note. Is there any other way to fetch note content ? Thanks in advance.
  9. Hi, i'm having a strange problem with mime types and note attachments. I'm trying to write a script that uploads attached html files within a note. While this does work, the uploaded files have the extention of '.acgi' rather than '.html' and I cannot figure out why this is happening. I am using the mime type of 'text/html' The same thing happens with plain text. When I use the mime type 'text/plain', the file is attached as a '.c' file. Any ideas why this is happening?
  10. Hi , I am trying to retrieve all notes with in the account is is too slow for to retrieve and come with rate limition sooner for other requests. I am testing my local machine notes = note_store.findNotesMetadata(session_info[0], searchfilter, int(request.GET.get("startfrom", 0)), int(request.GET.get("limit", 1000)), result_spec)for notemetaobj in notes: noteevernotestart = datetime.datetime.now() notedata = note_store.getNote(token, notemetaobj.guid,True,False,False,False)Every time i list all notes with-in account it iterate through for loop and for each note it takes around 1.9 sec i.e for 100 notes it takes 190 sec . And when i call same note list again it come up with rate limit sooner . I am design third party app as to so user don't want to wait so much . is Evernote is too slow for time retrieve notes?.
  11. Hi, I m developing and third party application using python. I like to identify all "Post-it®" for user account. When i try to retrieve notes from account the both Simple snap note and Post-it® are same in evernote note. Simple Snap note data return form python sdk Androidmobile-> camera -> CAMARA Note(contentHash='4\x89\xe1\x9c\xb5\x87"\xc1\xaa3>\xa8\xe6\xb7\\\xb6', updated=1430990921000, created=1430990869000, deleted=None,contentLength=309, title='Normal snap andi', notebookGuid='66495718-72a1-411f-96e6-307e9abcb78c',content='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><en-media type="image/jpeg" hash="94cf1f953b1c1eef37400d8941628692"/></div><div></div></en-note>', tagNames=None, updateSequenceNum=283, tagGuids=None, active=True, attributes=NoteAttributes(lastEditorId=None, placeName=None, sourceURL=None, classifications=None, creatorId=None, author=None, reminderTime=None, altitude=None, reminderOrder=None, shareDate=None, reminderDoneTime=None, longitude=None, lastEditedBy=None, source='mobile.android', applicationData=None, sourceApplication=None, latitude=None, contentClass=None, subjectDate=None), guid='b79fbb1d-50a5-447f-a122-d37d1a316aea', resources=[Resource(noteGuid='b79fbb1d-50a5-447f-a122-d37d1a316aea', height=3264, width=2448, alternateData=None, mime='image/jpeg', updateSequenceNum=285, duration=None, attributes=ResourceAttributes(recoType=None, sourceURL=None, cameraMake=None, timestamp=1430990869000, altitude=None, clientWillIndex=None, longitude=None, fileName='IMG_20150507_145728.899.jpg', attachment=False, latitude=None, applicationData=None, cameraModel=None), guid='6cc8e233-c82a-4aa9-b34c-30f5bc6f67e2', data=Data(body=None, bodyHash='\x94\xcf\x1f\x95;\x1c\x1e\xef7@\r\x89Ab\x86\x92', size=217589), active=True, recognition=Data(body='<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE recoIndex PUBLIC "SYSTEM" "http://xml.evernote.com/pub/recoIndex.dtd"><recoIndex docType="unknown" objType="image" objID="94cf1f953b1c1eef37400d8941628692" engineVersion="6.6.33.0" recoType="service" lang="en" objWidth="2448" objHeight="3264"><item x="1943" y="713" w="113" h="77"><t w="60">top</t><t w="56">lop</t><t w="54">fop</t><t w="54">pop</t><t w="53">hp</t><t w="53">lap</t><t w="51">foe</t><t w="29">/GP</t></item><item x="2064" y="732" w="213" h="47"><t w="51">I/WS/87</t><t w="48">NWN</t><t w="45">music</t><t w="41">mrs</t><t w="40">nine</t><t w="39">Mrs.</t><t w="39">lime</t><t w="39">limb</t><t w="37">living</t><t w="37">livre</t></item><item x="454" y="1347" w="82" h="80"><t w="68">if</t><t w="57">tp</t><t w="55">p</t><t w="54">IR</t><t w="50">LP</t><t w="49">IP</t><t w="44">I(</t><t w="42">t</t></item><item x="648" y="1370" w="106" h="89"><t w="54">pp</t><t w="54">Pr</t><t w="53">rr</t><t w="51">Mr</t><t w="43">m</t><t w="43">nr</t><t w="40">P p</t><t w="37">P r</t><t w="33">MP</t><t w="32">P i</t></item><item x="838" y="1361" w="187" h="120"><t w="60">form</t><t w="58">son</t><t w="57">for</t><t w="57">soon</t><t w="55">gyn</t><t w="55">poor</t><t w="55">goon</t><t w="54">min</t><t w="54">on</t><t w="54">good</t></item><item x="1043" y="1392" w="210" h="101"><t w="56">air i</t><t w="55">our i</t><t w="54">civil</t><t w="53">girl</t><t w="51">air l</t><t w="50">Ari i</t><t w="50">air j</t><t w="50">our l</t><t w="50">out i</t><t w="50">Guy i</t></item><item x="1252" y="1416" w="18" h="6"><t w="34">e ?</t><t w="31">r ?</t><t w="25">s ?</t><t w="19">o ?</t><t w="15">z ?</t><t w="15">R. ?</t></item><item x="1273" y="1423" w="172" h="104"><t w="57">via</t><t w="55">Rd</t><t w="55">very</t><t w="52">RA</t><t w="52">void</t><t w="52">vain</t><t w="52">Vila</t><t w="52">boy</t><t w="51">vera</t><t w="51">vin</t></item><item x="1572" y="1482" w="39" h="54"><t w="49">fl</t><t w="42">il</t><t w="39">o</t><t w="34">s</t><t w="32">d</t><t w="29">e</t><t w="26">1J</t><t w="20">b</t><t w="17">8</t><t w="12">0</t></item><item x="791" y="1672" w="70" h="85"><t w="55">PR</t><t w="54">p</t><t w="52">or</t><t w="45">r</t><t w="43">f</t><t w="43">AR</t><t w="38">an</t><t w="36">gr</t></item><item x="1114" y="1665" w="434" h="137"><t w="55">on ob</t><t w="54">mob</t><t w="52">an ob</t><t w="50">oro ob</t><t w="45">mo b</t><t w="45">m ob</t><t w="44">on o b</t><t w="43">a ob</t><t w="42">on 0 b</t><t w="42">on s b</t></item><item x="1556" y="1653" w="80" h="161"><t w="55">IL</t><t w="44">i i</t><t w="43">n</t><t w="40">i l</t><t w="40">I\'ll</t><t w="38">i 1</t><t w="34">ill</t><t w="34">i t</t><t w="29">ll.</t><t w="28">LI</t></item><item x="0" y="2523" w="80" h="158"><t w="20">.t,</t></item><item x="59" y="2522" w="253" h="180"><t w="55">NA</t><t w="55">ma</t><t w="54">mid</t><t w="53">IRA</t><t w="53">MD</t><t w="51">ind</t><t w="50">i nD</t><t w="49">i Rd</t><t w="49">OID</t><t w="48">i id</t></item><item x="613" y="3126" w="4" h="13"><t w="25">NT</t><t w="21">R.</t></item><item x="620" y="3180" w="4" h="16"><t w="35">i ?</t></item></recoIndex>\n', bodyHash='\x92\xc3\x8fP\xc8m\xc3\xe8\x01\x9f[Pm+\xda\x94', size=3141))])And when I take Post-it® Note Androidmobile-> camera -> Post-it® Note(contentHash='\xec\x8a\x12\xc6J#r%\x08wv\x9dr\xaa\xf1\xfa', updated=1430902286000, created=1430902246000, deleted=None, contentLength=309, title='Create post it', notebookGuid='66495718-72a1-411f-96e6-307e9abcb78c', content='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><en-media type="image/jpeg" hash="c22691ba1bb984e84c59eb78ef3adde8"/></div><div></div></en-note>', tagNames=None, updateSequenceNum=248, tagGuids=None, active=True, attributes=NoteAttributes(lastEditorId=None, placeName=None, sourceURL=None, classifications=None, creatorId=None, author=None, reminderTime=None, altitude=None, reminderOrder=None, shareDate=None, reminderDoneTime=None, longitude=None, lastEditedBy=None, source='mobile.android', applicationData=None, sourceApplication=None, latitude=None, contentClass=None, subjectDate=None), guid='a3c493c7-ea30-48f9-80a1-d3e4613f549e', resources=[Resource(noteGuid='a3c493c7-ea30-48f9-80a1-d3e4613f549e', height=927, width=1200, alternateData=None, mime='image/jpeg', updateSequenceNum=250, duration=None, attributes=ResourceAttributes(recoType=None, sourceURL=None, cameraMake=None, timestamp=1430902246000, altitude=None, clientWillIndex=None, longitude=None, fileName='IMG_20150506_141939.543.jpg', attachment=False, latitude=None, applicationData=None, cameraModel=None), guid='d31c8bf5-e73e-4c2e-8d6f-4f4fec90338c', data=Data(body=None, bodyHash='\xc2&\x91\xba\x1b\xb9\x84\xe8LY\xebx\xef:\xdd\xe8', size=37020), active=True, recognition=Data(body='<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE recoIndex PUBLIC "SYSTEM" "http://xml.evernote.com/pub/recoIndex.dtd"><recoIndex docType="unknown" objType="image" objID="c22691ba1bb984e84c59eb78ef3adde8" engineVersion="6.6.33.0" recoType="service" lang="en" objWidth="1200" objHeight="927"><item x="497" y="237" w="44" h="101"><t w="26">who</t></item></recoIndex>\n', bodyHash="+\xca\x008g=n\x99M'T\xe7G\x82\\\x8b", size=923))])Is there any other way to identify Post-it® note. or any combination of Note parameter i can identify these Post-it® Notes from user account. Thanks! in Advance.
  12. Hi, I use the API for batch importing files to my own Evernote account. I have some code that worked a few months ago when I ran it last, but doesn't anymore. I'm working on a Mac, using the MacPorts version of Python 2.7. Now when I try to run the EDAMtest.py script, I get this error traceback: Traceback (most recent call last): File "EDAMTest.py", line 41, in <module> UserStoreConstants.EDAM_VERSION_MINOR File "build/bdist.macosx-10.8-x86_64/egg/evernote/api/client.py", line 132, in delegate_method File "build/bdist.macosx-10.8-x86_64/egg/evernote/edam/userstore/UserStore.py", line 490, in checkVersion File "build/bdist.macosx-10.8-x86_64/egg/evernote/edam/userstore/UserStore.py", line 501, in send_checkVersion File "build/bdist.macosx-10.8-x86_64/egg/thrift/transport/THttpClient.py", line 125, in _f File "build/bdist.macosx-10.8-x86_64/egg/thrift/transport/THttpClient.py", line 150, in flush File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1031, in putheader raise ValueError('Invalid header value %r' % (one_value,))ValueError: Invalid header value 'en-devtoken:V=2 / 1.25; Python / 2.7.10 (default, May 25 2015, 13:06:17) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)];'I have already revoked and reissued my developer token. I also downloaded and re-installed the Evernote API. But the error remains. The only clue I have is the bdist-macos-10.8-x86_64 lines. I did upgrade in January from 10.8 (Mountain Lion) to 10.10 (Yosemite). Could the script be finding old files instead? Thanks in advance for any help.
  13. Hi, all Maybe this question sounds stupid, but anyway Currently I am developing Linux-based application that interacts with Evernote servers. I will be using Consumer keys to authenticate users against their Evernote accounts. The question is very simple - since this is a Linux-based application these Consumer keys can be read by anybody. Is it safe to share one Consumer Secret/Consumer Key inside application with many users? Or is there any technique that solves this problem? Thanks in advance
  14. Hey all, I'm rather new to oAuth and I need to make a non-'web application' with the evernote API. Sadly all the information I seem to be able to find on oAuth at evernote is about web applications (which makes use of a return url to send the authentication key) Can anyone please explain to me how I can make my application authenticate on evernote without using a return url? Kind regards, WvD p.s. I'm using python for the job
  15. I'm modifying the sample Python code to find notes in a specific notebook. Everything goes well down to the FindNotesMetaData command (also tried it without the metadata part, but ended up with the same error). I have Python 2.7.8 installed. Anyone see what I'm doing wrong? The code is below the traceback error. The traceback error is: Traceback (most recent call last): File "edamtodo.py", line 57, in <module> notes=note_store.findNotes(auth_token,filter,0,10) File "/usr/lib/python2.7/site-packages/evernote-1.25.0-py2.7.egg/evernote/api/client.py", line 132, in delegate_method return targetMethod(*args, **kwargs) File "/usr/lib/python2.7/site-packages/evernote-1.25.0-py2.7.egg/evernote/edam/notestore/NoteStore.py", line 3805, in findNotes self.send_findNotes(authenticationToken, filter, offset, maxNotes) File "/usr/lib/python2.7/site-packages/evernote-1.25.0-py2.7.egg/evernote/edam/notestore/NoteStore.py", line 3815, in send_findNotes args.write(self._oprot) File "/usr/lib/python2.7/site-packages/evernote-1.25.0-py2.7.egg/evernote/edam/notestore/NoteStore.py", line 12608, in write self.filter.write(oprot)AttributeError: 'function' object has no attribute 'write' These are the import lines at the top of the file:import hashlibimport binasciiimport evernote.edam.userstore.constants as UserStoreConstantsimport evernote.edam.type.ttypes as Typesfrom evernote.api.client import EvernoteClientfrom evernote.edam.notestore.ttypes import NoteFilter, NotesMetadataResultSpecfrom evernote.edam.type.ttypes import NoteSortOrder note_store = client.get_note_store()print ("Past note-Store")# List all of the notebooks in the user's accountnotebooks = note_store.listNotebooks()print ("Found "), len(notebooks), " notebooks:"filter = note_store.NoteFilter #(order=NoteSortOrder.UPDATED)for notebook in notebooks: print (" * "), notebook.name if notebook.name == "FC": #filter.notebookGuid=notebook.guid print (notebook.guid)sText="tag:.meetings tag:.notes"print (notebook.guid), " ", sTextfilter.words=sTextnotes=note_store.findNotes(auth_token,filter,0,10)for note in notes: print "Note: ", note.title
  16. hi i'm trying to write a python client but am running in to a EDAMUserException(errorCode=3, parameter='authenticationToken') issue. when using the developer token generated from the sandbox, the client works fine, but when i make use of an authentication token that i have retrieved from oauth, the token doesn't work. in my code, i define (using the evernote sandbox) my auth token and auth_token="XXXFROM_SANDBOXXXX"" client = EvernoteClient(token=auth_token, sandbox=True) the above works fine, but when i use the an auth_token from oauth auth_token="XXXFROM_OAUTHXXX"" client = EvernoteClient(token=auth_token, sandbox=True) it doesn't work. can anyone advice?
  17. I am using the Python3 API in a plugin for Sublime Text 3 (https://packagecontrol.io/packages/Evernote). It works well in normal circumstances but it seems to choke when used behind a Proxy. I tried to troubleshoot the errors and it would seem that the Thrift library shipped with the Python3 SDK is not configured to support proxy settings. This is in contrast with the Python2 SDK which seems to have parameters for setting a proxy. Ideally, this needs to work with Python 3.3.3. Any suggestions on how to proceed? Are there any plans to update the Python3 SDK (I posted an issue on GitHub but no reply)?
  18. I opened a github bug at https://github.com/evernote/evernote-sdk-python/issues/33 but I can't tell if anyone ever looks at those, so I'm posting here as well. Details: If you do pip install evernote and pip install thrift you'll end up with: File "/usr/local/lib/python2.7/site-packages/evernote-1.25.0-py2.7.egg/evernote/api/client.py", line 146, in _get_thrift_client http_client.addHeaders({ AttributeError: THttpClient instance has no attribute 'addHeaders' because the evernote sdk includes the thrift library and apparently modifies it. Possible solutions look like 1) switch to using/subclassing the main thrift library 2) move the included thrift library to an internal evernote namespace so they don't conflict. Thanks!
  19. I'm trying to get the python API up and running with the developer sandbox. When I run the following snippet, I get the error EDAMUserException: EDAMUserException(errorCode=2, parameter='authenticationToken') What could the cause of this be?Update: I have regenerated the user token and it is definitely of the correct form. Now when I run the snippet below, I get the error EDAMSystemException: EDAMSystemException(errorCode=8, rateLimitDuration=None, _message='authenticationToken') from evernote.api.client import EvernoteClientdev_token = "mytoken#"client = EvernoteClient(token=dev_token)userStore = client.get_user_store()user = userStore.getUser() #fails here with EDAMUserExceptionprint user.username
  20. Greetings everybody! This is my first post here; and i am new here, so please bear with me for asking questions which might be obvious to most others. Ok! So i am following this link along, https://dev.evernote.com/doc/start/python.php, step by step, for installing python sdk. Things i have done: I have made a new sandbox account. I have got both the evernote keys. I have installed python 2.7 on my system I have downloaded setuptools; and installed ez_setup.py Git cloned the python-sdk from github. Then i ran "python setup.py install" script to install evernote on my system.Where i am stuck: After doing all the 6 steps above, i tried testing the SDK, as instructed: python -c 'from evernote.api.client import EvernoteClient' from the command line.But i am getting this error here: File "<string>", line 1 'from ^ SyntaxError: EOL while scanning string literal. Any help here is appreciated, so that i can move forward. Thanks..
  21. Hi everyone, I'm new on evernote and I'm developping a desktop application (not a web application) that uses Evernote in python. So I have my application, and I want the user to log on a webpage before having access to the application. The issue is that I don't understand how to log on, I make my application with a developper token as recommmanded in the quick start guide, but now I want to log with an evernote account (and not a sandbox). I now I have to use oAuth, but I don't understand how I get the "consumer key" and the "consumer secret" as in https://github.com/evernote/evernote-sdk-python#usage. Is there our username and our password? And the callback url? Thank you very much
  22. Hi, I am trying to create a blog app built on evernote that basically allows you to view any public notebook in a more 'bloggy' form. Assume I have the username of a Evernote user with 0 or more public notebooks. For example, my username is occulens. Given this username, is it possible to get a list of my public notebooks without authenticating? (assume we have username, consumerKey and consumerSecret, but nothing else) What might this code look like? (python or psuedocode is preferred)
  23. Code using the Evernote Python SDK (https://github.com/evernote/evernote-sdk-python), which has run well for over a year, didn't work this morning. I'm running Python 2.7.7 and v 1.25 of the SDK on OS X. When I run the sample app (following the instructions at https://github.com/evernote/evernote-sdk-python#getting-started---client) using the debugger: Traceback (most recent call last): File "/Users/raymondyee/anaconda/envs/ipython-dev/lib/python2.7/pdb.py", line 1314, in main pdb._runscript(mainpyfile) File "/Users/raymondyee/anaconda/envs/ipython-dev/lib/python2.7/pdb.py", line 1233, in _runscript self.run(statement) File "/Users/raymondyee/anaconda/envs/ipython-dev/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals File "<string>", line 1, in <module> File "EDAMTest.py", line 11, in <module> import hashlib File "build/bdist.macosx-10.5-x86_64/egg/evernote/api/client.py", line 60, in get_user_store store = Store(self.token, UserStore.Client, user_store_uri) File "build/bdist.macosx-10.5-x86_64/egg/evernote/api/client.py", line 122, in __init__ self._client = self._get_thrift_client(client_class, store_url) File "build/bdist.macosx-10.5-x86_64/egg/evernote/api/client.py", line 146, in _get_thrift_client http_client.addHeaders(**{AttributeError: THttpClient instance has no attribute 'addHeaders'Uncaught exception. Entering post mortem debuggingRunning 'cont' or 'step' will restart the program> /Users/raymondyee/C/src/evernote-sdk-python/sample/client/build/bdist.macosx-10.5-x86_64/egg/evernote/api/client.py(146)_get_thrift_client()-> http_client.addHeaders(**{ The exception is at line https://github.com/evernote/evernote-sdk-python/blob/1.25.0/lib/evernote/api/client.py#L146 The problem seems to be that the URL used to construct the Thrift client is malfunctioning: https://www.evernote.com//edam/user Other people seeing this problem? I don't imagine this is only a Python SDK problem if the root issue is a bad Thrift client URL. Thanks,-Raymond
  24. try: ...... noteStore = get_notestore(shardId) list_notebooks = noteStore.listNotebooks(authToken) except Exception, e: if e.errorCode == Errors.EDAMErrorCode.AUTH_EXPIRED: print ......... Hi, I want to verify that AUTH TOKEN is EXPIRED or not. I am trying to call listNotebooks method in try/catch block. When I call listNotebooks with expired token I get exception. When my exception block executes, it gives me this error type 'exceptions.EOFError'. And I follow this link https://dev.evernote.com/doc/articles/revoked_expired_auth.php. This link explains how to catch EDAMUserException but I can't get any exception when I call listNotebooks method. How or when I get this exception? Please explain.
  25. Hi there, I am trying to debug an issue where creating/appending to existing note causes an exception with EDAMUserException(errorCode=11, parameter="The entity name must immediately follow the '&' in the entity reference.") This happens on this particular item: task = 'Kind Nuts & Spices Madagascar Vanilla Almond Bar', and work fine if the string didn't have any & sign in it. Here is the snippet of code I use for prepending an item to the note. # find where to put the new item insertionMarker='<en-note>' newItemLocation=theNote.content.find(insertionMarker)+len(insertionMarker) newContent = theNote.content[:newItemLocation] newContent += '<div><en-todo></en-todo> ' + task + ' ' + attachment + ' </div>' newContent += theNote.content[newItemLocation:] theNote.content = newContent Any help would help. Thanks, Rajan
×