TrackerNetwork / TRN.Developers

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

Battelfield5 API only returns that API Key is missing since some Days #52

Open degoya opened 3 years ago

degoya commented 3 years ago

i try to get Datas from the Battlefield API, everything worked fine till some days ago. i get the response : No API key found in request

i use the following code to get data from the api via PHP/Curl

` $ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://public-api.tracker.gg/v2/bfv/standard/profile/origin/R3Nd3rG0d"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'TRN-Api-Key: XXXX-XXXX-XXXXX-XXXXX' )); $response = curl_exec($ch); curl_close($ch); print_r($response); `

This worked like a charm before.