evernote-cloud-sdk-windows icon indicating copy to clipboard operation
evernote-cloud-sdk-windows copied to clipboard

Add new notebook

Open PetroArtbrains opened this issue 9 years ago • 6 comments

I can't find solution to add new notebook in evernote using this SDK.

PetroArtbrains avatar May 08 '15 16:05 PetroArtbrains

Here is the code to create a new notebook. Note that this requires the Advanced API (i.e. it uses ENSessionAdvanced):

        Notebook newNotebook = new Notebook();
        newNotebook.Name = "My Newest Notebook";
        ENNoteStoreClient store = ENSessionAdvanced.SharedSession.PrimaryNoteStore;
        Notebook createdNotebook = store.CreateNotebook(newNotebook);

mpnow avatar May 08 '15 17:05 mpnow

(Sorry, did not mean to close the issue before verifying that you are all set here.)

mpnow avatar May 08 '15 17:05 mpnow

Thanks for your comments.

Also I have very important issue with productivity of SDK. Once I have about 3 notebooks, and about 1-4 notes in each notebook with some attachments 500 KB - 3 MB. my application become very slow. It takes about 3 minutes to run and get all Notebooks with all Notes and attachments on Windows 7. But on Windows 8.1 it takes about 10 seconds. Also Update takes a lot of time on some PCs but on other PCs take about 10 seconds. Can you advice me smth how to resolve this issue and make download notebooks and notes + attachments faster into my WPF application?

Thanks, Arc

PetroArtbrains avatar May 08 '15 19:05 PetroArtbrains

There's nothing about the API that would cause it to exhibit different performance on Windows 8 vs 7, or on different machines; and I'm afraid I don't have any great ideas on what might be causing the behavior you're seeing, other than to see if it's perhaps resource/attachment-related? (I.e. can you see a correlation between attachment size and timing?) If you can't find a correlation, then probably the best thing will be to trace through the code to determine exactly where the bottleneck is showing up.

mpnow avatar May 08 '15 19:05 mpnow

One other thing: make sure you're not hitting the Evernote rate limit. If you're in the Production environment and hitting the limit, you'd see a delay longer than a few minutes as you report. But in Sandbox, the delay is much shorter, so you could perhaps be hitting that.

mpnow avatar May 08 '15 19:05 mpnow