Совместное использование записной книжки в песочнице - PullRequest
1 голос
/ 21 сентября 2019

Я создал учетную запись песочницы в Evernote, используя те же учетные данные, что и моя обычная учетная запись, и я сохранил довольно много статей об учетной записи песочницы в записной книжке.Я пытаюсь получить доступ к этому блокноту через свою обычную учетную запись, но там его нет.Как я могу просмотреть это?Кроме того, мне нужно поделиться этим блокнотом с другими пользователями в Evernote.Это можно сделать?Кстати, я еще не опубликовал свой ключ API.Будет ли это как-то требоваться?

https://dev.evernote.com/doc/articles/notebook_sharing.php. Пробовал оба подхода на связанной веб-странице, ни один не работал.

# Below, `notebook` is an instance of Types.Notebook representing
# a notebook that already exists in Evernote

sharedNotebook = Types.SharedNotebook()
sharedNotebook.notebookGuid = notebook.guid
sharedNotebook.allowPreview = True
sharedNotebook.privilege = Types.SharedNotebookPrivilegeLevel.MODIFY_NOTEBOOK_PLUS_ACTIVITY
sharedNotebook.email = "fakey@mcnotreal.com"

try:
    sharedNotebook = note_store.createSharedNotebook(sharedNotebook)
except Exception, e:
    print "Error creating shared notebook:"
    print type(e)
    print e
    raise SystemExit
# Get the default notebook for the current user
notebook = note_store.getDefaultNotebook()
# Allow it to be publicy viewable
notebook.published = True

notebook.publishing = Types.Publishing()
# Define the URI for the shared notebook
notebook.publishing.uri = "iseeyou"
# Give it a description
notebook.publishing.publicDescription = "My default notebook is public!"
# Update it on the server
note_store.updateNotebook(notebook)
# Build the URL for visiting the notebook on the web
notebookUrl = "https://%s/pub/%s/%s/" % \
                (client.service_host, 
                 user_store.getUser().username, 
                 notebook.publishing.uri)

print "View this notebook:",
print notebookUrl

# Output:
# https://sandbox.evernote.com/pub/inkedmn/iseeyou/

Мне нужно, чтобы я мог видеть иотредактируйте записную книжку учетной записи Песочницы на обычной учетной записи.

...