diff --git a/README.md b/README.md index 7f033b4..16ee8d7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The RestSMS-App allows you to send SMS via Webservice from your Android-Device. - Android-Device which is able to send SMS ### Android-Limit: -Android´s default SMS-Limit are 30 SMS to a single phonenumber within 30 minutes. +Android´s default SMS-Limit are 30 SMS to a single phone number within 30 minutes. You can change your SMS-Limit for your device (root-permission is **not** required). #### How to change Android-Limit: 1. Make sure you have enabled USB-Debugging on your device and you are ready to use ADB. @@ -17,11 +17,11 @@ You can change your SMS-Limit for your device (root-permission is **not** requir 3. Open the adb-shell via the command: `adb shell` 4. Change the value of the SMS-Limit to the number of SMS you want to send within the 30 minutes timeframe. Via the command: `settings put global sms_outgoing_check_max_count 100` -This command allows you to send 100 SMS to a phonenumber within the 30 minutes timeframe. +This command allows you to send 100 SMS to a phone number within the 30 minutes timeframe. 5. If you want to also change the timeframe, you can use the command: `settings put global sms_outgoing_check_interval_ms 900000` This command reduces the timeframe to 15 minutes. -If you entered both commands, you would be able to send 100 SMS to a phonenumber within 15 minutes. +If you entered both commands, you would be able to send 100 SMS to a phone number within 15 minutes. ### API-Usage The default server-url is `http://127.0.0.1:8080/`. You can change the port in the settings-menu. The ip can be changed via the public network address, so you can access the api from anywhere. @@ -31,7 +31,7 @@ A response you get a JSON with a `success` and a `message` variable. #### Example Curl (x-www-form-urlencoded) message = "Hello World" -phoneno = "+4915100000000" +phoneno = "+4915100000000" (it´s also possible to define a list of phone numbers) token = "123" ```shell 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&token=123'