Closed boxymoron closed 3 years ago
I'll try to see if it works with Yahoo, I've tested it only with apple and google. If it's a bug within this lib I'll let you know.
After some investigation, it seems like yahoo's carddav API lacks some required parts of the carddav spec
Support for the CARDDAV:addressbook-query REPORT is REQUIRED.
accroding to my test yahoo's carddav api does not support this report, therefore it's impossible for client to know the urls of the vcard objects inside a given addressbook.
However, if for example, all vcards on this addressBook were created by your application and you can store the urls somewhere, you can technically create/edit/delete the vcard objects with this client.
Also another client, DAVx marked carddav api of yahoo unusable. So I don't think it's a bug of tsdav
Thanks for the prompt response. So basically the Yahoo CardDAV implementation is broken/non-standards compliant.
Hello,
I have a requirement to fetch a list of contacts/emails from a yahoo user/email account. After much research I found that Yahoo deprecated their old Contacts API and is now using CardDAV, but theres virtually no documentation online about Yahoo's implementation (I assume because CardDAV is a standard protocol).
I'm having issues using tsDAV to retrieve a list of contacts from Yahoo and could use some help.
So far I've been able to authenticate successfully with Yahoo OAuth and can retrieve an AddressBook with fetchAddressBooks(), but I can't seem to be able to fetch VCards or issue an addressBookQuery successfully.
Code:
Here's what I'm seeing in the logs for the call to client.fetchVCards():
I added log statements in request.js to see the url, headers, and body (before marshalled to xml). One interesting thing is that the log statements gets called twice in a row with a different body for the same call to fetchVCards(). Not sure if this is correct behavior.
Request:
Response:
And here is the log for the call to addressBookQuery():
Response:
Is it possible that the Yahoo CardDAV implementation is broken (non-standards compliant)??
Any help is greatly appreciated.