Using CURL to call REST API
I am trying to call REST API from a sample PHP code as below.
$url = "https://userid:pwd.rightnowdemo.com/services/rest/connect/v1.3/accounts/25";
//send request to reource
$client = curl_init($url);
//get response from Resource
$response = curl_exec($client);
$result = json_decode($response);
But i am getting " Fatal error: Call to undefined function load_curl() in C:\xampp\htdocs\callrestapi.php on line 3"
If i removed load_curl() from the script getting following errors.
Notice: Use of undefined constant CURLOPT_REURNTRANSFER - assumed 'CURLOPT_REURNTRANSFER' in C:\xampp\htdocs\callrestapi.php on line 6