从概念中获取数据库内容

Fetching database content from notion

根据概念 API, to retrieve the contents of your database you need to perform a post request. I’m trying to build an app that fetches the content from a database I’ve created on Notion 通过其 API 并将其显示在 table 视图中。这不是获取请求,我该怎么做?

如果您已经设置了网络逻辑,您只需添加这行代码(将“请求”对象名称更改为您命名的任何名称):

 request.httpMethod = "POST"

下面是如何进行 post 网络调用的示例:https://www.appsdeveloperblog.com/http-post-request-example-in-swift/