-
Notifications
You must be signed in to change notification settings - Fork 41
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
No Documentation for Nextcloud #134
Comments
Thanks for reporting, I'll add some docs related to nextcloud, but in the meantime you can try finding them online. |
@Sewdohe , in case you are still interested, this stub is working for me: const config = {
serverUrl: "https://example.com/remote.php/dav/calendars/",
user: "<username>",
token: "<token-created-under-user-settings/security>",
};
async function logCalendarObjects() {
const client = await createDAVClient({
serverUrl: config.serverUrl,
credentials: {
username: config.user,
password: config.token,
},
authMethod: "Basic",
defaultAccountType: "caldav",
});
const calendars = await client.fetchCalendars();
const calendarObjects = await client.fetchCalendarObjects({
calendar: calendars[0],
filters: [
{
"comp-filter": {
_attributes: {
name: "VCALENDAR",
},
},
},
],
});
console.log(calendarObjects);
} I found that magic |
I try to log into a nextcloud account and get this answer. What could be the reason ?
|
When reading the docs there are instructions on connecting to Google as well as Apple, but no nextcloud documentation, not even on the providers page.
Could someone with success connecting to nextcloud please make a PR to the intro tutorial for Nextcloud?
I'm having trouble getting it to connect, when calling client.connect using basic auth it's giving cors errors even though I've added localhost as trusted. I'm guessing I'll have to use oAuth?
The text was updated successfully, but these errors were encountered: