
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
schedulerapi-js
Advanced tools
A Javascript / Typescript SDK for the www.schedulerapi.com service.
A lightweight library and rapid way to add the www.schedulerapi.com service into your Javascript / Typescript / Node projects.
The recommended way to install the SchedulerAPI SDK is through npm
or Yarn
.
npm:
npm install schedulerapi-js
yarn:
yarn add schedulerapi-js
You will need an API key from the www.schedulerapi.com service.
If you want to schedule SQS events you will want to create a user in your AWS account and provide that user ONLY access to publish messages into the SQS queue. Make sure you ONLY provide that access for that user. An example policy might be this:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:region:accountID:queueName"
}
]
}
To schedule an event you need to call the scheduleSqs
function with the information you want to schedule.
const s = new Scheduler({ key: SCHEDULER_API_KEY });
const results = await s.scheduleSqs({
when: new Date('2020-08-24 20:13:00'),
url: YOUR_SQS_QUEUE_URL,
body: 'THE_BODY_OF_YOUR_SQS_MESSAGE'
});
console.log(results);
output:
{
"id": "cLzxqmLKAEc2Tf2YzKRZW",
"when": "2020-08-24 20:13:00",
"now": "2020-08-24 20:11:35",
"user": "CkM2xwzjvxjGhWeiMFWy9s"
}
To schedule an event you need to call the scheduleWebhook
function with the information you want to schedule.
const s = new Scheduler({ key: SCHEDULER_API_KEY });
const results = await s.scheduleWebhook({
when: new Date('2020-08-24 20:13:00'),
url: YOUR_URL,
method: 'get', // or 'post' or 'GET' or 'POST'
body: 'REQUEST_BODY' // typically used for POST
});
console.log(results);
output:
{
"id": "FiGGCz8BMieyuRXPVtKLFT",
"when": "2020-08-24 20:13:00",
"now": "2020-08-24 20:11:35",
"user": "CkM2xwzjvxjGhWeiMFWy9s"
}
To update a previously scheduled event you need to call the updateSqs
function with the id
of the event you want to change. When you update an event you need to re-send all of the information along with the event. If you do not have it you can obtain it from a call to getStatus
.
const s = new Scheduler({ key: SCHEDULER_API_KEY });
const results = await s.updateSqs({
id: 'cLzxqmLKAEc2Tf2YzKRZW',
<<<<<<< HEAD
when: new Date('2020-08-24 20:13:00'),
=======
when: new Date('2020-08-24 22:13:00'),
>>>>>>> 4bf3364b2dba18d04ebf80f566d0b3475c8b0af9
url: YOUR_SQS_QUEUE_URL,
body: 'THE_BODY_OF_YOUR_SQS_MESSAGE'
});
console.log(results);
output:
{
"id": "cLzxqmLKAEc2Tf2YzKRZW",
"when": "2020-08-24 22:13:00",
"now": "2020-08-24 20:11:35",
"user": "CkM2xwzjvxjGhWeiMFWy9s"
}
To update a previously scheduled event you need to call the updateWebhook
function with the id
of the event you want to change. When you update an event you need to re-send all of the information along with the event. If you do not have it you can obtain it from a call to getStatus
.
const s = new Scheduler({ key: SCHEDULER_API_KEY });
const results = await s.updateWebhook({
id: 'FiGGCz8BMieyuRXPVtKLFT',
when: new Date('2020-08-24 20:13:00'),
url: YOUR_URL,
method: 'get', // or 'post' or 'GET' or 'POST'
body: 'REQUEST_BODY' // typically used for POST
});
console.log(results);
output:
{
"id": "FiGGCz8BMieyuRXPVtKLFT",
"when": "2020-08-24 22:13:00",
"now": "2020-08-24 20:11:35",
"user": "CkM2xwzjvxjGhWeiMFWy9s"
}
Tests are executed via Jest.
npm run test
FAQs
A Javascript / Typescript SDK for the www.schedulerapi.com service.
The npm package schedulerapi-js receives a total of 0 weekly downloads. As such, schedulerapi-js popularity was classified as not popular.
We found that schedulerapi-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.