0
嘗試共享商務筆記本時,出現createSharedNotebook上的Evernote.EDAM.Error.EDAMErrorCode.PERMISSION_DENIED
錯誤。用Evernote API共享商務筆記本
AuthenticationResult busAuthResult = _userStore.authenticateToBusiness(authToken);
var bAuthToken = busAuthResult.AuthenticationToken;
var bNoteStoreUri = busAuthResult.NoteStoreUrl;
TTransport noteStoreTransport = new THttpClient(new Uri(bNoteStoreUri));
TProtocol noteStoreProtocol = new TBinaryProtocol(noteStoreTransport);
var noteStore = new NoteStore.Client(noteStoreProtocol);
var notebook = noteStore.getNotebook(bAuthToken, notebookGuid);
var sharedNotebook = new SharedNotebook();
sharedNotebook.Email = "[email protected]";
sharedNotebook.NotebookModifiable = true;
sharedNotebook.AllowPreview = true;
sharedNotebook.NotebookGuid = notebookGuid;
noteStore.createSharedNotebook(bAuthToken, sharedNotebook);
帳戶我使用訪問共享筆記本,所以我無法揣摩出這個錯誤的來源。我一直無法找到共享商業筆記本的任何東西,所以任何想法或鏈接將不勝感激!
我假設你得到EDAMUserException(https://dev.evernote.com/doc/reference/Errors.html#Struct_EDAMUserException)。它的參數是什麼? – kentaro
引發了'Evernote.EDAM.Error.EDAMUserException'類型的異常。 –
參數是authenticationToken –