WxConnectorProvider
  1. ActionApi
WxConnectorProvider
  • WxApi
    • 启动微信
      POST
    • 启动监听器
      POST
  • EventApi
    • 事件监听
  • ActionApi
    • 发送文本消息
      POST
    • 发送文件消息
      POST
    • 通过用户名At
      POST
  1. ActionApi

发送文件消息

开发中
POST
/api/Action/sendFile
用于向指定窗口发送本地文件消息

请求参数

Body 参数application/json
FilePath
string 
必需
要发送的文件的本地完整路径
SendWindowTitle
string 
必需
指定用于发送消息的窗口标题
示例
{
    "FilePath": "string",
    "SendWindowTitle": "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 '/api/Action/sendFile' \
--header 'Content-Type: application/json' \
--data-raw '{
    "FilePath": "string",
    "SendWindowTitle": "string"
}'

返回响应

🟢200成功
application/json
Body
message
string 
必需
示例
{
    "message": "string"
}
修改于 2025-04-16 03:40:37
上一页
发送文本消息
下一页
通过用户名At
Built with