Skip to main content

Getting events rotation

To get the events rotation you do:

client.rotation
.get({
timezone: 'Asia/Kolkata'
})
.then((rotation) => {
console.log(rotation);
})
.catch((error) => {
console.error(error);
});
note

The timezone is optional. If you don't pass it, the timezone will be set to UTC. You can read more about this at the RotationOptions page.