https://github.com/altaris/freemobile-smsapi
Python wrapper for the SMS API of FreeMobile
https://github.com/altaris/freemobile-smsapi
Last synced: 3 months ago
JSON representation
Python wrapper for the SMS API of FreeMobile
- Host: GitHub
- URL: https://github.com/altaris/freemobile-smsapi
- Owner: altaris
- License: mit
- Created: 2019-09-06T09:04:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T10:24:52.000Z (over 5 years ago)
- Last Synced: 2025-01-07T22:39:04.402Z (5 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# freemobile-smsapi

[](https://choosealicense.com/licenses/mit/)Python wrapper for the SMS API provided by [FreeMobile](http://mobile.free.fr/).
Before using this, you must activate the SMS notification service
(_Notifications par SMS_) on your [FreeMobile
account](https://mobile.free.fr/moncompte/).Then, simply invoke `send_sms`:
```python
from freemobilesms import send_smssend_sms(user, password, "Hello World!")
```This method can raise the following exceptions:
* `MissingParameter` (HTTP error 400): Mandatory parameter is missing;
* `TooManySMS` (HTTP error 402): Too many SMSs have been sent too quickly;
* `ServiceNotEnabled` (HTTP error 403): SMS notification service has not been
enabled for user;
* `ServerError` (HTTP error 500): Server error.# TODOs
- [ ] Unicode support.
- [ ] What is the maximal message size?