<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.memzo.ai/v1/update-event-details',
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 => array('event_id' => '37','event_date' => '2024-12-31','event_title' => 'API & Key','event_venue' => 'Jaipur, Rajasthan, India','event_cover_image'=> new CURLFILE('sdQsxOpLN/New-event-with-cover7589.JPG')),
CURLOPT_HTTPHEADER => array(
'Authorization: YOUR_SECRET_KEY',
'x-api-key: YOUR_API_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;