This is the first item's accordion body. It's also worth noting that just about any HTML can go within the
.accordion-body, though the transition does limit overflow.
$curl = curl_init();
$postdata = array(
"contact" => array(
array(
"number" => "880123456789",
"message" => "In publishing and graphic design, Lorem ipsum"
),
array(
"number" => "880123456789",
"message" => "In publishing and graphic design, Lorem ipsum",
"media" => "image",
"url" => "https://example.com/image.jpeg"
),
array(
"number" => "880123456799",
"message" => "In publishing an audio file, Lorem ipsum",
"media" => "audio",
"url" => "https://example.com/audio.mp3"
),
array(
"number" => "880123456799",
"message" => "In publishing a video file, Lorem ipsum",
"media" => "video",
"url" => "https://example.com/video.mp4"
),
array(
"number" => "880123456799",
"message" => "In publishing a document file, Lorem ipsum",
"media" => "document",
"url" => "https://example.com/document.pdf"
)
)
);
curl_setopt_array($curl, array(
CURLOPT_URL => '{{route('incoming.whatsapp.send')}}',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>json_encode($postdata),
CURLOPT_HTTPHEADER => array(
'Api-key: ###########################,
'Content-Type: application/json',
),
));
$response = curl_exec($curl);
curl_close($curl);