Files changed (11)
- Given a datatuple of (text,phones,
sms_id) (sms_id is optional) sends each sms to each phones. Returns the tuple of results.
+ Given a datatuple of (text,phones,_id is optional) sends each sms to each phones. Returns the tuple of results.
- You may specify sms_id. You need this ONLY if your gate doesn\'t support sms_id generation by itself, AND you need to get status of this sms later. In that case backend would generate unique id based on this value and phone number.
+ You may specify remote_id. You need this ONLY if your gate doesn\'t support id generation by itself, AND you need to get status of this sms later. In that case backend would generate unique id based on this value and phone number.
You may specify callback url, or set callback=True to use SMSGATE_CALLBACK_URL. By default callback is false (note that on some servers callback_url setting must be set on serverside).
- return backend.send_sms(message,recipient_list,
Function for retrieving sms statuses from server (Note that if you use callback_url, you don\'t need to retrieve status by yourself).
status_text = models.CharField(_('Status message'),max_length=64,null=True,blank=True,editable=False)
credits = models.IntegerField(_('Credits'),default=1) #You may use this field to store data for your billing system for big messages or different operators
#We want user to pass telephones with and without +, but saves them only without +. Validators can\'t set new values, but save method of course doesn\'t invoke on form validation, so we have redundant validation as workaround.
Empty file added.
+ sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+ 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'This is callback view function, which should process http request, recieved from gate, and save sms statuses to database.'