Hello everyone,
I am using Nylas Emails API to get emails from Microsoft (will implement Google as well in the future).
I am in a situation where I want to get emails that satisfy a list of ids.
For example get emails with ids [“AAkALgAAAAAAH”, “bbaadaaDSdasd”].
While I could make multiple requests to Nylas for a single email, I would prefer to use a url parameter for this. I think that “search_query_native” could be the one to make this work but the following does not seem to work.
query_string = "id:(" + " OR ".join(provider_ids) + ")"
encoded_query = requests.utils.quote(query_string, safe='')
url += f"&search_query_native={encoded_query}"
any ideas?