XYBotV2协议接口
  1. Message
XYBotV2协议接口
  • Friend
    • /AcceptFriend
      POST
    • /GetContact
      POST
    • /GetContractDetail
      POST
    • /GetContractList
      POST
  • Group
    • /AddChatroomMember
      POST
    • /GetChatroomInfo
      POST
    • /GetChatroomInfoNoAnnounce
      POST
    • /GetChatroomMemberDetail
      POST
    • /GetChatroomQRCode
      POST
    • /InviteChatroomMember
      POST
  • Login
    • /AutoHeartbeatStart
      POST
    • /AutoHeartbeatStatus
      POST
    • /AutoHeartbeatStop
      POST
    • /AwakenLogin
      POST
    • /CheckUuid
      POST
    • /GetCachedInfo
      POST
    • /GetQRCode
      POST
    • /Heartbeat
      POST
    • /LogOut
      POST
  • Tool
    • /CdnDownloadImg
    • /CheckDatabaseOK
    • /DownloadAttach
    • /DownloadImg
    • /DownloadVideo
    • /DownloadVoice
    • /GetCdnDns
    • /IsRunning
    • /SetProxy
    • /SetStep
  • HongBao
    • /GetHongBaoDetail
  • User
    • /GetMyQRCode
    • /GetProfile
  • Message
    • /RevokeMsg
      POST
    • /SendAppMsg
      POST
    • /SendCDNFileMsg
      POST
    • /SendCDNImgMsg
      POST
    • /SendCDNVideoMsg
      POST
    • /SendCardMsg
      POST
    • /SendEmojiMsg
      POST
    • /SendImageMsg
      POST
    • /SendShareLink
      POST
    • /SendTextMsg
      POST
    • /SendVideoMsg
      POST
    • /SendVoiceMsg
      POST
    • /Sync
      POST
  1. Message

/SendAppMsg

POST
/SendAppMsg
Message
发送App消息

请求参数

Body 参数application/json
ToWxid
string 
必需
Type
integer 
可选
Wxid
string 
必需
Xml
string 
必需
示例
{
  "ToWxid": "string",
  "Type": 0,
  "Wxid": "string",
  "Xml": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/SendAppMsg' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ToWxid": "string",
    "Type": 0,
    "Wxid": "string",
    "Xml": "string"
}'

返回响应

🟢200OK
application/json
Body
Code
integer 
可选
Data
object (mm.SendAppMsgResponse) 
可选
BaseResponse
object (mm.BaseResponse) 
可选
actionFlag
integer 
可选
aeskey
string 
可选
appId
string 
可选
clientMsgId
string 
可选
createTime
integer 
可选
fromUserName
string 
可选
msgId
integer 
可选
msgSource
string 
可选
newMsgId
integer 
可选
toUserName
string 
可选
type
integer 
可选
Message
string 
可选
Success
boolean 
可选
示例
{
  "Code": 0,
  "Data": {
    "BaseResponse": {
      "errMsg": {
        "string": "string"
      },
      "ret": 0
    },
    "actionFlag": 0,
    "aeskey": "string",
    "appId": "string",
    "clientMsgId": "string",
    "createTime": 0,
    "fromUserName": "string",
    "msgId": 0,
    "msgSource": "string",
    "newMsgId": 0,
    "toUserName": "string",
    "type": 0
  },
  "Message": "string",
  "Success": true
}
上一页
/RevokeMsg
下一页
/SendCDNFileMsg
Built with