P
P
paevlk20072014-06-10 11:35:01
Django
paevlk2007, 2014-06-10 11:35:01

django send sms

Good afternoon!
How to implement sending sms on a specific date to a specific phone, that is, there is a calendar with events by date, it is necessary if the start date of the event matches the current one, sms is sent to a specific user phone to which the event is attached!.
You need a working example that is used in your project!
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
paevlk2007, 2014-06-30
@paevlk2007

I did this:
- connected 'smsaero',
- in the form of adding a new event, added send_sms, in my case:

title = title.encode('utf-8')
 start = int(mktime(start.timetuple()))
 send_sms((resp.profile.phone), (title), '2', (start))

When the user enters a new event in the calendar, an SMS notification is simultaneously created:
with the user's phone;
message header;
"2" - Signature of the sender;
date (time) of the beginning of the event.
After that, the finished SMS is waiting for its execution!
Minus: if the user made a mistake in the date, then the SMS cannot be deleted, or you need to go to the SMSAero personal account and delete it!

P
Pavel Solovyov, 2014-06-10
@pavel_salauyou

Each application has its own solutions, and most likely will not suit yours, here is the application that sends SMS - django-twilio.readthedocs.org/en/latest/, think of the rest yourself.
https://www.twilio.com/blog/2014/04/building-a-sim...

D
devel787, 2014-06-12
@devel787

Related links:
1. Habr -- Google Calendar as a free SMS gate
2. discussion of a similar question on the forum

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question