Expanding date to include time
bhavicp opened this issue · 1 comments
Hello,
We have a need to specify a specific time as well as the date when grabbing a report. But I see that only a data is supported, and it's converted to T00:00:00.000 - Would you be able to add support in to pass through time with the date as well?
Thanks
Hi @bhavicp ,
I have introduced additional argurements to limit the hour slots. If you set
aa.set_date_range(date_start='2020-12-01', date_end='2020-12-01', hour_start= 4, hour_end= 5 )
then you will download only from 4pm of Dec 1st till 5pm of Dec 1st.
The code at the moment sits under branch https://github.com/konosp/adobe-analytics-reports-api-v2.0/tree/feature_timehour. Would you be able to manually install this branch to your workstation and give it a go before i push it to the master & PyPi?
- Uninstall the local package by running pip uninstall analytics-mayhem-adobe
- Install the staging branch by running
pip install git+https://github.com/konosp/adobe-analytics-reports-api-v2.0.git@feature_timehour
- When you initiate the client, add the additional arguments:
aa.set_date_range(date_start='2020-12-01', date_end='2020-12-01', hour_start= 4, hour_end= 5 )
Please give it a go and let me know