Kloudless服务page_size参数失效问题排查求助
Great question—let's walk through the most likely issues here:
Syntax typo in your API URL: Look at the folder path in your curl command:
folders/...=/contentshas a stray=after the folder ID placeholder. That extra equals sign is causing the API to misinterpret which folder you're targeting. Instead of fetching the specific folder you intended, it's probably falling back to a different directory (like your root Dropbox folder) that happens to have 600 items. Fix this by removing the=so the path readsfolders/[YOUR_FOLDER_ID]/contents.Misapplied
page_sizeparameter: Thepage_size=100setting works as intended only when the API is targeting the correct folder. Once you fix the URL typo, the API should respect this parameter and return 100 items per page. If you need to fetch additional pages later, you can use thepageparameter (e.g.,page=2) to get the next set of results.
Here's the corrected curl command to test:
curl -H 'Authorization: Bearer TOKEN' \ 'https://api.kloudless.com/v1/accounts/[YOUR_ACCOUNT_ID]/storage/folders/[YOUR_FOLDER_ID]/contents?page_size=100'
If you still see unexpected results after fixing the URL, double-check that your folder ID is accurate and that your API token has proper permissions for that folder. But the stray = is almost certainly the primary culprit here.
内容的提问来源于stack exchange,提问作者Volodymyr Gula

