curl -X POST "https://rsflowhub.com/api/v1/intent/detect" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"message":"Translate customer message into French and extract intent"}'
<?php
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('POST', 'https://rsflowhub.com/api/v1/intent/detect', [
'headers' => [
'x-api-key' => 'YOUR_API_KEY',
'Content-Type' => 'application/json',
],
'json' => array (
'message' => 'Translate customer message into French and extract intent',
),
]);
$data = json_decode($response->getBody(), true);
print_r($data);
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'x-api-key' => 'YOUR_API_KEY',
'Content-Type' => 'application/json',
])->post('https://rsflowhub.com/api/v1/intent/detect', array (
'message' => 'Translate customer message into French and extract intent',
));
$data = $response->json();
const response = await fetch('https://rsflowhub.com/api/v1/intent/detect', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({"message":"Translate customer message into French and extract intent"})
});
const data = await response.json();
console.log(data);
const axios = require('axios');
const response = await axios.post('https://rsflowhub.com/api/v1/intent/detect', {"message":"Translate customer message into French and extract intent"}, {
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
}
});
console.log(response.data);
import requests
url = "https://rsflowhub.com/api/v1/intent/detect"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
payload = {"message":"Translate customer message into French and extract intent"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())