Skip to content

CardDAV endpoint that fetches TwentyCRM contacts and provides them to CardDAV clients

License

Notifications You must be signed in to change notification settings

wolfgang101/twenty-carddav-bridge

Repository files navigation

twenty-carddav-bridge

CardDAV endpoint that fetches TwentyCRM contacts and provides them to CardDAV clients

Dependencies

Install sabre/dav

composer install

Stored data

All contacts are fetched with each request. Data is not persisted currently.

data/db.sqlite is part of sabre/dav

Configuration / credentials

config.php shows all available configuration variables.

Create a file config.local.php to override the default configuration.

<?php

namespace TwentyCardavBridge;                                                             
$twentyApiBaseUrl = 'https://twenty.example.com/rest';
$twentyApiAuthToken = '';

Scripts

Test TwentyCRM API

php ./test_api.php

Running the server

Run server

php -S localhost:8080 ./server.php

Use Postman or similar to test the server

REPORT http://localhost:8080/addressbooks/global/twenty-addressbook/

About

CardDAV endpoint that fetches TwentyCRM contacts and provides them to CardDAV clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages