skip to Main Content

Php – Discord api returns nothing

I try to use this api to get a list of all guilds a user is in, but when i print the response i just see a blank screen. <?php session_start(); $url = "https://discord.com/api/users/@me/guilds"; $data = array('Content-Type: application/x-www-form-urlencoded', 'Authorization: Bearer…

VIEW QUESTION

PHP APİ CURL Get Null

$curl = curl_init(); curl_setopt_array($curl , [ CURLOPT_RETURNTRANSFER =>TRUE, CURLOPT_URL => 'https://ortam.etu.edu.tr/Services/get_user_card_information/?apikey=XXXXXXXXX&username=ZZZZZZZZZZ', ]); $response = curl_exec($curl); $response = json_decode($response, TRUE); var_dump($response); I was able to get a response from a different API call, but I cannot get a response from this…

VIEW QUESTION
Back To Top
Search