Getting events rotation
To get the events rotation you do:
- JavaScript
- ESM
client.rotation
.get({
timezone: 'Asia/Kolkata'
})
.then((rotation) => {
console.log(rotation);
})
.catch((error) => {
console.error(error);
});
await client.rotation.get({
timezone: 'Asia/Kolkata'
});
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.