You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("To create '~/.smsapifreemobile_user.b64', use your Free Mobile identifier (a 8 digit number, like '83123456'), and execute this command line (in a terminal):")
print("To create '~/.smsapifreemobile_password.b64', go to this webpage, https://mobile.free.fr/moncompte/index.php?page=options&show=20 (after logging to your Free Mobile account), and copy the API key (a 14-caracters string on [a-zA-Z0-9]*, like 'H6ahkTABEADz5Z'), and execute this command line (in a terminal):")
139
+
print("To create '~/.smsapifreemobile_password.b64', go to this webpage, https://mobile.free.fr/account/mes-options/notifications-sms (after logging to your Free Mobile account), and copy the API key (a 14-caracters string on [a-zA-Z0-9]*, like 'H6ahkTABEADz5Z'), and execute this command line (in a terminal):")
400: "One of the necessary parameter is missing.",
180
181
402: "Too many SMSs has been sent in a short time (you might be a spammer!).",
181
182
403: """Access denied: the service might not be activated on the online personnal space, or login/password is wrong.
182
-
Please go on '<black>https://mobile.free.fr/moncompte/index.php?page=options&show=20<white>' please, and enable the corresponding option.""",
183
+
Please go on '<black>https://mobile.free.fr/account/mes-options/notifications-sms<white>' please, and enable the corresponding option.""",
183
184
500: "Error from the server side. Please try again later.",
184
185
1: "The SMS has been sent to your mobile ({}).".format(number) iflen(numbers) <=1else"The SMS has been sent to all your mobile numbers ({}).".format(numbers),
185
186
"toolong": "<red>Warning<white>: message is too long (more than <black>{}<white> caracters, so more than 3 SMS).".format(STR_MAX_SIZE)
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# :fr::phone: FreeSMS.py
2
2
3
-
Un petit script Python 2 ou 3 pour s'envoyer des textos (messages SMS) en ligne de commande, via l'[API de Free](https://mobile.free.fr/moncompte/index.php?page=options&show=20) (uniquement pour un téléphone avec une carte SIM Free).
3
+
Un petit script Python 2 ou 3 pour s'envoyer des textos (messages SMS) en ligne de commande, via l'[API de Free](https://mobile.free.fr/account/mes-options/notifications-sms) ([ancien lien](https://mobile.free.fr/moncompte/index.php?page=options&show=20)) (uniquement pour un téléphone avec une carte SIM Free).
4
4
5
5
## Exemples
6
6
### Usage simple
7
7
1.[Installer ce script](#Installation),
8
-
2. Configurer l'API SMS de Free, via [votre espace client](https://mobile.free.fr/moncompte/index.php?page=options&show=20), et noter votre identifiant et clé d'accès à l'API,
8
+
2. Configurer l'API SMS de Free, via [votre espace client](https://mobile.free.fr/account/mes-options/notifications-sms), et noter votre identifiant et clé d'accès à l'API,
9
9
3. Lancer une première fois le script `FreeSMS.py` pour savoir comment stocker ces deux codes,
Ce script et cette documentation sont distribuées en accès libre selon les conditions de la [licence MIT](https://lbesson.mit-license.org/) (cf le fichier [LICENSE](LICENSE) en anglais).
0 commit comments