graviox/CardDAV-PHP — Issue #1: Can't interact with ownCloud cardDAV-Server
Author: chrisb86
Created: 2011-12-15 21:27:55+00:00
State: open

I'm going to develop a frontend for cardDAV-Servers and for this purpose I tried to use your class with my instance of ownCloud for testing. I can connect to the server but I can't get any data from it. Adding contacts is also not possible.

This ist my code:

set_auth('test', 'test');

var_dump($carddav->check_connection());

echo $carddav->get();

$vcard = 'BEGIN:VCARD
VERSION:3.0
UID:1f5ea45f-b28a-4b96-25as-ed4f10edf57b
FN:Christian Putzke
N:Christian;Putzke;;;
EMAIL;TYPE=OTHER:christian.putzke@graviox.de
END:VCARD';

$carddav->add($vcard);

?>

And this is the result I get.

bool(true)

You can use the credentials for my server for testing, if you want to. If I can help finding errors, let me know.