TrackerNetwork / TRN.Developers

Information and Issue Tracker for the Tracker Network API.
https://tracker.gg/developers
24 stars 5 forks source link

I am always rejected by the server, but I haven't called too many interfaces #62

Open Nek0Neko opened 3 years ago

Nek0Neko commented 3 years ago

``import requests

def get_url(platform, name): head = { "TRN-Api-Key": "My-Api-Key" } proxies = { 'http': 'http://localhost:1080', 'https': 'https://localhost:1080' } url = f'https://public-api.tracker.gg/v2/apex/standard/profile/{platform}/{name}'

user_data = requests.get(url, headers=head, proxies=proxies, verify=False)

print(user_data)

get_url('origin', 'flymao2')