title: cUrL in php : Nothing come in response [NULL]
body: <p>I am fetching data from thirdparty API using CURL in php. I have read the documentation and passing the same valid parameters to the request but nothing works.
  I am showing the code removing "API KEY" due to confidentiality.</p>
  
  <pre><code>$service_url = 'https://api.birdeye.com/resources/v1/business/147197756121167?api_key=ApiKeyGoesHere';
      $curl = curl_init($service_url);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      $curl_response = curl_exec($curl);
      if ($curl_response === false) 
      {
          $info = curl_getinfo($curl);
          curl_close($curl);
          echo '&lt;pre&gt;';
          die('error occured during curl exec. Additioanl info: ' . var_export($info));
      }
  
      curl_close($curl);
      $decoded1 = json_decode($curl_response,true);
      if (isset($decoded1-&gt;response-&gt;status) &amp;&amp; $decoded1-&gt;response-&gt;status == 'ERROR') 
      {
          die('error occured: ' . $decoded1-&gt;response-&gt;errormessage);
      }
      echo 'response ok!';
      var_export($decoded1-&gt;response);
      ?&gt;
  </code></pre>
  
  <p>The Output it gives me is : <code>response ok!NULL</code></p>
  
  <p>Link to the documenataion of birdeye API.</p>
  
  <pre><code>http://docs.birdeye.apiary.io/#reference/business/get/get-business
  </code></pre>
  
  <p>I have tried testing with Terminal it gives me response.
  Can Any One give me the way, where I am going wrong?</p>