|
|
- # 接口
-
- ```bash
- IP: 192.168.100.50
- PORT: 8000
- HOST: baidu-link-submit-ms.juejin.im
- ```
-
- ## 资源创建通知
-
- ### 请求
-
- `POST /v1/events/created`
-
- ### 参数
-
- ```bash
- # 格式
-
- Content-Type: application/json; charset=utf-8
-
- {
- type,
- id
- }
- ```
-
- ```bash
- # 说明
-
- type := 'link' | 'column'
- # type -> 资源类型,必需
- # link -> 链接
- # column -> 专栏
-
- id := <string>
- # id -> 资源 ID,必需
- ```
-
- ### 响应
-
- ```bash
- {
- "s": 1,
- "m": "success",
- "d": []
- }
- ```
-
- ### 示例
-
- ```bash
- # 专栏文章创建后
-
- POST http://192.168.100.50:8000/v1/events/created HTTP/1.1
- Host: baidu-link-submit-ms.juejin.im
- Content-Type: application/json
-
- {
- "type": "column",
- "id": "5ac9dc9af265da23884d5543"
- }
- ```
-
- ## 资源更新通知
-
- ### 请求
-
- `POST /v1/events/updated`
-
- 其余同上。
-
- ## 资源删除通知
-
- ### 请求
-
- `POST /v1/events/deleted`
-
- 其余同上。
|