2020-03-22 15:21:09 +08:00
|
|
|
|
# 充电留言
|
|
|
|
|
|
2020-04-08 16:20:28 +08:00
|
|
|
|
> http://api.bilibili.com/x/ugcpay/trade/elec/message
|
2020-03-22 15:21:09 +08:00
|
|
|
|
|
|
|
|
|
*方式:POST*
|
|
|
|
|
|
|
|
|
|
需要登录(SESSDATA)
|
|
|
|
|
|
2020-04-16 18:47:19 +08:00
|
|
|
|
**参数( application/x-www-form-urlencoded ):**
|
2020-03-22 15:21:09 +08:00
|
|
|
|
|
2020-04-02 16:53:01 +08:00
|
|
|
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
|
|
|
|
| -------- | ---- | ------------------- | ------ | ---- |
|
|
|
|
|
| order_id | data | 交易编号 | 必要 | |
|
|
|
|
|
| message | data | 留言内容 | 必要 | |
|
|
|
|
|
| csrf | data | cookies中的bili_jct | 必要 | |
|
2020-03-22 15:21:09 +08:00
|
|
|
|
|
|
|
|
|
**json回复:**
|
|
|
|
|
|
2020-04-16 18:47:19 +08:00
|
|
|
|
根对象:
|
|
|
|
|
|
2020-03-22 15:21:09 +08:00
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ------- | ---- | -------- | ------------------------------------------------------------ |
|
2020-05-08 18:32:38 +08:00
|
|
|
|
| code | num | 返回值 | 0:成功 <br />-101:账号未登录<br />-111:csrf校验失败<br />-400:请求错误<br />88203:不能重复留言 |
|
2020-03-22 15:21:09 +08:00
|
|
|
|
| message | str | 错误信息 | 默认为0 |
|
|
|
|
|
| ttl | num | 1 | 作用尚不明确 |
|
|
|
|
|
|
2020-04-16 18:47:19 +08:00
|
|
|
|
**示例:**
|
2020-03-22 15:21:09 +08:00
|
|
|
|
|
|
|
|
|
成功为交易编号为`BPRG5CEC3VUPOOANA540`的充电操作,添加了内容为`支持一下大佬`的留言
|
|
|
|
|
|
2020-04-23 18:26:00 +08:00
|
|
|
|
curl -b "SESSDATA=xxx" -d "csrf=xxx&order_id=BPRG
|
2020-03-22 15:21:09 +08:00
|
|
|
|
5CEC3VUPOOANA540&message=%e6%94%af%e6%8c%81%e4%b8%80%e4%b8%8b%e5%a4%a7%e4%bd%ac" "http://api.bilibili.com/x/ugcpay/trade/elec/message"
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"code":0,
|
|
|
|
|
"message":"0",
|
|
|
|
|
"ttl":1
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|