Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_stats(self):
- query = {
- 'was_at_date_gte': '2020-06-10',
- 'was_at_date_lte': '2020-07-18',
- 'type': [1, 2]
- }
- root = 'https://prostatic.smd.agency'
- url = '{}/api/v1/diary_records/stats'.format(root)
- response = requests.get(url, params=query, headers={'Authorization': 'Token 30a37d25faaa119549aa588d776bdd792d677648'})
- print(response.json())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement