Exemplo n.º 1
0
from py_imessage import imessage
from time import sleep

phone = input("Enter a phone number: ")

if not imessage.check_compatibility(phone):
    print("not an iPhone")

guid = imessage.send(phone, "sorry testing something one last one")

sleep(5)
resp = imessage.status(guid)

print(f'Message read at {resp.get("date_read")}')
Exemplo n.º 2
0
def message_status(guid):
    # search local db for the message here and return date_read, and date_delivered
    message = imessage.status(guid)

    return jsonify(message)