更新 Line_Home

tk 2024-07-31 18:52:50 +08:00
parent 256327e783
commit 1257f70bae

@ -5,24 +5,24 @@
## 商家 API 接口 根地址
正式环境:<a href="http://sdk.ol.line92.xyz" target="_blank">http://sdk.ol.line92.xyz</a>
正式环境:<a href="https://sdk.line92.top" target="_blank">https://sdk.line92.top</a>
测试环境:<a href="http://test-sdk.ol.line92.xyz" target="_blank">http://test-sdk.ol.line92.xyz</a>
测试环境:<a href="https://test-sdk.line92.top" target="_blank">https://test-sdk.line92.top</a>
## 阅读 API 功能文档
<a href="http://test-sdk.ol.line92.xyz" target="_blank">http://test-sdk.ol.line92.xyz</a>
<a href="https://test-sdk.line92.top" target="_blank">https://test-sdk.line92.top</a>
## 商家身份鉴权
几乎所有的 API 都要求验证权限,目前只需要简单地在 HTTP 请求头中添加您的商家 Token 即可:
- Header KeyMerchant-Token
- Header ValueXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX <a href="http://admin.ol.line92.xyz/profile/merchant" target="_blank">查看商家 Token</a>
- Header ValueXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX <a href="https://admin.line92.top/profile/merchant" target="_blank">查看商家 Token</a>
## 获取机器人帐号列表
您可以定期调用此接口,将划分给您的机器人账号同步到您自己的数据库:<a href="http://test-sdk.ol.line92.xyz/index.html#/商家主机服务/management/api-sdk-management-get.robots-Post" target="_blank">查看接口文档</a>
您可以定期调用此接口,将划分给您的机器人账号同步到您自己的数据库:<a href="https://test-sdk.line92.top/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.xyz/profile/merchant" target="_blank">设置用于接收异步任务结果的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | <a target="_blank" href="http://test-sdk.ol.line92.xyz/"> 参见 API 文档的响应示例章节 </a> |
| POST | <a href="https://admin.line92.top/profile/merchant" target="_blank">设置用于接收异步任务结果的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | <a target="_blank" href="https://test-sdk.line92.top/"> 参见 API 文档的响应示例章节 </a> |
### 超时约定
@ -85,24 +85,24 @@
| Request Method | Request Url | Request Header | Request Body |
|-|-|-|-|
| POST | <a href="http://admin.ol.line92.xyz/profile/merchant" target="_blank">设置用于接收变更事件推送的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | { type: <a target="_blank" href="http://test-api.ol.line92.xyz/index.html#/SwaggerModels/资源组件"> PushTypes </a>, data: 推送数据 } |
| POST | <a href="https://admin.line92.top/profile/merchant" target="_blank">设置用于接收变更事件推送的 URL 地址</a> | Merchant-Token: 您的商家Token <br />Content-Type: application/json | { type: <a target="_blank" href="https://test-api.line92.top/index.html#/SwaggerModels/资源组件"> PushTypes </a>, data: 推送数据 } |
### 推送事件
| 事件类型 | 类型描述 | 推送数据 |
|-|-|-|
| 2000 - RobotHeart | 机器人心跳 | <a target="_blank" href="http://test-api.ol.line92.xyz/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2001 - RobotOffline | 机器人离线 | <a target="_blank" href="http://test-api.ol.line92.xyz/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2002 - ReceiveMessage | 收到消息 | <a target="_blank" href="http://git.line92.xyz/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.xyz/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.xyz/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.xyz/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2008 - FriendPassed | 对方通过好友 | <a target="_blank" href="http://git.line92.xyz/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.xyz/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.xyz/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> |
| 2012 - MemberQuiteGroup | 群成员退群 | <a target="_blank" href="http://git.line92.xyz/lingyun/OpenDoc/wiki/Line_Pushes#2012---memberquitegroup-%E7%BE%A4%E6%88%90%E5%91%98%E9%80%80%E7%BE%A4">MemberQuiteGroup</a> |
| 2013 - NewMemberJoinGroup | 新成员入群 | <a target="_blank" href="http://git.line92.xyz/lingyun/OpenDoc/wiki/Line_Pushes#2013---newmemberjoingroup-%E6%96%B0%E6%88%90%E5%91%98%E5%85%A5%E7%BE%A4">NewMemberJoinGroup</a> |
| 2014 - DeleteGroupMember | 删除群成员 | <a target="_blank" href="http://git.line92.xyz/lingyun/OpenDoc/wiki/Line_Pushes#2014---deletegroupmember-%E5%88%A0%E9%99%A4%E7%BE%A4%E6%88%90%E5%91%98">DeleteGroupMember</a> |
| 2000 - RobotHeart | 机器人心跳 | <a target="_blank" href="https://test-api.line92.top/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2001 - RobotOffline | 机器人离线 | <a target="_blank" href="https://test-api.line92.top/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2002 - ReceiveMessage | 收到消息 | <a target="_blank" href="https://git.line92.top/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="https://git.line92.top/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="https://git.line92.top/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="https://test-api.line92.top/index.html#/SwaggerModels/资源组件">QueryRobotRsp</a> |
| 2008 - FriendPassed | 对方通过好友 | <a target="_blank" href="https://git.line92.top/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="https://git.line92.top/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="https://git.line92.top/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> |
| 2012 - MemberQuiteGroup | 群成员退群 | <a target="_blank" href="https://git.line92.top/lingyun/OpenDoc/wiki/Line_Pushes#2012---memberquitegroup-%E7%BE%A4%E6%88%90%E5%91%98%E9%80%80%E7%BE%A4">MemberQuiteGroup</a> |
| 2013 - NewMemberJoinGroup | 新成员入群 | <a target="_blank" href="https://git.line92.top/lingyun/OpenDoc/wiki/Line_Pushes#2013---newmemberjoingroup-%E6%96%B0%E6%88%90%E5%91%98%E5%85%A5%E7%BE%A4">NewMemberJoinGroup</a> |
| 2014 - DeleteGroupMember | 删除群成员 | <a target="_blank" href="https://git.line92.top/lingyun/OpenDoc/wiki/Line_Pushes#2014---deletegroupmember-%E5%88%A0%E9%99%A4%E7%BE%A4%E6%88%90%E5%91%98">DeleteGroupMember</a> |
## 流量风控