Plugger AI
Search
K
Comment on page

PHP

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://inference.plugger.ai/");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, payloadData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'x-api-key: API_KEY'
));
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
?>