Validate Accounts
post
https://api.bountyblok.io
/wax/validate_accounts
Validate Accounts
cURL
C#
Javascript
Python
PHP
1
curl --request POST \
2
--url https://api.bountyblok.io/wax/validate_accounts \
3
--header 'content-type: application/json' \
4
--data '{"accounts":"fcaqw.wam,cqcau.wam,1.baw.wam,gzpqu.wam,apple"}'
5
Copied!
1
var client = new RestClient("https://api.bountyblok.io/wax/validate_accounts");
2
var request = new RestRequest(Method.POST);
3
request.AddHeader("content-type", "application/json");
4
request.AddParameter("application/json", "{\"accounts\":\"fcaqw.wam,cqcau.wam,1.baw.wam,gzpqu.wam,apple\"}", ParameterType.RequestBody);
5
6
IRestResponse response = client.Execute(request);
7
Copied!
1
var data = JSON.stringify({
2
"accounts":"fcaqw.wam,cqcau.wam,1.baw.wam,gzpqu.wam,apple"
3
});
4
5
var xhr = new XMLHttpRequest();
6
7
xhr.addEventListener("readystatechange", function () {
8
if (this.readyState === this.DONE) {
9
console.log(this.responseText);
10
}
11
});
12
13
xhr.open("POST", "https://api.bountyblok.io/wax/validate_accounts");
14
xhr.setRequestHeader("content-type", "application/json");
15
16
xhr.send(data);
17
Copied!
1
import http.client
2
3
conn = http.client.HTTPSConnection("api.bountyblok.io")
4
5
payload = "{\"accounts\":\"fcaqw.wam,cqcau.wam,1.baw.wam,gzpqu.wam,apple\"}"
6
7
headers = { 'content-type': "application/json" }
8
9
conn.request("POST", "/wax/validate_accounts", payload, headers)
10
11
res = conn.getresponse()
12
data = res.read()
13
14
print(data.decode("utf-8"))
15
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => "https://api.bountyblok.io/wax/validate_accounts",
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => "",
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 30,
11
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12
CURLOPT_CUSTOMREQUEST => "POST",
13
CURLOPT_POSTFIELDS => "{\"accounts\":\"fcaqw.wam,cqcau.wam,1.baw.wam,gzpqu.wam,apple\"}",
14
CURLOPT_HTTPHEADER => array(
15
"content-type: application/json"
16
),
17
));
18
19
$response = curl_exec($curl);
20
$err = curl_error($curl);
21
22
curl_close($curl);
23
24
if ($err) {
25
echo "cURL Error #:" . $err;
26
} else {
27
echo $response;
28
}
29
Copied!
Last modified 10mo ago
Copy link