Vanilla is a product of Lussumo. More Information: Documentation, Community Support.
//set some variables
$apiToken = ""; // set this value to your API token
//initialize the curl handler
$ch = curl_init();
//set options
curl_setopt($ch, CURLOPT_URL, "https://api.myintervals.com/person/?email=pelagodesign.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, $apiToken . ":");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json")); //application/xml is also a valid header
//query the API and parse the resulting json code into an array
$response = json_decode(curl_exec($ch);)
//close the curl handler
curl_close($ch);
//output the results
print_r($response);
1 to 1 of 1