酷喵HttpApi
  1. Api接口
酷喵HttpApi
  • 说明(安装和使用)
  • 回调设置
  • 预览
  • Api接口
    • 获取登录二维码
      GET
    • 获取微信登录状态
      GET
    • 获取微信个人信息
      GET
    • 发送文本消息
      POST
    • 发送图片消息
      POST
    • 发送文件
      POST
    • 发送卡片消息
      POST
    • 发送群@消息
      POST
    • 发送小程序xml消息
      POST
    • 发送音乐分享消息
      POST
    • 发送文章分享消息
      POST
    • 发送自定义xml消息
      POST
    • 发送聊天记录
      POST
    • 删除好友
      POST
    • 添加好友(未发布)
      POST
    • 群_直接拉人进群
      POST
    • 群_发链接邀人进群
      POST
    • 群_修改群名
      POST
    • 群_好友_修改备注
      POST
    • 关注公众号
      POST
    • 取消关注公众号
      POST
    • wx_获取朋友圈(未发布)
      GET
    • 群_获取群信息
      GET
    • 群_获取群全部成员wxid
      GET
  • test
    • 更新日志
  1. Api接口

发送小程序xml消息

开发中
POST
http://127.0.0.1:25925/km/sendAppXml

请求参数

Query 参数
wxid
string 
必需
接收人wxid或群号
示例值:
zwl10203040
imgaddr
string 
必需
小程序消息显示的图片,填本地图片地址
示例值:
C:\Users\zwl\Desktop\mao.jpg
xml
string 
小程序卡片xml
必需
示例值:
<msg> <fromusername>wxid_ojrhxuo7pgud22</fromusername> <scene>0</scene> <commenturl></commenturl> <appmsg appid="wxf9c6a0ba5b7447a3" sdkver=""> <title>初酱一番赏 2000发大套测试 第2箱</title> <des></des> <action>view</action> <type>33</type> <showtype>0</showtype> <content></content> <url>https://mp.weixin.qq.com/mp/waerrpage?appid=wxf9c6a0ba5b7447a3&amp;amp;type=upgrade&amp;amp;upgradetype=3#wechat_redirect</url> <dataurl></dataurl> <lowurl></lowurl> <lowdataurl></lowdataurl> <recorditem></recorditem> <thumburl></thumburl> <messageaction></messageaction> <md5>c2fd5f9eb3ce443f19be0fc072079308</md5> <extinfo></extinfo> <sourceusername></sourceusername> <sourcedisplayname>修罗一番赏</sourcedisplayname> <commenturl></commenturl> <appattach> <totallen>0</totallen> <attachid></attachid> <emoticonmd5></emoticonmd5> <fileext>jpg</fileext> <cdnthumburl>3052020100044b30490201000204e740352a02033d12000204c9cf1baf0204623dbe63042430653238613438632d396166372d343538632d623866312d3365656361656533666565630204011400030201000400</cdnthumburl> <aeskey>0a6e749da80eb900faa4499c85007177</aeskey> <cdnthumbaeskey>0a6e749da80eb900faa4499c85007177</cdnthumbaeskey> <encryver>1</encryver> <cdnthumblength>922129</cdnthumblength> <cdnthumbheight>100</cdnthumbheight> <cdnthumbwidth>100</cdnthumbwidth> </appattach> <weappinfo> <pagepath>pages/reward/ipInfo/ipInfo.html?id=61&amp;no=2</pagepath> <username>gh_51966c36ee5e@app</username> <appid>wxf9c6a0ba5b7447a3</appid> <type>2</type> <weappiconurl>http://mmbiz.qpic.cn/mmbiz_png/h3Hkru3Cpqibo4G3PIkb4tEfDs6DicBpnXQzo1DoMXPJTP6VpbfGIXhDKvx6Qv5UpEwADQ0Wp9MY2IDMU96cLRWg/640?wx_fmt=png&amp;wxfrom=200</weappiconurl> <appservicetype>0</appservicetype> <shareId>2_wxf9c6a0ba5b7447a3_1612564022_1648213287_1</shareId> <pkginfo> <type>2</type> <md5></md5> </pkginfo> </weappinfo> <websearch /> </appmsg> <appinfo> <version>1</version> <appname>修罗一番赏</appname> </appinfo></msg>

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:25925/km/sendAppXml?wxid=zwl10203040&imgaddr=C:\Users\zwl\Desktop\mao.jpg&xml=<msg>    <fromusername>wxid_ojrhxuo7pgud22</fromusername>    <scene>0</scene>    <commenturl></commenturl>    <appmsg appid="wxf9c6a0ba5b7447a3" sdkver="">        <title>初酱一番赏 2000发大套测试 第2箱</title>        <des></des>        <action>view</action>        <type>33</type>        <showtype>0</showtype>        <content></content>        <url>https://mp.weixin.qq.com/mp/waerrpage?appid=wxf9c6a0ba5b7447a3%26amp;amp;type=upgrade%26amp;amp;upgradetype=3%23wechat_redirect</url>        <dataurl></dataurl>        <lowurl></lowurl>        <lowdataurl></lowdataurl>        <recorditem></recorditem>        <thumburl></thumburl>        <messageaction></messageaction>        <md5>c2fd5f9eb3ce443f19be0fc072079308</md5>        <extinfo></extinfo>        <sourceusername></sourceusername>        <sourcedisplayname>修罗一番赏</sourcedisplayname>        <commenturl></commenturl>        <appattach>            <totallen>0</totallen>            <attachid></attachid>            <emoticonmd5></emoticonmd5>            <fileext>jpg</fileext>            <cdnthumburl>3052020100044b30490201000204e740352a02033d12000204c9cf1baf0204623dbe63042430653238613438632d396166372d343538632d623866312d3365656361656533666565630204011400030201000400</cdnthumburl>            <aeskey>0a6e749da80eb900faa4499c85007177</aeskey>            <cdnthumbaeskey>0a6e749da80eb900faa4499c85007177</cdnthumbaeskey>            <encryver>1</encryver>            <cdnthumblength>922129</cdnthumblength>            <cdnthumbheight>100</cdnthumbheight>            <cdnthumbwidth>100</cdnthumbwidth>        </appattach>        <weappinfo>            <pagepath>pages/reward/ipInfo/ipInfo.html?id=61%26amp;no=2</pagepath>            <username>gh_51966c36ee5e@app</username>            <appid>wxf9c6a0ba5b7447a3</appid>            <type>2</type>            <weappiconurl>http://mmbiz.qpic.cn/mmbiz_png/h3Hkru3Cpqibo4G3PIkb4tEfDs6DicBpnXQzo1DoMXPJTP6VpbfGIXhDKvx6Qv5UpEwADQ0Wp9MY2IDMU96cLRWg/640?wx_fmt=png%26amp;wxfrom=200</weappiconurl>            <appservicetype>0</appservicetype>            <shareId>2_wxf9c6a0ba5b7447a3_1612564022_1648213287_1</shareId>            <pkginfo>                <type>2</type>                <md5></md5>            </pkginfo>        </weappinfo>        <websearch />    </appmsg>    <appinfo>        <version>1</version>        <appname>修罗一番赏</appname>    </appinfo></msg>'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{
    "msg": "ok",
    "status": 200,
    "success": true,
    "data": {}
}
修改于 2022-08-25 12:09:20
上一页
发送群@消息
下一页
发送音乐分享消息
Built with