I often (twice an year :) - create a lot of shared notebooks with help of this script:
for stud in students:
#Создаём блокнот для студента и шарим его
newNotebook = Types.Notebook()
newNotebook.name = stud
newNotebook.stack = "Университет:Студенты и группы"
notebook = note_store.createNotebook(auth_token,newNotebook)
#Шарим с правом записи
shared = Types.SharedNotebook()
shared.email = students[stud]
shared.notebookGuid = notebook.guid
shared.allowPreview = True
shared.privilege = Types.SharedNotebookPrivilegeLevel().MODIFY_NOTEBOOK_PLUS_ACTIVITY
note_store.createSharedNotebook(auth_token, shared)
print("Created notebook: ",stud," and shared with ",students[stud])
But, before they can use it, I have to manualy send invitation link from web or Evernote application. Is there any clues how to automate this? Can I sent email invitations from my script?
UPD: I can send email by myself, but I can't understand of invitation link format.
When I send it manualy, my recipients (students) get something like this:
https www.evernote.com/shard/s48/share/15c80-s48-14cf3395c61eada9bbfd1d1645ba4430-2/?nbn=NotebookName&un=zztalker&source=sharedNotebookInvite&shouldWelcome=true&gid=15c80-s48
Without this link they can't use shared notebook at all.