curl --location --request POST 'https://api.oneappgo.com/v1/sendmoney' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--form 'amount="100000"' \
--form 'bankcode="000013"' \
--form 'bankname="GT BANK"' \
--form 'reference="shudgyutg876542"' \
--form 'accountno="0245000000"' \
--form 'narration="Transfer to my client"' \
--form 'acctname'="Olajide Olajide"'\
--form 'currency="NGN"'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.oneappgo.com/v1/sendmoney',
'headers': {
'Authorization': 'Bearer SECRET_KEY'
},
formData: {
'amount': '100000',
'bankcode': '000013',
'bankname': 'GT BANK',
'reference': 'shudgyutg876542',
'accountno': '0245000000',
'narration': 'Transer to client',
'currency': 'NGN',
'acctname': 'Olajide Olajide'
}
};
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/sendmoney',
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_POSTFIELDS => array('amount' => '100000', 'acctname' => 'Olajide Olajide','bankcode' => '000013','bankname' => 'GT BANK','reference' => 'shudgyutg876542','accountno' => '0245000000','narration' => 'Transer to client','currency' => 'NGN'),
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer SECRET_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://api.oneappgo.com/v1/sendmoney"
payload={'amount': '100000',
'bankcode': '000013',
'bankname': 'GT BANK',
'reference': 'shudgyutg876542',
'accountno': '0245000000',
'narration': 'Transer to client',
'currency': 'NGN'}
files=[
]
headers = {
'Authorization': 'Bearer YOUR_SECRET_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
var headers = {
'Authorization': 'Bearer SECRET_KEY'
};
var request = http.MultipartRequest('POST', Uri.parse('https://api.oneappgo.com/v1/sendmoney'));
request.fields.addAll({
'amount': '100000',
'bankcode': '000013',
'bankname': 'GT BANK',
'accountno': '0245000000',
'narration': 'Transer to client',
'reference': 'IJENEJDEI4I4U',
'acctname': 'JOHN DOE'
});
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}
{
"status": true,
"message": "Transfer Successfully Completed",
"txref": "API365022038SM347",
"charged": 100000,
"newbal": 600,023.80
}