egnyte / egnyte-js-sdk

Javascript SDK to work with Egnyte Public APIs
15 stars 16 forks source link

eg.API.storage.download is not a function #4

Closed jacobscarter closed 7 years ago

jacobscarter commented 7 years ago

@naugtur

When using your example filepicker_usecase.html as well as trying to implement it in my own project I get the error message:

Uncaught TypeError: eg.API.storage.download is not a function

Can you verify this is working for you or suggest debugging options to discover why I am getting this error.

Thanks.

naugtur commented 7 years ago

Hi,

In short: API.storage.fileId("6a5ec46a5e4c6e4c65e4c654e6").download is a function.

As per docs, the function is at API.storage.identify(...).download where identify() is one of:

Documented here: https://github.com/egnyte/egnyte-js-sdk/blob/master/src/docs/api.md#identification

jacobscarter commented 7 years ago

I would then suggest editing your example page so that it has working code on it. Thanks for pointing me in the right direction.

naugtur commented 7 years ago

Thanks for letting me know about this. Appreciated.