发送小程序消息

参数

参数名 必选 类型 说明
cmd string 请求方法
user_id string 当前客户端的用户ID
request_key string 操作key,自定义的一个字符串,用于取回调消息的时候对应上相关的操作
params.con_id string 会话id
params.channel_url string 视频号链接
params.username string 视屏号的用户名称
params.img_url string 视频号icon图标地址
params.channel_name string 视频号id描述文字
params.encode_data string 视频号encode_data,回调消息中可以获取到
params.thumb_url string 视频号大图地址

请求参数示例

{
  "cmd":"SendVideoNumberMsg",
  "user_id":"168xxxxxxxx",
  "request_key":"1231233",
  "params": {
      "con_id":"S:16888529xxxxxxxxxx",
      "img_url":"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F4k%2Fs%2F02%2F2109242332225H9-0-lp.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648305006&t=c72662595164b84fffe73ffc3cbc3a24",
      "username":"咬米ya",
      "channel_url":"https://channels.weixin.qq.com/web/pages/feed?eid=export%2FUzFfAgtgekIEAQAAAAAA15Uu0UkZQgAAAAstQy6ubaLX4KHWvLEZgBPEl4MkOC9kOIL9zNPgMIDe8jXqWbeBBlvecXS9PvkZ",
      "channel_name":"车已经有了,就缺个人了",
      "thumb_url":"http://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=rjD5jyTuFrIpZ2ibE8T7YmwgiahniaXswqzicGqhUibb40gLnTED1picZzMEIXYLnWpw7Qbic9jSiajC9zXYbFa0DWZUdSzsVch8QsVQhvYO810gCLibVA5CQ5e0ESg\u0026adaptivelytrans=0\u0026bizid=1023\u0026dotrans=0\u0026hy=SH\u0026idx=1\u0026m=\u0026scene=0\u0026token=AxricY7RBHdXN0Vt0JrSiaF2TicRUzoq8RYY6efFvCpSGg7RB3JQLPhibd1lCrOHARBtGbicFAD7ZdaU\u0026finder_expire_time=1646320502\u0026finder_eid=export%2FUzFfAgtgekIEAQAAAAAA15Uu0UkZQgAAAAstQy6ubaLX4KHWv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HycwDRsc6eEPkVVJjNw8TlcRKDQbMjCByPmOQKedBQ3BAvBgSOVcsF08kRvXVfyaPXx0vnItUQqOSqTztEcul8bWj/kdQAPzwf5m9RS1h0yD1Uppmz5ys1i3J8ig3GOJyp1OYSE+RBI21h+q+MH98kd4WvB1F2gJz4s3M/WvXtFQWgdj78QtjoykqZoC8UruwoaBoVkJYR71KvlB1UlyrBrVk5jP1NWxgadv5sHMdp/ruACjqLYfmJDXPN/d0uBjEAvtU635gRGDEEeg6lVLu2LMH3Y7iUmQP1Pe/3xzYG4DHj/ViOdwIwuEKRdkewNqMYyeP0bld2LLfjG+7oL8JQLZpGIxNGbXfgfw4zuM7hjHRWoO7OihocIGe4rFBxkLWa0/OTtMGZ6EXJA02k5VJZcvVnkUwHuKgmWDj37un6OuguC+HnIcXOpzsLnJkiXI0TDkhhkv1iYttLaeuBvzr+M3Uxl9Jzk/XBcrhLgCBsyrFNDgE7BrE+T2rBULiw5j7zbL2Kx0/wy281n8PCm/L1JsYgjQ0PtmGvyQse9ItOeQeCZIix/8f6kS08E7APR45hqoccwoXx7MOJRUSo3GGu25SnJrj/FbBvLbBQc7Inuo2kt5QfAuP5TbyaScqjUeQEEBvMN9eHAhb3V0Jbw5lrTgd0qTvXT3tBImk/TqHZevI88Zi+/BaWmAYD4uFmgKZ5e+8PRZnaPz6tBlOav2iiM1GfvBU+CvcwNl/MoAA=="
  }
}

回调参数详解

参数名 类型 说明
is_room_msg int 是否是群消息
msg_local_id int 本地消息id
msg_server_id int 服务器消息id
msg_unique_identifier string 消息的标识,可用于做转发
msgtype int 消息类型:2文字
receiver string 接收者:可以是群或者好友的id
sender_id string 发送者:一般是用户id
request_key string 请求key,做来对应发起的请求操作的
sender_nickname string 发送者昵称
timestamp int 消息发送时间

回调结果示例

{
    "type":15001,
    "cmd_type":"SendMsgCall",
    "user_id":"1688xxxxxxxxx",
    "request_key":"1231233",
    "data":{
        "channel_name":"6L2m5bey57xxxxxxx",
        "channel_url":"https://channels.weixin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IYgrmhiRXpjLyV5sqG8XpCmZmTCTU0GG1CXw7i39Piq1F6EFyuJMCUy6NRJ9FqBRZ3HgyQYzUw/sOa/3cHI/nNLejBUyeLZvYqFk1MJsrHbh1PCV5dnsPEQWTKjj2R2jQ5X6D/tbUe3xDXYaX1d5Ce0Q/him0WkMJ8NzmAZOyfcm4IUzHWtyftjH1CYZGf7iSR27ujfuN5/dmcWsBgwwUUiKq72AHO/B3Dq6Rmk56AwradCOiL0j8VSbwuPi8gB0Zn7nuZbPnnGmsmGoz9FQq5ctyeETRLMT/yBntu//q90ylGtr3uLmMMLR2dXxlvg0OT+uJ+d1cOL/k1B2wtOARvAgScPFCsPOpnCXAQFwTwC7spoXAw6vmEx1sgTDq684AVqkhTZOc8K2ZrHnZ7eFzHkzHWMoXzg94nx9km/MMqg1qRiX51l7094ADHB7Lg9kemH5tebJE0bnar/B3lMt2uidk/9KJgclnFK5/PgluwiTewzh0wc0zJMklMxJM+uRa8NlVYyrquwdxkpR3LaLgbDWt7i5Jf91dHmOQstSwBQ0tikCeXtRPvFykz2m9jngJ9BXtwINx5YxAIetXFLexXO8lQdXYiCYTWNCnftg74sFKNRBPi7A7c6kmUfCZSJApXb7DPZYCBp4jCVSWX22IoWDps84gJbEyYg+Inq7t1qVCb5LKyBJNfIVD+kV//L99LLVFKb4mQcnPjbQh1JUgSyYvBPkyLfCVlThjITca63zDHUZz7d5h3LcVT5M7MMgquSmitol7o/4v0BOGMoPMSS0OuzUFwa4HdBVKIM5BzcmufJYcLFZm67g29vr4d3pbJioezEiAR/ULFzhSO/FrnzRR2WzYKgaqVETLKM757/W0pc0fYxxxxxxxxxxxxxx",
        "head_img_url":"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F4k%2Fs%2F02%2F2109242332225H9-0-lp.jpg\u0026refer=http%3A%2F%2Fimg.jj20.com\u0026app=2002\u0026size=f9999,10000\u0026q=a80\u0026n=0\u0026g=0n\u0026fmt=jpeg?sec=1648305006\u0026t=c72662595164b84fffe73ffc3cbc3a24",
        "is_room_msg":0,
        "msg_local_id":217,
        "msg_server_id":1010118,
        "msg_unique_identifier":"CAEQ5Zxxxxxxxxxx",
        "msgtype":141,
        "receiver":"7881xxxxxxxxxxx",
        "request_key":"1231233",
        "sender_id":"16888xxxxxxx",
        "sender_nickname":"周xxxxxxx",
        "thumb_url":"http://wxapp.tc.qq.com/251/20304/stodownload?encfilekey=rjD5jyTuFrIpZ2ibE8T7YmwgiahniaXswqzicGqhUibb40gLnTED1picZzMEIXYLnWpw7Qbic9jSiajC9zXYbFa0DWZUdSzsVch8QsVQhvYO810gCLibVA5CQ5e0ESg\u0026adaptivelytrans=0\u0026bizid=1023\u0026dotrans=0\u0026hy=SH\u0026idx=1\u0026m=\u0026scene=0\u0026token=AxricY7RBHdXN0Vt0JrSiaF2TicRUzoq8RYY6efFvCpSGg7RB3JQLPhibd1lCrOHARBtGbicFAD7ZdaU\u0026finder_expire_time=1646320502\u0026finder_eid=export%2FUzFfAgtgekIEAQAAAAAA15Uu0UkZQgAAAAstQy6ubaLX4KHWvLEZgBPEl4MkOC9kOIL9zNPgMIDe8jXqWbeBBlvecXS9PvkZ",
        "timestamp":1645759590,
        "username":"咬米ya"
    }
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2022-08-06 23:28:46

results matching ""

    No results matching ""