|
__init__(self,
modem=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
compose(self,
type="SMS",
recipient_type=None,
recipient=None,
subject="",
message="",
url=None)
Form to Compose a Message |
source code
|
|
|
|
|
gcm_push(self,
title=None,
uri=None,
message=None,
registration_ids=None,
channel_id=None)
Push the message relating to google cloud messaging server |
source code
|
|
|
send_email(self,
to,
subject,
message,
attachments=None,
cc=None,
bcc=None,
reply_to=None,
sender=None,
encoding="utf-8")
Function to send Email... |
source code
|
|
|
|
|
|
|
|
|
|
|
send_sms_via_tropo(self,
row_id,
message_id,
recipient,
message,
network="SMS",
channel_id=None)
Send a URL request to Tropo to pick a message up |
source code
|
|
|
|
|
|
|
|
|
poll(self,
tablename,
channel_id)
Poll a Channel for New Messages |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
|
|
|
|
|
|
parse(channel_id,
function_name)
Parse unparsed Messages from Channel with Parser
- called from Scheduler |
source code
|
|
|
send(recipient,
message,
subject=None)
Send a single message to an Address |
source code
|
|
|
send_by_pe_id(pe_id,
subject="",
message="",
contact_method="EMAIL",
document_ids=None,
from_address=None,
system_generated=False,
**data)
Send a single message to a Person Entity (or list thereof) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
poll_mcommons(channel_id)
Fetches the inbound SMS from Mobile Commons API
http://www.mobilecommons.com/mobile-commons-api/rest/#ListIncomingMessages |
source code
|
|
|
poll_twilio(channel_id)
Fetches the inbound SMS from Twilio API
http://www.twilio.com/docs/api/rest |
source code
|
|
|
|
|
poll_twitter(channel_id)
Function to call to fetch tweets into msg_twitter table
- called via Scheduler or twitter_inbox controller |
source code
|
|
|
|
|
|
|
|
|
preprocess_tweet(tweet)
Preprocesses tweets to remove URLs, RTs, extra whitespaces and
replace hashtags with their definitions. |
source code
|
|
|
|