如何禁用 Blogger API 的删除和更新 post 选项

How to disable delete and update post options to the Blogger API

我正在使用 Blogger Javascript API 来检索我的博文,任何人都可以轻松地在查看源代码中看到 API 键,它可用于删除和删除更新帖子。我想以某种方式阻止其他人这样做,有什么办法可以做到吗?

即使有人拿到了您的 api 密钥,他也无法对您的博客进行任何更改,因为 updating or deleting posts requests requires authorizing 使用 OAuth 2.0

If the request requires authorization (such as a request for an individual's private data), then the application must provide an OAuth 2.0 token with the request. The application may also provide the API key, but it doesn't have to.