curl -X POST "https://api.fondyflow.io/clientapi/encrypted/v1/<clientRef>" \
-H "Content-Type: application/json" \
-H "X-correlation-id: <X-correlation-id>" \
-H "Host: <Host>" \
-H "Date: <Date>" \
-d '{
"encrypted_payload": "ENCRYPTED_PAYLOAD",
"encrypted_user": "ENCRYPTED_USER",
"method": "API_METHOD",
"signature": "ENCRYPTED_SIGNATURE",
"encrypted_url": "ENCRYPTED_URL"
}'
const response = await fetch(`https://api.fondyflow.io/clientapi/encrypted/v1/${clientRef}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"encrypted_payload": "ENCRYPTED_PAYLOAD",
"encrypted_user": "ENCRYPTED_USER",
"method": "API_METHOD",
"signature": "ENCRYPTED_SIGNATURE",
"encrypted_url": "ENCRYPTED_URL"
})
});
const data = await response.json();
import requests
response = requests.request(
"POST",
"https://api.fondyflow.io/clientapi/encrypted/v1/{clientRef}",
json={
"encrypted_payload": "ENCRYPTED_PAYLOAD",
"encrypted_user": "ENCRYPTED_USER",
"method": "API_METHOD",
"signature": "ENCRYPTED_SIGNATURE",
"encrypted_url": "ENCRYPTED_URL"
},
)
data = response.json()
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.fondyflow.io/clientapi/encrypted/v1/<clientRef>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{
"encrypted_payload": "ENCRYPTED_PAYLOAD",
"encrypted_user": "ENCRYPTED_USER",
"method": "API_METHOD",
"signature": "ENCRYPTED_SIGNATURE",
"encrypted_url": "ENCRYPTED_URL"
}');
$response = curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.fondyflow.io/clientapi/encrypted/v1/<clientRef>", strings.NewReader(`{
"encrypted_payload": "ENCRYPTED_PAYLOAD",
"encrypted_user": "ENCRYPTED_USER",
"method": "API_METHOD",
"signature": "ENCRYPTED_SIGNATURE",
"encrypted_url": "ENCRYPTED_URL"
}`))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(string(data))
}
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.fondyflow.io/clientapi/encrypted/v1/<clientRef>"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"encrypted_payload\": \"ENCRYPTED_PAYLOAD\",\n \"encrypted_user\": \"ENCRYPTED_USER\",\n \"method\": \"API_METHOD\",\n \"signature\": \"ENCRYPTED_SIGNATURE\",\n \"encrypted_url\": \"ENCRYPTED_URL\"\n}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require "net/http"
require "uri"
uri = URI("https://api.fondyflow.io/clientapi/encrypted/v1/<clientRef>")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Post.new(uri)
request["Content-Type"] = "application/json"
request.body = "{\n \"encrypted_payload\": \"ENCRYPTED_PAYLOAD\",\n \"encrypted_user\": \"ENCRYPTED_USER\",\n \"method\": \"API_METHOD\",\n \"signature\": \"ENCRYPTED_SIGNATURE\",\n \"encrypted_url\": \"ENCRYPTED_URL\"\n}"
response = http.request(request)
puts response.body