const options = {
method: 'POST',
headers: {accept: 'application/json', 'Content-Type': 'application/json; charset=utf-8'}
};
fetch('https://apis.cequens.com/mfa/v2/verifications', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
require 'uri'
require 'net/http'
url = URI("https://apis.cequens.com/mfa/v2/verifications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = 'application/json'
request["Content-Type"] = 'application/json; charset=utf-8'
response = http.request(request)
puts response.read_body
request('POST', 'https://apis.cequens.com/mfa/v2/verifications', [
'headers' => [
'Content-Type' => 'application/json; charset=utf-8',
'accept' => 'application/json',
],
]);
echo $response->getBody();
import requests
url = "https://apis.cequens.com/mfa/v2/verifications"
headers = {
"accept": "application/json",
"Content-Type": "application/json; charset=utf-8"
}
response = requests.post(url, headers=headers)
print(response.text)
using RestSharp;
var options = new RestClientOptions("https://apis.cequens.com/mfa/v2/verifications");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("accept", "application/json");
request.AddHeader("Content-Type", "application/json; charset=utf-8");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://apis.cequens.com/mfa/v2/verifications")
.post(null)
.addHeader("accept", "application/json")
.addHeader("Content-Type", "application/json; charset=utf-8")
.build();
Response response = client.newCall(request).execute();
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apis.cequens.com/mfa/v2/verifications"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("accept", "application/json")
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}