Advertisement
a_igin

Untitled

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