Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

Authorization: Basic <Base64UrlSafe(apiKeyId:apiKeySecret)>

Depending on the language or tool you are using to send your request, the method for generating will differ.  An example using curl:

Curl command line basic authentication
curl -u apiKey:apiKeySecret https://secure.gotobilling.com/resource

PHP using the curl extension:

PHP curl basic authentication
$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

API access keys can be generated from within the OmniFund merchant dashboard.  Simply log into your OmniFund merchant account and go to Profile > API Keys.  Multiple API keys can be generated and managed from the management console.  Please note that the API key secret will only be display at the time the API keys is created and it non-recoverable.  If the key secret is lost, a new API will need to be generated.


  • No labels