mirror of
https://github.com/Xcreen/RestSMS.git
synced 2026-05-19 14:23:29 -04:00
Update docs
This commit is contained in:
@@ -31,7 +31,7 @@ A response you get a JSON with a `success` and a `message` variable.
|
||||
message = "Hello World"
|
||||
phoneno = "+4915100000000"
|
||||
```shell
|
||||
curl -X POST http://127.0.0.1:9080/send -H 'Cache-Control: no-cache' -H 'Content-Type: application/x-www-form-urlencoded' -d 'message=Hello%20World&phoneno=%2B4915100000000'
|
||||
curl -X POST http://127.0.0.1:8080/send -H 'Cache-Control: no-cache' -H 'Content-Type: application/x-www-form-urlencoded' -d 'message=Hello%20World&phoneno=%2B4915100000000'
|
||||
```
|
||||
|
||||
#### Successful Response
|
||||
@@ -40,7 +40,7 @@ curl -X POST http://127.0.0.1:9080/send -H 'Cache-Control: no-cache' -H 'Content
|
||||
"success": true
|
||||
}
|
||||
```
|
||||
⚠️ That means the SMS got forwarded to your default SMS-App (packagename can be found under App-Information). The SMS still can get stuck in your default SMS-App. For example on a Emulator, you will get success = true, but the default SMS-App cant send the SMS, because the SIM-Card is just emulated. So success = true, does not mean that the SMS was already successful sent. ⚠️
|
||||
⚠️ That means the SMS got forwarded to your default SMS-App (packagename can be found under App-Information). The SMS still can get stuck in your default SMS-App. For example on a Emulator, you will get success = true, but the default SMS-App cant send the SMS, because the SIM-Card is just emulated. So success = true, does not mean that the SMS was already successful sent.
|
||||
|
||||
#### Failed Response
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user