Come on, someone help me out here. I've seen other examples that
supposedly work that are identical to my method with the exception
that I am using ClientLogin vs AuthSub. Is there a reason why calendar
creation is not working with ClientLogin?

Thanks,
Clif

On Oct 10, 5:39 pm, Clif <[EMAIL PROTECTED]> wrote:
> When I post the request to Google I'm getting a 200 OK status (not an
> error) with an XML packet matching what you would get if you just
> requested a list of calendars, and the calendar is not being
> created.Of course, 201 Created is the expected result.
>
> Here's what I'm doing (hope this doesn't get mangled):
>
> <cfsavecontent variable="calendarXML">
>                         <entry xmlns='http://www.w3.org/2005/Atom'
>                                    xmlns:gd='http://schemas.google.com/g/2005'
>                                    
> xmlns:gCal='http://schemas.google.com/gCal/2005'>
>                           <title type='text'>Test Calendar 3</title>
>                           <summary type='text'>Calendar Description</summary>
>                           <gCal:timezone 
> value='America/Los_Angeles'></gCal:timezone>
>                           <gCal:hidden value='false'></gCal:hidden>
>                           <gCal:color value='#2952A3'></gCal:color>
>                           <gCal:accesslevel value='owner'/>
>                         </entry>
>                 </cfsavecontent>
>
>                 <cfoutput>
>                         <cfhttp 
> url="http://www.google.com/calendar/feeds/default/
> owncalendars/full" method="post" redirect=true>
>                           <cfhttpparam type="header" name="Authorization"
> value="GoogleLogin auth=#test.auth#">
>                           <cfhttpparam type="header" name="Content-Type" 
> value="application/
> atom+xml">
>                           <cfhttpparam type="body" 
> value="#trim(calendarXML)#">
>                    </cfhttp>
>
>                    <cfif find("302", cfhttp.statusCode)>
>                           <cfset gsessionid = 
> listlast(cfhttp.responseheader.location,
> "=")>
>                           ** Got 302 redirect **<br>
>                                 <cfhttp 
> url="http://www.google.com/calendar/feeds/default/
> owncalendars/full?gsessionid=#gsessionid#" method="post"
> redirect=false>
>                                         <cfhttpparam type="header" 
> name="Authorization"
> value="GoogleLogin auth=#test.auth#">
>                                         <cfhttpparam type="header" 
> name="Content-Type" value="application/
> atom+xml">
>                                         <cfhttpparam type="body" 
> value="#trim(calendarXML)#">
>                                 </cfhttp>
>                    </cfif>
>                 </cfoutput>
>
> Any help would be appreciated :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to