Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google URL #1

Closed
Maxowww opened this issue Mar 28, 2013 · 7 comments
Closed

Google URL #1

Maxowww opened this issue Mar 28, 2013 · 7 comments
Assignees

Comments

@Maxowww
Copy link

Maxowww commented Mar 28, 2013

Hi, thanks for your open source projet !
I tried to use it with my gmail account but the only responses I get from google are HTML 200 OK when I try to see my contacts (Client.Get()) and 400 Bad Request when I try to create a new contact (Client.Add(vCard card)).

Moreover, google doesn't have any documentation about it...

Did you try your code recently ? Does the url is still valid ?

Thanks

@ghost ghost assigned Metric Mar 28, 2013
@Metric
Copy link
Owner

Metric commented Mar 28, 2013

I will go ahead and download the current build on the repo and try it out again myself.

@Metric
Copy link
Owner

Metric commented Mar 28, 2013

Alright, so I can say for a fact Google has changed their URL for carddav. I am trying to locate the new one currently.

@Maxowww
Copy link
Author

Maxowww commented Mar 28, 2013

Ok, thanks for your time.
This article (http://www.ghacks.net/2012/12/15/sync-google-contacts-with-thunderbird-using-carddav/) indicate this URL : https://google.com/m8/carddav/principals/__uids__/username@gmail.com/lists/default/
But it doesn't seem to be better.

EDIT
This one (http://www.bynari.net/can-i-access-my-calendars-and-contacts-with-other-clients-via-caldav-and-carddav/) says that Google Contacts is no longer available by Google.

@Metric
Copy link
Owner

Metric commented Mar 28, 2013

Well Apparently, when Google said they were killing their CalDav support, they secretly killed the CardDav support. None of Google's CardDav urls work anymore. Every Google CardDav URL now returns 404. Even when you get a 200 response their is no proper data provided. AKA, Google has pretty much axed their CardDav support.

Technically there is nothing wrong with the library, it is just Google being a complete jerk wad in removing their open support of CalDav and CardDav. Their motto of "Do no evil," no longer applies to Google anymore. I don't know about you, but I am getting ready to move to outlook mail. At least Microsoft is now supporting open standards. I won't be surprised if Google removes their IMAP support in favor or their GMAIL API.

@Metric Metric closed this as completed Mar 28, 2013
@Maxowww
Copy link
Author

Maxowww commented Mar 28, 2013

It's unbelievable... I've chosen Gmail because I thought that CardDav was supported. I could use their Contact API but the code wouldn't work with other CardDav servers. The Google Contact API website seems to be down today...

I read that microsoft is going to support CardDav, but I don't think they've done it yet. Moreover, the Hotmail API is worse than the Google's one because you can't access to the email addresses of your contacts. Accessing to contacts seems to be quite difficult with those companies.

@Metric
Copy link
Owner

Metric commented Mar 28, 2013

I am pretty positive that their CardDav server isn't just down. Because I looked at the raw response of https://google.com/m8/carddav/principals/__uids__/username@gmail.com/lists/default/ and I get a 200 response. However, the response is a legitimate CardDav response, but contains no actual listing of CardDav data.

Here is the response I get:

<dav:multistatus xmlns:caldav="urn:ietf:params:xml:ns:caldav" xmlns:carddav="urn:ietf:params:xml:ns:carddav" xmlns:cs="http://calendarserver.org/ns/" xmlns:dav="DAV:" xmlns:ical="http://apple.com/ns/ical/">
dav:response
dav:href/m8/carddav/principals/uids/myemail@gmail.com/lists/default//dav:href
dav:propstat
dav:statusHTTP/1.1 200 OK/dav:status
/dav:propstat
/dav:response
/dav:multistatus

It should contain the default listing of vCards. However, it no longer does.

Yet previously even https://google.com/m8/carddav/principals/__uids__/username@gmail.com/lists/ would work properly, and now it returns a 404.

@Maxowww
Copy link
Author

Maxowww commented Mar 28, 2013

Yeah I think you're right, I have the same results...
Thanks for your help, though !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants