Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持导出 公众号API 支持的 content 内容 #221

Open
selfboot opened this issue May 27, 2023 · 0 comments
Open

支持导出 公众号API 支持的 content 内容 #221

selfboot opened this issue May 27, 2023 · 0 comments

Comments

@selfboot
Copy link

微信公众号平台支持用API 导入图文:

https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html

一般 markdown 转换来的 html ,直接作为 content 的话,导入后列表啥的都是错乱的。

{
    "articles": [
        {
            "title":TITLE,
            "author":AUTHOR,
            "digest":DIGEST,
            "content":CONTENT,
            "content_source_url":CONTENT_SOURCE_URL,
            "thumb_media_id":THUMB_MEDIA_ID,
            "need_open_comment":0,
            "only_fans_can_comment":0
        }
        //若新增的是多图文素材,则此处应还有几段articles结构
    ]
}

这里可以提供一个基础库,可以支持导出一个 content,然后用接口插入格式正确的文章。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant