Update docs

This commit is contained in:
Xcreen
2018-10-10 10:05:26 +02:00
parent 5065862a24
commit 53f1ce8885

View File

@@ -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