XYBotV2协议接口
  1. Tool
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
      POST
    • /CheckDatabaseOK
      GET
    • /DownloadAttach
      POST
    • /DownloadImg
      POST
    • /DownloadVideo
      POST
    • /DownloadVoice
      POST
    • /GetCdnDns
      POST
    • /IsRunning
      GET
    • /SetProxy
      POST
    • /SetStep
      POST
  • HongBao
    • /GetHongBaoDetail
  • User
    • /GetMyQRCode
    • /GetProfile
  • Message
    • /RevokeMsg
    • /SendAppMsg
    • /SendCDNFileMsg
    • /SendCDNImgMsg
    • /SendCDNVideoMsg
    • /SendCardMsg
    • /SendEmojiMsg
    • /SendImageMsg
    • /SendShareLink
    • /SendTextMsg
    • /SendVideoMsg
    • /SendVoiceMsg
    • /Sync
  1. Tool

/DownloadImg

POST
/DownloadImg
Tool
下载图片

请求参数

Body 参数application/json
CompressType
integer 
可选
DataLen
integer 
可选
MsgId
integer 
必需
RequestWxid
string 
必需
Section
object (Model.Section) 
必需
dataLen
integer 
可选
startPos
integer 
可选
Wxid
string 
必需
示例
{
  "CompressType": 0,
  "DataLen": 0,
  "MsgId": 0,
  "RequestWxid": "string",
  "Section": {
    "dataLen": 0,
    "startPos": 0
  },
  "Wxid": "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 '/DownloadImg' \
--header 'Content-Type: application/json' \
--data-raw '{
    "CompressType": 0,
    "DataLen": 0,
    "MsgId": 0,
    "RequestWxid": "string",
    "Section": {
        "dataLen": 0,
        "startPos": 0
    },
    "Wxid": "string"
}'

返回响应

🟢200OK
application/json
Body
Code
integer 
可选
Data
object (mm.GetMsgImgResponse) 
可选
BaseResponse
object (mm.BaseResponse) 
可选
data
object (mm.SKBuiltinBufferT) 
可选
dataLen
integer 
可选
fromUserName
object (mm.SKBuiltinStringT) 
可选
msgId
integer 
可选
newMsgId
integer 
可选
startPos
integer 
可选
toUserName
object (mm.SKBuiltinStringT) 
可选
totalLen
integer 
可选
Message
string 
可选
Success
boolean 
可选
示例
{
  "Code": 0,
  "Data": {
    "BaseResponse": {
      "errMsg": {
        "string": "string"
      },
      "ret": 0
    },
    "data": {
      "buffer": [
        0
      ],
      "iLen": 0
    },
    "dataLen": 0,
    "fromUserName": {
      "string": "string"
    },
    "msgId": 0,
    "newMsgId": 0,
    "startPos": 0,
    "toUserName": {
      "string": "string"
    },
    "totalLen": 0
  },
  "Message": "string",
  "Success": true
}
上一页
/DownloadAttach
下一页
/DownloadVideo
Built with