Note that there are some explanatory texts on larger screens.

plurals
  1. POcurl no response echo print
    primarykey
    data
    text
    <p>I was wondering why im not gettting any response. I already uncommented the curl in php.ini in my php in xampp. (I found other post that i should also uncomment curl part of php.ini in apache and php4 folder but there was only 1 php.ini, which is found in php dir).</p> <p>Also before i uncommented the curl part, the browser would give an unrecognized function error. After i uncommented it, it was okay, so i guess its okay in this part. </p> <pre><code>&lt;?php $whmusername = "my_email"; $whmpassword = "my_password"; $query = "https://api.appannie.com/v1/accounts"; $ch = curl_init(); // Sets the URL cURL will open curl_setopt($ch, CURLOPT_URL, $query); // Here's the HTTP auth // The 3rd argument is your Twitter username and password joined with a colon curl_setopt($ch, CURLOPT_USERPWD, $whmusername." : ".$whmpassword); // Makes curl_exec() return server response curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // And here's the result JSON $response = curl_exec($ch); curl_close($ch); echo 'Code line went here 1,'; print $response; echo $response; echo 'Code line successful here too'; ?&gt; </code></pre> <p>Then all i get in my browser is: Code line went here 1, Code line successful here too</p> <p>No response? Or am i forgetting something. I want to be able to see the response or the json format?</p> <p>Here is the link to thier api: <a href="http://support.appannie.com/entries/23224038-1-Quick-Start" rel="nofollow noreferrer">http://support.appannie.com/entries/23224038-1-Quick-Start</a> <a href="http://support.appannie.com/categories/20082753-Analytics-API" rel="nofollow noreferrer">http://support.appannie.com/categories/20082753-Analytics-API</a></p> <p>Also. i got this code from here: <a href="https://stackoverflow.com/questions/16575242/appannie-api-basic-authentication">Appannie api basic authentication</a></p> <p>Can someone else try these please?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload