curl --location --request POST 'https://api.oneappgo.com/v1/partnerbank' \
--header 'Authorization: Bearer PUBLIC_KEY' \
--header 'Content-Type: application/json' \
--data ''
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.oneappgo.com/v1/partnerbank',
'headers': {
'Authorization': 'Bearer PUBLIC_KEY',
'Content-Type': 'application/json'
}
};
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/partnerbank',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer PUBLIC_KEY',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
import json
url = "https://api.oneappgo.com/v1/partnerbank"
payload = ""
headers = {
'Authorization': 'Bearer PUBLIC_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
{
"status": true,
"message": "Bank list retrieved",
"data": [
{
"bankname": "Kuda Bank",
"bankcode": "090267"
},
{
"bankname": "Providus Bank",
"bankcode": "101"
}
]
}