Discussions
How to retrieve files under folders with v2.0
Hello all,
I'm trying to retrieve files under folders with v2.0 of the API. This is currently not documented.
Any hint would be appreciated. I already tried the parameters used in v1.0 but this seems not to be working.
Also: How do I retrieve workspaces? Currently, the workspace "My Files" seems to be the default and I don't see any possibility to change that.
Thank you for your help.
Best regards
Norbert
Hi Norbert,
Retrieving Workspaces
As for retrieving workspaces, it sounds like the default "My Files" workspace is being used. To retrieve or switch between workspaces, these actions may be available in v2.0:
Workspaces Endpoint: Look for an endpoint like:
GET /workspaces or GET /workspaces/{workspace_id} to list or get details about available workspaces.
Workspace Filters: If you need to access specific workspaces, ensure you include the correct workspace identifier (ID) in your request. For instance:
GET /files?workspace_id={workspace_id} to retrieve files from a particular workspace.
Switching Workspaces: Some APIs may allow setting the workspace in the request header, body, or as a parameter in the request URL.
Edited by Geometry Dash 1 day ago
ο»Ώ