twilio-python icon indicating copy to clipboard operation
twilio-python copied to clipboard

DateTime serialization next-gen

Open mcelicalderon opened this issue 10 years ago • 1 comments

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.

mcelicalderon avatar Sep 26 '16 15:09 mcelicalderon

This is done!

jingming avatar Apr 05 '17 14:04 jingming