Inbox objects have the following functions:
) |
sms_id) |
sms_id) |
sms_id) |
sms_id) |
sms_id) |
sms_id, status) |
callable) |
callback
gets
called with the received message ID. The received message can be other than
an SMS message.
If the message received is deleted immediately after e.g. checking the message content, the "new message" sound and dialog are not activated. This functionality might be useful in notification type of applications.
Examples:
>>> import inbox >>> i=inbox.Inbox() # Give inbox.ESent as parameter for sent SMSes >>> m=i.sms_messages() >>> i.content(m[0]) u'foobar' >>> i.time(m[0]) 1130267365.03125 >>> i.address(m[0]) u'John Doe' >>> i.delete(m[0]) >>> >>> import inbox >>> id=0 >>> def cb(id_cb): ... global id ... id=id_cb ... >>> i=inbox.Inbox() >>> i.bind(cb) >>> # Send an SMS to your inbox here. The "id" gets updated >>> i.address(id) u'John Doe' >>> i.content(id) u'print 1' >>>
See About this document... for information on suggesting changes.