The sabre/davclient library provides an easy to use library for consuming Web-, Cal- and CardDAV services