Skip to content

Commit

Permalink
docs(README.md): 更新使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Dec 7, 2018
1 parent 92caac7 commit 80888c0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ php -S localhost:8080 -t public
```

## 使用
发送消息
```
curl -X GET http://<your_url>:<port>/api/send?msg=HelloWorld
```
curl -X GET http://<your_url>:<port>/api/msg?text=HelloWorld
```

发送图片
```
curl -X GET http://<your_url>:<port>/api/photo?url=https://i.loli.net/2018/12/07/5c0a36e08ec6d.jpg
```

路由说明

|url 路径|参数(类型, 说明)|说明|
| ------ | ------ | ------ |
|api/msg |text(String,消息内容)|发送文字消息|
|api/photo |url(String,发送的图片地址)|发送图片消息|

0 comments on commit 80888c0

Please sign in to comment.