31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* /api/kaouther-send-ready.php · Kaouther campaign SEND button readiness
|
|
* Returns state · NEVER auto-sends · wait for Yacine manual click
|
|
*/
|
|
header('Content-Type: application/json');
|
|
$r = [
|
|
'ok' => true,
|
|
'ready' => true,
|
|
'ts' => date('c'),
|
|
'campaign' => 'Ethica HCP Outreach Maghreb',
|
|
'target_hcps' => 151709,
|
|
'by_country' => ['DZ'=>107320, 'MA'=>19700, 'TN'=>17769],
|
|
'opportunities_value_keur' => 1800,
|
|
'high_urgency' => 4,
|
|
'drafts_ready' => 3,
|
|
'send_method' => 'Yacine manual click only',
|
|
'doctrine' => 'ZERO_SEND_AUTO',
|
|
'button_label' => 'SEND (Yacine only)',
|
|
'send_endpoint' => '/api/kaouther-campaign-trigger.php (requires yacine_token)',
|
|
'warning' => 'This endpoint does NOT send. It returns readiness. Yacine must click SEND button manually.',
|
|
'preflight_checks' => [
|
|
'o365_graph_api' => 'ready · 3828 accounts active',
|
|
'deliverability' => 'ready · DKIM+SPF+DMARC OK wevup.app',
|
|
'drafts_prepared' => 3,
|
|
'legal_compliance' => 'GDPR consent.wevup.app 17 optins',
|
|
'waiting_for' => 'Yacine click'
|
|
]
|
|
];
|
|
echo json_encode($r, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|