import datetime as dt
from notte_sdk.client import NotteClient
notte = NotteClient()
# retrieve an existing persona or use console.notte.cc/personas to create a new one
persona = notte.Persona("<my-persona-id>")
# read recent sms (received in the past 5 minutes)
recent_sms = persona.sms(
only_unread=True,
limit=10,
timedelta=dt.timedelta(minutes=5),
)
print(f"Recent sms: {recent_sms}")[
{
"body": "<string>",
"sms_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sender": "<string>"
}
]import datetime as dt
from notte_sdk.client import NotteClient
notte = NotteClient()
# retrieve an existing persona or use console.notte.cc/personas to create a new one
persona = notte.Persona("<my-persona-id>")
# read recent sms (received in the past 5 minutes)
recent_sms = persona.sms(
only_unread=True,
limit=10,
timedelta=dt.timedelta(minutes=5),
)
print(f"Recent sms: {recent_sms}")[
{
"body": "<string>",
"sms_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"sender": "<string>"
}
]The access token received from the authorization server in the OAuth 2.0 flow.
Maximum number of emails
1 <= x <= 100Maximum time since email reception
Whether to only return unread messages
Was this page helpful?
Suggestions