1import requests
2
3auth_token='sdfghjkloerdtfyguhiopfghjkl;fghjkl'
4hed = {'Authorization': 'Bearer ' + auth_token}
5data = {'app' : 'aaaaa'}
6
7url = 'https://api.xy.com'
8response = requests.post(url, json=data, headers=hed)
9print(response)
10print(response.json())