更新 Line_Home
parent
5f6cf6892c
commit
2d25ee0c40
16
Line_Home.md
16
Line_Home.md
@ -7,11 +7,11 @@
|
||||
|
||||
正式环境:<a href="http://sdk.ol.line92.com" target="_blank">http://sdk.ol.line92.com</a>
|
||||
|
||||
测试环境:<a href="http://test.sdk.ol.line92.com" target="_blank">http://test.sdk.ol.line92.com</a>
|
||||
测试环境:<a href="http://test-sdk.ol.line92.com" target="_blank">http://test-sdk.ol.line92.com</a>
|
||||
|
||||
## 阅读 API 功能文档
|
||||
|
||||
<a href="http://test.sdk.ol.line92.com" target="_blank">http://test.sdk.ol.line92.com</a>
|
||||
<a href="http://test-sdk.ol.line92.com" target="_blank">http://test-sdk.ol.line92.com</a>
|
||||
|
||||
## 商家身份鉴权
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
## 获取机器人帐号列表
|
||||
|
||||
您可以定期调用此接口,将划分给您的机器人账号同步到您自己的数据库:<a href="http://test.sdk.ol.line92.com/index.html#/商家主机服务/management/api-sdk-management-get.robots-Post" target="_blank">查看接口文档</a>
|
||||
您可以定期调用此接口,将划分给您的机器人账号同步到您自己的数据库:<a href="http://test-sdk.ol.line92.com/index.html#/商家主机服务/management/api-sdk-management-get.robots-Post" target="_blank">查看接口文档</a>
|
||||
|
||||
此接口参数较多,如无特殊需求,只需要传递以下简要参数即可:
|
||||
``` json
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
| Request Method | Request Url | Request Header | Request Body |
|
||||
|-|-|-|-|
|
||||
| POST | <a href="http://admin.ol.line92.com/#/profile/merchant" target="_blank">设置用于接收异步任务结果的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | <a target="_blank" href="http://test.sdk.ol.line92.com/"> 参见 API 文档的响应示例章节 </a> |
|
||||
| POST | <a href="http://admin.ol.line92.com/#/profile/merchant" target="_blank">设置用于接收异步任务结果的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | <a target="_blank" href="http://test-sdk.ol.line92.com/"> 参见 API 文档的响应示例章节 </a> |
|
||||
|
||||
### 超时约定
|
||||
|
||||
@ -85,18 +85,18 @@
|
||||
|
||||
| Request Method | Request Url | Request Header | Request Body |
|
||||
|-|-|-|-|
|
||||
| POST | <a href="http://admin.ol.line92.com/#/profile/merchant" target="_blank">设置用于接收变更事件推送的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | { type: <a target="_blank" href="http://test.api.ol.line92.com/index.html#/SwaggerModels/资源组件"> PushTypes </a>, data: 推送数据 } |
|
||||
| POST | <a href="http://admin.ol.line92.com/#/profile/merchant" target="_blank">设置用于接收变更事件推送的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | { type: <a target="_blank" href="http://test-api.ol.line92.com/index.html#/SwaggerModels/资源组件"> PushTypes </a>, data: 推送数据 } |
|
||||
|
||||
### 推送事件
|
||||
|
||||
| 事件类型 | 类型描述 | 推送数据 |
|
||||
|-|-|-|
|
||||
| 2000 - RobotHeart | 机器人心跳 | <a target="_blank" href="http://test.api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2001 - RobotOffline | 机器人离线 | <a target="_blank" href="http://test.api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2000 - RobotHeart | 机器人心跳 | <a target="_blank" href="http://test-api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2001 - RobotOffline | 机器人离线 | <a target="_blank" href="http://test-api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2002 - ReceiveMessage | 收到消息 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2002---receivemessage--%E6%94%B6%E5%88%B0%E6%B6%88%E6%81%AF">ReceiveMessage</a> |
|
||||
| 2003 - ReadMessage | 对方已读 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2003---readmessage-%E5%AF%B9%E6%96%B9%E5%B7%B2%E8%AF%BB">ReadMessage</a> |
|
||||
| 2004 - InviteMemberToGroup | 邀请成员入群 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2004---invitemembertogroup-%E9%82%80%E8%AF%B7%E6%88%90%E5%91%98%E5%85%A5%E7%BE%A4">InviteMemberToGroup</a> |
|
||||
| 2005 - RobotOnline | 机器人上线 | <a target="_blank" href="http://test.api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2005 - RobotOnline | 机器人上线 | <a target="_blank" href="http://test-api.ol.line92.com/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
|
||||
| 2008 - FriendPassed | 对方通过好友 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2008---friendpassed-%E5%AF%B9%E6%96%B9%E9%80%9A%E8%BF%87%E5%A5%BD%E5%8F%8B">FriendPassed</a> |
|
||||
| 2009 - AddMe | 对方添加好友 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2009---addme-%E5%AF%B9%E6%96%B9%E6%B7%BB%E5%8A%A0%E5%A5%BD%E5%8F%8B">AddMe</a> |
|
||||
| 2010 - FriendCreateGroup| 好友创建群聊 | <a target="_blank" href="http://git.line92.com/lingyun/OpenDoc/wiki/Line_Pushes#2010---friendcreategroup-%E5%A5%BD%E5%8F%8B%E5%88%9B%E5%BB%BA%E7%BE%A4%E8%81%8A">FriendCreateGroup</a> |
|
||||
|
Loading…
x
Reference in New Issue
Block a user