Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Notes API Helper Documentation Incorrect #10

Open
nlovelace opened this issue Mar 31, 2021 · 1 comment
Open

File Notes API Helper Documentation Incorrect #10

nlovelace opened this issue Mar 31, 2021 · 1 comment

Comments

@nlovelace
Copy link

Kept getting errors when trying to post a comment/note to a file. Egnyte support replied back that .addNote() is not a function of storage but rather notes. The online documentation needs to be corrected.
GitHub currently shows API.storage.path(path to file).addNote;

Response from Egnyte Support:
Yes, the error is expected as the addNote method is not a member of storage module. You need to use the notes module (i.e. egnyte.API.notes.path("/Shared/TECHNOLOGY/README.txt").addNote("Test") ).

@naugtur
Copy link
Collaborator

naugtur commented Mar 31, 2021

Thanks for taking the time to report.
We'll get it fixed.
I see in code there was an intention to make notes available in storage module too, but never fulfilled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants