twilio-python
twilio-python copied to clipboard
DateTime serialization next-gen
Version: 6.0.0rc-12 API Subdomain (api/taskrouter/ip_messaging): monitor
Code Snippet
events = client.monitor.events.list(
source_ip_address="104.14.155.29",
start_date=datetime(2015, 4, 25, tzinfo=pytz.UTC),
end_date=datetime(2015, 4, 25, 23, 59, 59, tzinfo=pytz.UTC)
)
From this page method I can see that date filters are been truncated to date only values even if a datetime is specified.
From the docs, date Input is a UTC ISO 8601 Timestamp. and this might be true for most filter params in list() methods for listResources.
This is done!