i was trying to make a script that will process sms message and if its content is with a specific month,day and time to update it to my calendar appointment and set it to occupied...this is how i started,i need help for the rest...i would appreciate any help guys...
$webhook_secret = 'mysecret';
if ($_POST['secret'] !== $webhook_secret)
header('HTTP/1.1 403 Forbidden');
echo "Invalid webhook secret";
if ($_POST['event'] == 'incoming_message')
$content = $_POST['content'];
$from_number = $_POST['from_number'];
$phone_id = $_POST['phone_id'];
=>i need here the code to now update the calendar appointment at october 4,2012,17:00 and set it to occupied<=
=>the code for incoming sms message is working i just need the rest for updating<=
This is a picture of the calendar.