We’re excited to announce that we have a brand new code library joining our lineup…the Node.js SDK for Cronofy!
After we released our .NET SDK, we were delighted to hear that Brett Warner had put a lot of hard work into a Cronofy library for Node.js fans. Thanks Brett!
You can find our other community contributions as well as all our own libraries in one easily accessible place: Cronofy API libraries.
Just starting out?
If you’ve never worked with Cronofy before, you’ll also find these links useful:
And of course, if you need more help you can contact our friendly support team (support@cronofy.com) at any time and they’ll do their best to help 🙂
Node.js code snippets
var cronofy = require('cronofy');
// List calendars
cronofy.listCalendars({ access_token: '{YOUR_TOKEN_HERE}'})
.then(function (response) {
console.log(response);
});
// Read events
var options = {
access_token: '{YOUR_TOKEN_HERE}',
tzid: 'Etc/UTC'
};
cronofy.readEvents(options)
.then(function (response) {
console.log(response);
});
// Create an event
var options = {
access_token: '{YOUR_TOKEN_HERE}',
event_id: "qTtZdczOccgaPncGJaCiLg",
summary: "Board meeting",
description: "Discuss plans for the next quarter.",
start: "2015-11-25T15:30:00Z",
end: "2015-11-25T17:00:00Z",
location: {
description: "Board room"
}
};
cronofy.createEvent(options)
.then(function (response) {
console.log(response);
});
Tell us what you think
We’d love to hear from you if you have any feedback on the Cronofy API generally or the Node.js code library in particular. Drop us an email or post on our public feedback portal.
If you need help, please email support@cronofy.com and we’ll get back to you as soon as we can.
Calendar integration with Node.js
It’s time to get started!
Jérémy Bourhis
Date: 25th November 2015 | Category: Cronofy, Developers