Created
November 14, 2017 08:07
-
-
Save AhnSeongHyun/0148e88f1b1d278178fdc374d3238ef5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
headers = { | |
'Authorization': 'Basic YmVhdDpiZWF0X2FwcDswZWU4YTg0NjhmMmVjYjUzMzY2ZGM0MTA4NzUzZxxxxxxx', | |
'access-token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCRUFUIiwiaWF0IjoxNTA5MzI1Mzk3LCJ1c2VyX2lkIjoiNVNzUUFkcnhST1NhUlVwMzVRTlBhZ3lQcmsxekk3YXJ5U3kvRldvT0hkOD0iLCJhdWQiOiJCRUFUX0FQUCJ9.z2HKLAazfWZQysOg4gZ64T2nfT7xMjVfsgvQscHN-BM' | |
} | |
r = requests.post('https://x.com/api/store/search', json=[], headers=headers) | |
print(r.elapsed.total_seconds()) | |
print(r.headers) | |
print(r.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment