Over a million developers have joined DZone.

Read SMS With Inbox Module

·
The new pys60 (1.3.1) provide 'inbox' module to read SMS.
It can also notify you when a new message arrives.

>>> import inbox
>>> i = inbox.Inbox()
>>> m = i.sms_messages()  # all message ID's
>>> i.content(m[0])     # first message
u’foobar’
>>> i.time(m[0])
1130267365.03125
>>> i.address(m[0])     # Only name is given :(
u’John Doe’
>>> i.delete(m[0])
>>>

I wish the i.address gave more detail information.
Currently, if you need the number, you need to search
the contact database.

See an example of notification callback in the documentation.
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}