如何向博客添加帖子?

How to add posts to blogger?

我搜索了很多教程,但没有在 android 工作室找到使用 api 在 blogger 中插入帖子的教程。所以任何人都有在 android 应用程序中显示博主帖子的项目代码,并使用 api.

添加帖子

我建议查看如何制作 network requests in Android and play with some APIs. You can use Retrofit 库来实现这一点。

如果您想使用应用程序将博客上传到 Blogger,请查看 Blogger API Docs

编辑 - 如何在 Blogger 上添加 post -

官方docs建议

You can add a post for a blog by sending a POST request to the post collection URI with a post JSON body 因此,我建议您使用 Retrofit 为 Blogger API

创建一个 POST request

另外请注意,为此您必须经过身份验证。