Setting Logs:
#Copyright (c) 2008 Pankaj Nathani
#All the numbers that have been called and the duration of each call
import logs
c=logs.calls(mode='out')
for i in range(len(c)):
print unicode(c[i]["number"])+" - "+unicode(c[i]["duration"]) #Where duration is displayed as seconds
Retrieving Last missed calls:
#Copyright (c) 2008 Pankaj Nathani
#Last missed call
import logs, time
m=logs.calls(mode='missed')[0]
print "Last missed call:"
print m["name"]
print m["number"]
print time.strftime("%d.%m.%Y %H:%M:%S", time.localtime(m["time"]))
Retrieving Last SMS:
#Copyright (c) 2008 Pankaj Nathani
#Last received SMS
import logs
s=logs.sms(mode='in')[0]
print "Last SMS received from:"
print s["name"]
print s["number"]