Copy-paste snippets for common languages.
Integrate PULSE in seconds with these ready-to-use code blocks.
Use this in your Node.js backend or Edge Functions (e.g., Vercel, Netlify).
async function submitLead(data) {
const response = await fetch('https://admin.pulse.bpcorp.eu/api/leads/submit', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Source-API-Key': 'YOUR_VERTICAL_API_KEY'
},
body: JSON.stringify(data)
});
if (!response.ok) {
throw new Error('Submission failed');
}
return response.json();
}
Standard implementation for WordPress or legacy backends.
<?php
$url = 'https://admin.pulse.bpcorp.eu/api/leads/submit';
$data = [
'email' => 'test@example.com',
'channel' => 'seo'
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'X-Source-API-Key: YOUR_VERTICAL_API_KEY'
]);
$response = curl_exec($ch);
curl_close($ch);
?>
Ideal for data pipelines or scrapers.
import requests
url = "https://admin.pulse.bpcorp.eu/api/leads/submit"
payload = {
"email": "test@example.com",
"channel": "native_ads"
}
headers = {
"Content-Type": "application/json",
"X-Source-API-Key": "YOUR_VERTICAL_API_KEY"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())