我还有下一个问题要问。
curl -X POST 'https://api.notion.com/v1/databases/%DB_ID%/query'\
-H 'Authorization: Bearer %SECRET%' \
-H 'Notion-Version: 2021-05-13' \
--data '{
"filter":{}
,"start_cursor" : "%NEXT_CURSOR_FROM_PREV_REQUEST%"
}' > notion_db2.json但结果包含第一次请求的结果(我的数据库包含超过100页)
我应该如何重写我的请求?
发布于 2021-09-22 04:09:53
您只是遗漏了以下标题:
-H "Content-Type: application/json" \您当前的请求一起错过了正文部分!
发布于 2021-09-26 01:08:19
我在我编写的Python程序中测试了您的代码,得到了一个HTTP400错误响应。
我删除了空的过滤器参数,它起作用了。
试试这个:
curl -X POST 'https://api.notion.com/v1/databases/%DB_ID%/query'\
-H 'Authorization: Bearer %SECRET%' \
-H 'Notion-Version: 2021-05-13' \
--data '{
"start_cursor" : "%NEXT_CURSOR_FROM_PREV_REQUEST%"
}' > notion_db2.jsonhttps://stackoverflow.com/questions/68671877
复制相似问题