A python written interface to send sms using orange.be's API
phone_nr='049999999'
email='lol@lol.com'
(Note :There won't be an email verification, so it does not need to be correct)
sms=api.EAPI(config.phone_nr,config.email)
sms.startRegistration()
You will receive a 4 digit code by text .
(Note : Do not leak it, Mobistar does not provide an easy way to revoke it)
code
is the four digit received by text.
password, permanentKey = sms.verifyRegistration(code)
Congrats, you're all set.
####Create an object mobistarAPI
sms=api.EAPI(config.phone_nr, config.email, password, permanentKey)
####Send the actual text
id = sms.sendSMS("+32494675432","Hello dear friend")
msisdn, status, statusId = sms.checkStatus(id)
See requirements.txt