Authentication
API users are provided with an API key and secret. Please contact us for prices.
Authentication is handled using HTTP Basic Authentication:
1
Authorisation: Basic xxxxxx
Copied!
where 'xxxxx' is the result of base64 encoding the api key and secret.
Most programming languages will have a library to handle this. For example, in Python the requests library can make an authenticated request by doing:
1
requests.get('https://api2.redflagalert.net/v4/companies/', auth=('key', 'secret'))
Copied!
If you have any problems with authentication in your chosen language, please contact us for assistance.
Last modified 2yr ago
Copy link