获取频道自定义菜单

优质
小牛编辑
130浏览
2023-12-01

请求header

 GET /v1/activities/{频道id}/getMenu
 Authorization:Bearer {ACCESS TOKEN}
 Content-Type:application/json

注:

请将上方的{ACCESS TOKEN}替换为您的ACCESS TOKEN

请将"{频道id}"替换您需要获取的频道id

返回

{
    "menus": {
        "errcode": 1000,
        "menus": [
            {
                "id": 240739,
                "name": "视频菜单",
                "order": 5,
                "type": 3,
                "rich_text_url": "",
                "photo_live_url": "",
                "videos": [
                    {
                        "vid": "mng1d54l"
                    },
                    {
                        "vid": "l8vp3d9o"
                    }
                ],
                "ranks": null
            },
            {
                "id": 240476,
                "name": "话题互动",
                "order": 4,
                "type": 4,
                "rich_text_url": "",
                "photo_live_url": "",
                "videos": null,
                "ranks": null
            },
            {
                "id": 240415,
                "name": "聊天互动",
                "order": 1,
                "type": 1,
                "rich_text_url": "",
                "photo_live_url": "",
                "videos": null,
                "ranks": null
            }
        ],
        "msg": "OK"
    }
}

返回参数说明

参数描述类型
id菜单IDinteger
name菜单名称string
order菜单排序integer
type菜单类别integer
rich_text_url图文链接地址string
videos视频string