According to the Evernote docs, a resource is created along with a note that contains and references it.
Say I have a note with a resource, and I want to create a new note with exactly the same resource.
Is there a way to create the new note and use the existing resource, instead of creating a new duplicate resource?
Reasons for that:
getNote
API call, and I have no reason to pass with_resource_data=True
, which will consume bandwidth.I'm using the Python Evernote SDK.
No. There's no way to do that. A resource is linked to a specific note and can't be shared amongst notes. That's why there's a noteGuid attribute in the Resource object.
So you'll have to get the resource with the note, attach it to the new note and upload the new note.
It's not optimal but it's the only way...