up
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
$wh = new WhatsAppService();
|
||||
$to = '573022548060';
|
||||
$message = 'Prueba de envío (desarrollo) ' . date('Y-m-d H:i:s');
|
||||
try {
|
||||
$res = $wh->sendTextMessage($to, $message);
|
||||
echo "Response:\n";
|
||||
echo json_encode($res, JSON_PRETTY_PRINT) . "\n";
|
||||
} catch (Exception $e) {
|
||||
echo "Error: " . $e->getMessage() . "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user