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

update(official): add create_time update_time thumb_url field to Draft and Publish #549

Conversation

wenlong-date
Copy link

原因

目前微信公众号下面的接口实际默认返回字段所有增加,信息如下

  • 草稿箱

    • 获取草稿接口
      • news_item 同级目录下增加 create_time update_time 两个字段,类型为 int 类型,数据值为秒级时间戳
      • news_item 下数组中增加 thumb_url 字段,返回为封面图的图片地址
    • 获取草稿列表接口
      • item.content.news_item 同级目录下增加 create_time update_time 两个字段,类型为 int 类型,数据值为秒级时间戳
      • item.content.news_item 下数组中增加 thumb_url 字段,返回为封面图的图片地址
  • 发布能力

数据示例

获取草稿接口

{
    "news_item": [
        {
            "title": "title",
            "author": "author",
            "digest": "xx",
            "content": "xxx",
            "content_source_url": "",
            "thumb_media_id": "UYLU01nL-xxx",
            "show_cover_pic": 0,
            "url": "http://mp.weixin.qq.com/s?__biz=MzkzNDxx",
            "thumb_url": "http://mmbiz.qpic.cn/mmbiz_jpg/hc3SEHkgkYrEVpxx/0?wx_fmt=jpeg",
            "need_open_comment": 0,
            "only_fans_can_comment": 1
        }
    ],
    "create_time": 1725011137,
    "update_time": 1725011137
}

获取草稿列表接口

{
    "item": [
        {
            "media_id": "UYLU01nL-q2MA7_xx",
            "content": {
                "news_item": [
                    {
                        "title": "title",
                        "author": "author",
                        "digest": "xx",
                        "content":"xx",
                        "content_source_url": "",
                        "thumb_media_id": "UYLU01nL-q2MA7_xx",
                        "show_cover_pic": 0,
                        "url": "http://mp.weixin.qq.com/s?__biz=MzkzNDYxNzMxMQ==&tempkey=MTI4N19zeG1sRxx",
                        "thumb_url": "http://mmbiz.qpic.cn/mmbiz_jpg/hc3SEHkgkYoXy9LxHixx/0?wx_fmt=jpeg",
                        "need_open_comment": 0,
                        "only_fans_can_comment": 1
                    }
                ],
                "create_time": 1724752135,
                "update_time": 1724752136
            },
            "update_time": 1724752136
        }
    ],
    "total_count": 11,
    "item_count": 10
}

@Matrix-X Matrix-X changed the base branch from release/3.2.0 to develop September 13, 2024 04:00
@Matrix-X Matrix-X merged commit 2650b82 into ArtisanCloud:develop Sep 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants