The Greenlit API requires the following headers:
Here is a CURL example in PHP:
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
"content-type: application/json",
"App-Username: ".$YOUR_USERNAME,
"App-Authorisation: ".$YOUR_AUTHORISATION_CODE, "origin: ".$YOUR_WHITELISTED_DOMAIN
));
Content-Type
We use JSON in both the request and response.
App-Username
This username will be issued to you by Greenlit after a successful application for API Access.
App-Authorisation
This is an authorisation code which will be generated and issued to you by Greenlit. Please ensure you keep this code secure.
Origin
At this stage we require an origin to be sent with the headers. This should be a domain that you have had whitelisted with us.