curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/disbursement/bank-account-inquiry?name=ft-4&connection_name=flip-entre-1' \
--header 'x-api-key: U2FsdGVk...' \
--header 'Content-Type: application/json' \
--data-raw '{
"account_number" : "5465327020",
"bank_code" : "bca"
}'
var axios = require('axios');
var data = JSON.stringify({
"account_number": "5465327020",
"bank_code": "bca"
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/disbursement/bank-account-inquiry?name=ft-4&connection_name=flip-entre-1',
headers: {
'x-api-key': 'U2FsdGVk...',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/flipSandbox/disbursement/bank-account-inquiry?name=ft-4&connection_name=flip-entre-1',
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 =>'{
"account_number" : "5465327020",
"bank_code" : "bca"
}',
CURLOPT_HTTPHEADER => array(
'x-api-key: U2FsdGVk...',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;