文档
测试

发送图片

POST
https://seller.xiapi.shopee.cn/webchat/api/v1.2/messages?_uid=[UID]&_v=4.7.0

请求头

参数名
类型
描述
必填
authorization
string
必填
x-s
string
b8ef9c570e0ec966dd02070680ef39cf
必填
x-v
string
4
必填
user-agent
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
必填

请求参数

参数名
类型
描述
必填
request_id
string
示例:c74513f0-4c54-485f-880b-68225f4d07ae
必填
to_id
int
示例:231156449
必填
type
string
示例:image
必填
content
object
数据字典
必填
url
string
示例:https://s-cf-tw.shopeesz.com/file/51d5cba8978d89fad19819fcfe781b68
必填
chat_send_option
object
数据字典
必填
force_send_cancel_order_warning
boolean
示例:false
必填
comply_cancel_order_warning
boolean
示例:false
必填

说明 / 示例

请求格式: { "request_id": "c74513f0-4c54-485f-880b-68225f4d07ae", "to_id": 231156449, "type": "image", "content": { "url": "https://s-cf-tw.shopeesz.com/file/51d5cba8978d89fad19819fcfe781b68" }, "chat_send_option": { "force_send_cancel_order_warning": false, "comply_cancel_order_warning": false } } 返回JSON { "id": "2057059157357822139", "request_id": "c74513f0-4c54-485f-880b-68225f4d07ae", "to_id": 231156449, "type": "image", "content": { "url": "https://s-cf-tw.shopeesz.com/file/51d5cba8978d89fad19819fcfe781b68", "product_ids": null }, "conversation_id": "650908968319134433", "created_timestamp": 1608890700, "created_at": "2020-12-25T18:05:00+08:00", "source_content": {}, "source_type": "", "message_option": 0 } x-s: str = '/messages?_uid=[UID]&_v=4.7.05702b6f3-62a3-44d2-abe8-fece100a8bf4' MD5加密 md5(str) X-V:4