Hello everyone,
I am using python SDK for Nylas and when retrieving all emails for a grant_id with
nylas.messages.list
I get a ListResponse. I however would like to serve the response as an API so ideally I’d like to convert this in json.
I’ve found out that we can do something like this
messages_data = messages.data
response = [el.__dict__ for el in messages_data]
but I don’t know if Nylas has something natively that would work better.