I'm trying to update a specific event on a specific day. The program
that I had working, was working fine until I moved it to a new file
structure and now I'm getting this error.
"Error: Illegal scheme supplied, only alphanumeric characters are
permitted"
Here's the code and below this is the string I'm trying to submit:
///////////////////////////////////////////////////////////////////////////////////////////////////
// Update Event
function updateEvent ( $eventID, $title, $where, $content,
$startDate, $startTime, $endDate, $endTime ) {
if( $eventID == "" ) return;
try{
// Format the event data
$eventOld =
$this->gdataCal->getCalendarEventEntry
( $eventID );
$eventOld->title = $this->gdataCal->newTitle(
$title );
$eventOld->where = array(
$this->gdataCal->newWhere( $where ) );
$eventOld->content= $this->gdataCal->newContent(
$content );
$when =
$this->gdataCal->newWhen();
if ($startTime=='all_day') {
$when->startTime =
"{$startDate}{$this->tzOffset}:00";
} else {
$when->startTime =
"{$startDate}T{$startTime}:00.000{$this-
>tzOffset}:00";
}
if ($endTime=='all_day') {
$when->endTime =
"{$endDate}{$this->tzOffset}:00";
} else {
$when->endTime =
"{$endDate}T{$endTime}:00.000{$this->tzOffset}:
00";
}
$eventOld->when = array($when);
$eventOld->save();
} catch ( Exception $e ) {
echo "<BR><BR>Error: " . $e->getMessage() . "<br />\n";
return;
}
}
The string that I'm sending to this function. I understand that I have
dashes and equals in this string, but I've been sending this to the
calendar for 6 months, did google update something?
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[email protected],65 Guest room(s)
& 6 Meeting room(s) open - 44 Rms/Suites & 21 Dorm room(s) & 6 Meeting
room(s),Wilderness Edge 32 Burrows Road, Pinawa, Manitoba, Canada,
Guest Rooms | 65 Open | 0 Booked =================================
Dorm Room | 21 open | 0 booked
-------------------------------------------------------------------
Std Rm 1 Qn Bed | 0 open | 0 booked
-------------------------------------------------------------------
Std Rm 2 Dble Bds | 0 open | 0 booked
-------------------------------------------------------------------
Handicap Friendly | 1 open | 0 booked
-------------------------------------------------------------------
Bachelor Suite | 8 open | 0 booked
-------------------------------------------------------------------
Family Suite | 15 open | 0 booked
-------------------------------------------------------------------
Couples Suite | 4 open | 0 booked
-------------------------------------------------------------------
Two Room Suite | 10 open | 0 booked
-------------------------------------------------------------------
Suite with Kitchen | 6 open | 0 booked
-------------------------------------------------------------------
Meeting Rooms | 6 Open | 0 BOOKED
=================================TESTING Pinawa Room | open | Manitoba
Room | open | McCoy Lounge | open | Avery Room | open | Agassiz Room |
open |
-------------------------------------------------------------------
Penner Theatre | open | ================================= ,
2009-03-19,all_day,2009-03-19,all_day
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---