Really I was under the impression that just getting the list of calendars from the api by " You can get a list of a user's calendars by sending an authenticated GET request to the allcalendars feed URL:
http://www.google.com/calendar/feeds/default/allcalendars/full " (http://code.google.com/apis/calendar/ developers_guide_protocol.html) however it does not state the content- type header... I did go and try out the application/atom+xml and that did 'work'. The reason it is in quotes is because I then get an html page that gives me a link with a g_session id. On Nov 2, 3:42 am, "Austin (Google)" <[EMAIL PROTECTED]> wrote: > Hi, > > When you are submitting GData POST request, the content-type header > should be "Content-type: application/atom+xml". > > Hope it helps, > Austin > > On Nov 1, 8:55 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > well upon analyzing Zends client library and playing around with my > > own code a touch, I have moved on from "too Many Instances Of" to > > something different. Whether or not this is a 'step up' in errors > > (more useful) or not, I have no idea, but at least its a change of > > scenery. The error de jour is currently "Content-Type application/x- > > www-form-urlencoded is not valid." However that is an error for a > > different post... > > > On Nov 1, 9:56 pm, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > I have printed it out and it is a long string approx 89 characters > > > long (err.. exactly). I will probably take a gander at the php client > > > library tonight, I just figured this might be something that people > > > have run in to before. Thanks for your advice > > > > On Nov 1, 7:15 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > Have you ever print out the auth token to verify that you are getting > > > > a valid token back from authentication? I haven't seen this error > > > > before, perhaps you can try building your proxy using the GData PHP > > > > client library -http://framework.zend.com/download/gdata > > > > > Austin > > > > > On Oct 31, 10:48 pm, "[EMAIL PROTECTED]" > > > > > <[EMAIL PROTECTED]> wrote: > > > > > Hello All, > > > > > > I am currently in the process of attempting to create a client library > > > > > in AS3 for the google Calendar API. I have come across some, > > > > > difficulties with the Flash player sand box, however I have gotten > > > > > around most of that with a php proxy page. I am currently able to get > > > > > my auth code from the clientlogin site, however when I try to send a > > > > > GET tohttp://www.google.com/calendar/feeds/default/allcalendars/full > > > > > to get my calendars, I just get a page that returns "Too many > > > > > instances of" (without quotes). This seems very odd to me, not to > > > > > mention un-descriptive. I looked around and did not notice anyone > > > > > else that has had this issue, and I was wondering if anyone has any > > > > > suggestions. > > > > > > the major part of my php code is as follows > > > > > > $header[] = "Authorization: GoogleLogin auth=". $_GET['AUTH']; > > > > > $header[] = "Content-type: application/x-www-form-urlencoded"; > > > > > $header[] = "Content-length: ".strlen($data); > > > > > var_dump($header); > > > > > $ch = curl_init( $url );//$_GET['url'] ); > > > > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > > > > curl_setopt($ch, CURLOPT_TIMEOUT, 10); > > > > > curl_setopt($ch, CURLOPT_HTTPHEADER, $header); > > > > > > if ( strlen($data)>0 ){ > > > > > curl_setopt($ch, CURLOPT_POSTFIELDS, $data); > > > > > > } > > > > > > $response = curl_exec($ch); > > > > > > if (curl_errno($ch)) { > > > > > print curl_error($ch);} else { > > > > > > curl_close($ch); > > > > > print $response; > > > > > > } > > > > > > and no there is nothing getting echoed / displayed above this code- > > > > > Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
