Send a message
POST
/oauthLast modified: 10 个月前
Maintainer:
We only allow submission of HTTP (s) links to add files, so you must provide a URL link.
Request
Body Params multipart/form-data
module
string
required
Module name, Cannot be changed.
Example:
send_message
message_type
string
required
Message type, The allowed values are "text", "image", "share_link"
If the value is image, then an image with the field image needs to be submitted through post.
Example:
image
to_uid
integer
required
Opposite user ID.
Example:
31
message
string
optional
Message Content.
Example:
test message
image
file
optional
When the message type is image, an image needs to be uploaded.
The image size must be less than 5mb.
There are several allowed mimes: 'image/gif', 'image/jpg', 'image/jpeg', 'image/png'
Example:
cmMtdXBsb2FkLTE3MTA5MjQ2ODQwNzQtMTA=/202401260937422790_序号15_提交参赛作品(每次只能投递一个_图2_文件2.jpg
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 10 个月前