CODE SAMPLES
-
** Replace YourApiKey and YourApiToken in the sample below with your API Credentials **
$apiKey = “YourApiKey”;
$token=”YourApiToken”;
// choose an endpoint
$url = 'https://api.teneo.be/v1/accountinfo';
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, 'YourApiKey:YourApiToken');
curl_setopt($ch, CURLOPT_POSTFIELDS, "apiKey=$apiKey&token=$token");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$result = curl_exec($ch);
curl_close($ch);
Not yet available