首页 > 解决方案 > 如何使用python在博客api帖子插入中添加图像

问题描述

    posts = service.posts()
    body = {
        "kind": "blogger#post",
        "id": "" + str(post_id) + "",
        "title": "" + title + "",
        "content": "" + content + ""


        , "labels": [
            "software"
        ]

   }
    posts.insert(blogId=BlogId, body=body, isDraft=False, fetchBody=True, fetchImages=True).execute()

标签: pythonapipostblogger

解决方案


推荐阅读