Hi

I'm trying to do automated backup of my contacts and calendar.

For the calendar this is very simple, as I can use a "private url" and
just download that, however for contacts it's a bit harder.

This is what I got so far:
SID=$(curl https://www.google.com/accounts/ClientLogin -d Email=login -
d Passwd=password -d source=Google-cURL-1 -d service=contacts | grep
SID)
T_TOKEN=$(curl -s -X GET http://www.google.com/reader/api/0/token --
header "Cookie: $SID")
curl -s -X GET "https://mail.google.com/mail/contacts/data/export?
groupToExport=%5EMine&exportType=ALL&out=GMAIL_CSV" --header "Cookie:
$SID; T=$T_TOKEN"

But it fails with "Your client has issued a malformed or illegal
request."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts 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-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to