This commit is contained in:
Suvodip
2024-08-31 18:49:18 +05:30
parent 2056e1e4af
commit 2eca9ab2c6
10 changed files with 390 additions and 33 deletions

View File

@@ -366,7 +366,7 @@
"callbackData" => "some text here",
"type" => "Template",
"template" => [
"name" => "boost_conversion",
"name" => $_GET['send-whatsapp-id'],
"languageCode" => "en",
"headerValues" => [
"header_variable_value"
@@ -391,12 +391,14 @@
$context = stream_context_create($options);
$fp = fopen($url, 'r', false, $context);
if ($fp === FALSE) {
echo 'Error occurred';
// echo 'Error occurred';
echo $fp;
} else {
$response = stream_get_contents($fp);
if ($response === FALSE) {
echo 'Error reading response';
// echo 'Error reading response';
// echo $response;
} else {
if(isset($_GET['send-whatsapp-id'])){
$templateName = $_GET['send-whatsapp-id'];
@@ -632,7 +634,6 @@
<div class="flex flex-row place-content-between p-3" style="border-bottom: 2px solid #7E8299; border-style: dashed;">
<div class="flex flex-col">
<p style="font-size: 20px; font-weight: bold;">Communication:</p>
<p><?php echo $saved_message; ?></p>
</div>
</div>