hi..
how to correctly set the auth token got from 
https://www.google.com/accounts/ClientLogin
????

Auth=XXXXXXXXXX....

my code:

body = "Authorization"+"GoogleLogin+auth="+auth+"\n"+"<entry xmlns=
\'http://www.w3.org/2005/Atom\' xmlns:gCal=\'http://schemas.google.com/
gCal/2005\'><content type=\"html\">Tennis with John April 11
3pm-3:30pm</content><gCal:quickadd value=\"true\"/></entry>";

URL url = new URL("http://www.google.com/calendar/feeds/default/
private/full");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
HttpURLConnection.setFollowRedirects(false);

conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/atom+xml");
conn.setRequestProperty("Authorization", "GoogleLogin auth="+auth);
conn.setRequestProperty("Content-Length", ""+body.length());

OutputStream os = conn.getOutputStream();
os.write(body.getBytes());

thanks
Miky
--~--~---------~--~----~------------~-------~--~----~
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