Skip to content

Commit

Permalink
Feat: Add sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhilevan authored and Zhilevan committed Jul 3, 2018
1 parent 0579af2 commit 21c8a1f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sample/sample01.py
Original file line number Diff line number Diff line change
@@ -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()
)

0 comments on commit 21c8a1f

Please sign in to comment.