HTTP Basic Authentication
Using HTTP Basic authentication each request will require that the API key and secret be sent along with the request in the Authentication header.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://secure.gotobilling.com/resource'); curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); $result=curl_exec ($ch); |
Generating API Access Keys
For a detailed guide on creating and managing API access keys see: Managing API Access Keys
...