You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does return messages, but includes messages outside the dates specified. I also tried url encoding the last_event_time value with and without quotes around the start and end times (and many other variations) with no success. On a positive note, I ran the command using Curl and it worked.
Additionally, notice the large limit parameter. It seems that limit is required but there is no offset parameter. I have no idea how many messages exist between the two dates. How can I know if I've retrieved them all? If I ask for 100 and less than 100 are returned I could assume I'm done. If I ask for 100 and get 100 then there are probably more. But without an offset parameter how can I retrieve them? I also did not see the maximum limit documented anywhere.
The text was updated successfully, but these errors were encountered:
I am trying to use the SendGrid email activity API to retrieve a list activities from a celery task in python. I'm using the sendgrid library version 6.11.0 (https://pypi.org/project/sendgrid/). I would like the task to run nightly and retrieve activities between the last time the task ran and the current time. It appears that you should be able to use a query parameter that specifies the two dates (https://www.twilio.com/docs/sendgrid/for-developers/sending-email/getting-started-email-activity-api). So I tried the following:
This does return messages, but includes messages outside the dates specified. I also tried url encoding the last_event_time value with and without quotes around the start and end times (and many other variations) with no success. On a positive note, I ran the command using Curl and it worked.
Additionally, notice the large limit parameter. It seems that limit is required but there is no offset parameter. I have no idea how many messages exist between the two dates. How can I know if I've retrieved them all? If I ask for 100 and less than 100 are returned I could assume I'm done. If I ask for 100 and get 100 then there are probably more. But without an offset parameter how can I retrieve them? I also did not see the maximum limit documented anywhere.
The text was updated successfully, but these errors were encountered: