Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@555platform/555-calendar-sdk
Advanced tools
Calendar Library provides API'S to create calendar,events and reminders. A calendar is a container for events. These events can be single instance or repeating events. Repeating events will have ending time. Multiple calendars can be created per domain, for example, work and personal calendars. Events are associated with calendar type. Events can have reminders set on them.
npm install Calendar
Calendar Library provides API's to Create,Read,Update and delete calendar for user.
init API is used to initialize server URL. init accepts a config parameter. config is of type object, which should have a property config.URL
import {Calendar} from 'Calendar';
Calendar.init("config")
createCalendar API is used to create calendar for user. we need to pass username and calendarname as parameters.
import {Calendar} from 'Calendar';
Calendar.createCalendar("username", "calendarname")
createCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.createCalendar("Rahul","home").then(response => {
console.log(" Calendarlist Data ::",response)
}).catch(error => {
console.log("get calendarlist failed ::", error);
});
}
getCalendar API is used to get calendar details for user. we need to pass username as parameter.
import {Calendar} from 'Calendar';
Calendar.getCalendar("username")
getCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.getCalendar("Rahul").then(response => {
console.log(" Calendarlist Data ::",response)
}).catch(error => {
console.log("get calendarlist failed ::", error);
});
}
updateCalendar API is used to update calendar details for user. we need to pass calendarId and calendarName as parameters.
import {Calendar} from 'Calendar';
Calendar.updateCalendar("calendarid","calendarname")
updateCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.updateCalendar("1ea1f9d3b4a927b264c83c07", "home").then(response => {
console.log(" Calendarlist updateds ::",response)
}).catch(error => {
console.log("get calendarlist failed ::", error);
});
}
deleteCalendar API is used to delete calendar of user. we need to pass calendarId as parameter.
import {Calendar} from 'Calendar';
Calendar.deleteCalendar("calendarid")
deleteCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.deleteCalendar("1ea1f9d3b4a927b264c83c07").then(response => {
console.log(" Calendarlist updateds ::",response)
}).catch(error => {
console.log("get calendarlist failed ::", error);
});
}
Calendar Library provides API's to create,update,cancel and delete events in calendar for user.
createEvent API is used to create event in calendar for user. we need to pass eventData as parameter.
Below is the eventdata need to be passed as parameter to createEvent API.
Property | Type | Description |
---|---|---|
calendar_id | string | Unique calendar id |
subject | json |
|
start | json | start date and time of event
|
end | json | end date and time of event
|
location | string | location of calendar |
allow_new_time_proposals | bool | allow time to change |
show_as | string | state of user |
import {Calendar} from 'Calendar';
Calendar.createEvent({eventData})
createCalendar API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.createEvent(eventData).then((response) => {
console.log("create event response ::",response)
})
.catch(error => {
console.log(error);
})
updateEvent API is used to update event for user. we need to pass userid,eventid and update event info as parameter.
import {Calendar} from 'Calendar';
Calendar.updateEvent(userid,eventid,updatedEventInfo)
updateEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.updateEvent(userid,eventid,updatedEventInfo).then((response) => {
console.log("create event response ::",response)
})
.catch(error => {
console.log(error);
})
cancelEvent API is used to cancel event for user. we need to pass userid,eventid as parameter.
import {Calendar} from 'Calendar';
Calendar.cancelEvent(userid,eventid)
cancelEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.cancelEvent(userid,eventid).then((response) => {
console.log("create event response ::",response)
})
.catch(error => {
console.log(error);
})
deleteEvent API is used to delete event for user. we need to pass userid,eventid as parameter.
import {Calendar} from 'Calendar';
Calendar.deleteEvent(userid,eventid)
deleteEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.
Calendar.deleteEvent(userid,eventid).then((response) => {
console.log("create event response ::",response)
})
.catch(error => {
console.log(error);
})
FAQs
Calendar SDK for 555 Platform
The npm package @555platform/555-calendar-sdk receives a total of 0 weekly downloads. As such, @555platform/555-calendar-sdk popularity was classified as not popular.
We found that @555platform/555-calendar-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.