#number = input('Number to send message to: ') # use these for command method Then use something like this: from googlevoice import Voice For example, set up a virtualenv and install with pip: But then I dug deeper and found that there is a Google Voice API called pygooglevoice that works. I was struggling with this for some time and really liked the Twilio option. I answered a similar question, a bit late to the game, in another post. I would recommend checking out Kannel in case you're looking for a free and open source solution (that is assuming you want to install the actual gateway on your server).Īnyway, I would start out trying to get it to work with the e-mail scenario, and then moving on to using a carrier if you actually require it. The API would vary obviously from carrier to carrier. Mostly, they provide simple REST based API's for sending text messages to cell phones. However, as mentioned, this isn't a really complete solution, so the easiest way would be to use a SMS-gateway. In this case, you could handle this checking out the following Django documentation page However, not all carriers do this and some charge extra for this type of service. Most cell providers usually give out email accounts to their users, and sending a mail to said account will more likely than not redirect the mail to their cell via SMS. From a technical standpoint, the easiest way to accomplish SMS sending with any web-app is through e-mails.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |