Header
Sending basic auth credentials using cURL PHP
An example is provided below:
$username = 'PjID8u5VOCfJk3iYKzTMo7emstRLnEp9';
$password = 'xgEWspuItV7A2D6miwZFk94dTrBLSKQO';
$curl = curl_init('https://CHANGE-THIS.chargeover.com/api/v3/teapot');
curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);
curl_exec($curl);
curl_close($curl);