Skip to content

Commit

Permalink
Merge pull request capcom6#38 from capcom6/docs/link-to-api-docs
Browse files Browse the repository at this point in the history
[docs] Add link to API docs
  • Loading branch information
capcom6 authored Feb 10, 2024
2 parents 947e2dc + 1355860 commit fad7557
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ This mode is recommended for sending messages from local network.
5. Make a `curl` call from the local network using a command like the following, replacing `<username>`, `<password>`, and `<device_local_ip>` with the values obtained in step 4:

```
curl -X POST -u <username>:<password> -H "Content-Type: application/json" -d '{ "message": "Hello, world!", "phoneNumbers": ["79990001234", "79995556677"] }' http://<device_local_ip>:8080/message
curl -X POST -u <username>:<password> \
-H "Content-Type: application/json" \
-d '{ "message": "Hello, world!", "phoneNumbers": ["79990001234", "79995556677"] }' \
http://<device_local_ip>:8080/message
```
### Cloud server
Expand All @@ -173,11 +176,14 @@ If you need to send messages with dynamic or shared device IP, you can use the c
5. Make a curl call using a command like the following, replacing `<username>` and `<password>` with the values obtained in step 4:
```
curl -X POST -u <username>:<password> -H "Content-Type: application/json" -d '{ "message": "Hello, world!", "phoneNumbers": ["79990001234", "79995556677"] }' https://sms.capcom.me/api/3rdparty/v1/message
curl -X POST -u <username>:<password> \
-H "Content-Type: application/json" \
-d '{ "message": "Hello, world!", "phoneNumbers": ["79990001234", "79995556677"] }' \
https://sms.capcom.me/api/3rdparty/v1/message
```
<!-- _For more examples, please refer to the [Documentation](https://example.com)_ -->
_For more examples, please refer to the [API Documentation](https://sms.capcom.me/api/)_
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Expand Down

0 comments on commit fad7557

Please sign in to comment.