View Single Post
Old 10-05-2012, 12:34 AM   PM User | #1
shile
New Coder

 
Join Date: Oct 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
shile is an unknown quantity at this point
Updating calendar

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...

PHP Code:
<?php
    $webhook_secret 
'mysecret';
    
    if (
$_POST['secret'] !== $webhook_secret)
    {
        
header('HTTP/1.1 403 Forbidden');
        echo 
"Invalid webhook secret";
    }
    else 
    {
        if (
$_POST['event'] == 'incoming_message')
        {
            
$content $_POST['content'];
            
$from_number $_POST['from_number'];
            
$phone_id $_POST['phone_id'];
            if(
$_POST['content']== 'October-4-2012-1700'){
            =>
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.


Last edited by shile; 10-06-2012 at 02:10 PM..
shile is offline   Reply With Quote