云消息服务 KOOMESSAGE-一站式服务号创建:请求示例

时间:2024-11-22 10:18:09

请求示例

一站式创建智能信息服务号。

https://koomessage.myhuaweicloud.cn/v1/aim-sa/unify/pubs

{
  "pub_request_body" : {
    "logo_img" : "651029053e15443eb5e26e1f4495cccc",
    "pub_name" : "服务号名称",
    "pub_abstract" : "服务号摘要",
    "pub_remark" : "服务号备注",
    "auto_get_port" : 1,
    "signs_for_auto_get_port" : [ "短信签名" ],
    "areas_for_auto_get_port" : [ "四川省", "佛山市" ],
    "industry" : 1,
    "authorization_files" : [ "0315f966f362400d9b2f369aef98cccc" ]
  },
  "portal_request_body" : {
    "background_img" : "6d5eb6dc1c1a4fa6a240671e0845cccc",
    "summary" : "主页简介",
    "tels" : [ {
      "tel" : "131****0000",
      "usage" : "官网电话用途"
    } ],
    "fastapps" : [ {
      "name" : "主页快应用",
      "logo_img" : "651029053e15443eb5e26e1f4495cccc",
      "description" : "快应用简介",
      "deeplink" : "hap://app/fastapp1",
      "depend_engine_version" : "1040"
    } ],
    "hw_pubs" : null
  },
  "menu_request_body" : {
    "menu" : {
      "menu_items" : [ {
        "name" : "打开商城",
        "action_type" : "OPEN_URL",
        "content" : "https://www.example.com/",
        "ext_msg" : {
          "web_title" : "百度百度",
          "open_in_browser" : 1
        },
        "sub_menu_items" : [ ]
      }, {
        "action_type" : "OPEN_SUBMENU",
        "name" : "联系我们",
        "content" : null,
        "ext_msg" : { },
        "sub_menu_items" : [ {
          "action_type" : "OPEN_URL",
          "name" : "百度一下",
          "sub_menu_items" : [ ],
          "content" : "https://www.example.com/",
          "ext_msg" : {
            "web_title" : "url标题",
            "open_in_browser" : 1
          }
        } ]
      } ]
    }
  }
}
support.huaweicloud.com/api-koomessage/CreatePubInfo.html