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

listDocuments returns empty array #260

Open
doebi opened this issue Oct 16, 2023 · 1 comment
Open

listDocuments returns empty array #260

doebi opened this issue Oct 16, 2023 · 1 comment

Comments

@doebi
Copy link

doebi commented Oct 16, 2023

Hi. I am in the process of building a standalone frontend for rmfakecloud and could require some inputs on the internals of the api interface.

I got the device registration with token refresh, etc all working, but when I request document-storage/json/2/docs I get an empty array as response.

In comparison, when I request integrations/v1/ I get a valid array with my configured cloud providers, which lets me assume the authentication and requesting is correct.

I don't know where to go from here, any comments appreciated. Thanks.

@nemunaire
Copy link
Collaborator

nemunaire commented Nov 8, 2023

Hi @doebi!

The route /document-storage/json/2/docs is used by the old sync. The storage backend is not shared between the old and the new sync, that's why you got an empty array.

There is no drop-in replacement route: with the new sync, you should get the root file hash with /sync/v3/root, then retrieve the root file with /sync/v3/files/<FILE_HASH>. You'll see the list of the files, with the hash to request in the first column. You'll certainly just need to read files ending with .metadata.

⚠️ Those routes are the one used by reMarkable and are subject to change to follow their use, this is perhaps not what you want, if you need something stable.

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