![]() Why do you need a strategy for your Evernote Notebooks? To share a notebook with the world, you need only set a couple of attributes on the Notebook object and call NoteStore.Evernote Notebooks are the primary tool used to organize notes in Evernote.Īn Evernote Notebook has features, functions and limitations that you should be aware of as you craft your Evernote Notebook strategy. Making a notebook publicly visible is a bit easier than sharing with specific people. Leave requireLogin unset (as it is deprecated). If the value is unset, the Evernote API will throw an exception indicating that requireLogin is invalid. Be sure to set the allowPreview boolean on the Notebook object to whichever value is appropriate. ![]() Note that this function requires special permission from Evernote if you need access to this functionality, get in touch with us. To stop sharing a notebook with a specific individual, you must call NoteStore.expungeSharedNotebooks and include the identifier for the correct SharedNotebook.Each notebook contains a sharedNotebooks collection containing these instances. In other words, SharedNotebook represents a relationship between a notebook and a single recipient. To share a notebook with multiple individuals, a separate instance of SharedNotebook must be used for each person.If you run the sample code above, you’ll see something like this in the sharing preferences for the notebook we created:Ī couple of other things about shared notebooks: Finally, we assign the desired privilege level using the privilege attribute on the SharedNotebook, which will be a member of the SharedNotebookPrivilegeLevel enumeration (see the docs for a description of each option).įinally, we send the SharedNotebook to Evernote by calling NoteStore.createSharedNotebook. By populating the notebookGuid and email attributes of the SharedNotebook instance, we create this relationship. This type can be described as establishing the relationship between the notebook and the person with whom it is being shared. Then, we create an instance of SharedNotebook. After notebook is then created on the Evernote service (using NoteStore.createNotebook), we’ll have the GUID of the notebook that we’ll use to share it. We begin by creating a new instance of Notebook and giving it a value for name. Here is a short example demonstrating how to create a new notebook and share it: The desired priviledge level (which are collected in the SharedNotebookPrivilegeLevel enumeration).The email address of the person with whom you’d like to share the notebook.The GUID of the Notebook you’d like to share.To share a notebook with a single person, you need three things (aside from an authenticated instance of NoteStore): Here’s a simple graphic illustrating these principles: Sharing a notebook with a single person When Susan accepts the invitation, a LinkedNotebook instance is created in Susan's account which points to Bob’s SharedNotebook instance. The LinkedNotebook defines this relationship between the shared notebook and the subscriber.įor example: if Bob creates a notebook in his account called “Fishing” and shares it with Susan, a SharedNotebook instance is created on Bob’s account which contains information about Susan (including her email address) and sent to the Evernote API. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |