Links

Electricity Billers

Get list of all supported Electricity Billers/Disco
get
{{base_url}}/elect-billers
Parameters
Header
authorization*
PUBLIC_KEY
Set value to Bearer PUBLIC_KEY
Responses
200: OK
Take a look at how you might do this:
cURL
NodeJS
PHP - cURL
Python
Dart
curl --location --request GET 'https://api.oneappgo.com/v1/elect-billers'
--header 'Authorization: Bearer PUBLIC_KEY'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api.oneappgo.com/v1/elect-billers',
'headers': {
'Authorization': 'Bearer PUBLIC_KEY'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.oneappgo.com/v1/elect-billers',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer PUBLIC_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://api.oneappgo.com/v1/elect-billers"
payload={}
headers = {
'Authorization': 'Bearer PUBLIC_KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var headers = {
'Authorization': 'Bearer PUBLIC_KEY'
};
var request = http.Request('GET', Uri.parse('https://api.oneappgo.com/v1/elect-billers'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}

Sample Response

{
"status": true,
"message": "Electricity Billers Retrieved",
"lists": [
{
"value": "IBADAN",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/1e0bc905-5bfe-46e5-38ff-27fcb3ecac00/public",
"disconame": "IBEDC"
},
{
"value": "ABUJA",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/445aa7b8-d2e2-4aa5-1c24-a2119c309000/public",
"disconame": "AEDC"
},
{
"value": "KANO",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/070e0c60-9c1c-49ef-10a9-b3cf343dc400/public",
"disconame": "KEDCO"
},
{
"value": "IKEJA",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/cadf5fc9-4c13-45e8-a4e8-9fe8f6055400/public",
"disconame": "IKEDC"
},
{
"value": "EKO",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/69b0de99-ba9f-4283-5f45-da11f0118d00/public",
"disconame": "EKEDC"
},
{
"value": "PH",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/ebc8c430-04e5-4090-7149-7fc99177d100/public",
"disconame": "PHEDC"
},
{
"value": "ENUGU",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/a9f6119d-4bec-4a53-6f93-afb0ac4ffd00/public",
"disconame": "EEDC"
},
{
"value": "KADUNA",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/363367e2-ed4c-4911-a33b-c89708cc1a00/public",
"disconame": "KAEDCO"
},
{
"value": "JOS",
"logo": "https://imagedelivery.net/IJzyw_ukSF-3OTlkcw9dIw/76b59a61-f396-41a5-9681-92163cef1900/public",
"disconame": "JEDC"
}
]
}