Bank List
Get the list of all the Banks in Nigeria
get
{{base_url}}/banklist
Nigeria Bank List
Take a look at how you might do this:
cURL
NodeJS
PHP - cURL
Python
Dart
1
curl --location --request GET 'https://api.1app.online/v1/listbanks' \
2
--header 'Authorization: Bearer PUBLIC_KEY'
Copied!
1
var request = require('request');
2
var options = {
3
'method': 'GET',
4
'url': 'https://api.1app.online/v1/listbanks',
5
'headers': {
6
'Authorization': 'Bearer PUBLIC_KEY'
7
},
8
formData: {
9
10
}
11
};
12
request(options, function (error, response) {
13
if (error) throw new Error(error);
14
console.log(response.body);
15
});
16
Copied!
1
2
$curl = curl_init();
3
4
curl_setopt_array($curl, array(
5
CURLOPT_URL => 'https://api.1app.online/v1/listbanks',
6
CURLOPT_RETURNTRANSFER => true,
7
CURLOPT_ENCODING => '',
8
CURLOPT_MAXREDIRS => 10,
9
CURLOPT_TIMEOUT => 0,
10
CURLOPT_FOLLOWLOCATION => true,
11
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12
CURLOPT_CUSTOMREQUEST => 'GET',
13
CURLOPT_HTTPHEADER => array(
14
'Authorization: Bearer PUBLIC_KEY'
15
),
16
));
17
18
$response = curl_exec($curl);
19
20
curl_close($curl);
21
echo $response;
Copied!
1
import requests
2
3
url = "https://api.1app.online/v1/listbanks"
4
5
payload={}
6
files={}
7
headers = {
8
'Authorization': 'Bearer PUBLIC_KEY'
9
}
10
11
response = requests.request("GET", url, headers=headers, data=payload, files=files)
12
13
print(response.text)
14
Copied!
1
var headers = {
2
'Authorization': 'Bearer PUBLIC_KEY'
3
};
4
var request = http.MultipartRequest('GET', Uri.parse('https://api.1app.online/v1/listbanks'));
5
6
request.headers.addAll(headers);
7
8
http.StreamedResponse response = await request.send();
9
10
if (response.statusCode == 200) {
11
print(await response.stream.bytesToString());
12
}
13
else {
14
print(response.reasonPhrase);
15
}
16
Copied!

Sample Response

1
{
2
"status": true,
3
"message": "Bank List Retrieved",
4
"banklist": [
5
{
6
"code": "000001",
7
"bname": "STERLING BANK"
8
},
9
{
10
"code": "000002",
11
"bname": "KEYSTONE BANK"
12
},
13
{
14
"code": "000003",
15
"bname": "FIRST CITY MONUMENT BANK"
16
},
17
{
18
"code": "000004",
19
"bname": "UNITED BANK FOR AFRICA"
20
},
21
{
22
"code": "090123",
23
"bname": "TRUSTBANC J6 MICROFINANCE BANK LIMITED"
24
},
25
{
26
"code": "000006",
27
"bname": "JAIZ BANK"
28
},
29
{
30
"code": "000007",
31
"bname": "FIDELITY BANK"
32
},
33
{
34
"code": "000008",
35
"bname": "POLARIS BANK"
36
},
37
{
38
"code": "000009",
39
"bname": "CITI BANK"
40
},
41
42
{
43
"code": "090286",
44
"bname": "SAFE HAVEN MICROFINANCE BANK"
45
},
46
{
47
"code": "090283",
48
"bname": "NNEW WOMEN MICROFINANCE BANK"
49
},
50
{
51
"code": "090331",
52
"bname": "UNAAB MICROFINANCE BANK"
53
},
54
{
55
"code": "090252",
56
"bname": "YOBE MICROFINANCE BANK"
57
}
58
]
59
}
Copied!