From 21c8a1f688f6ea9c283c0e4e285acd16de7f6acd Mon Sep 17 00:00:00 2001 From: Zhilevan Date: Tue, 3 Jul 2018 10:37:44 +0430 Subject: [PATCH] Feat: Add sample code --- sample/sample01.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sample/sample01.py diff --git a/sample/sample01.py b/sample/sample01.py new file mode 100644 index 0000000..bc51c9c --- /dev/null +++ b/sample/sample01.py @@ -0,0 +1,12 @@ +from pylocalytics import pylocalytics +from datetime import datetime +from datetime import timedelta + + +loctx = pylocalytics(api_key = 'YOU_API_KEY', api_secret= 'YOUR_API_SECRET_KEY') + +loctx.download_data( + app_ids = ['AAAAA', 'BBBBB'], + start_date = datetime.today() - timedelta(2), + end_date = datetime.today() + )