Skip to content

Commit

Permalink
Added information to send bulk sms
Browse files Browse the repository at this point in the history
  • Loading branch information
Xcreen committed Sep 5, 2024
1 parent 16bec65 commit 1573e74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ 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.
2. Connect your device to the pc and open the terminal.
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.
Expand All @@ -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'
Expand Down

0 comments on commit 1573e74

Please sign in to comment.