Socket
Book a DemoInstallSign in
Socket

beew

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beew

The simplest way of scheduling HTTP requests

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

Welcome to beew 👋

The simplest way of scheduling HTTP requests

  • Pick a common schedule or use UNIX-CRON schedule expression.
  • Schedule a request for a specific date.
  • Schedule your request in any timezone.
  • Register logs of your requests and responses.
  • Receive a email notification every time one of your requests fails

Install

npm install --save beew

Create a Beew Account

You need to have a Beew account to create schedules. Go to app.beew.io and sign up.

Usage with Typescript

import { Beew, ScheduleMethod, ScheduleResponseType, ScheduleType } from "beew";

/*
 * You can find your Beew secret in the Beew dashboard.
 * https://app.beew.io/en/settings/api
 */
const client = new Beew({ secret: "YOU_API_KEY_HERE" });

client.schedule.create({
  name: "test",
  cronExpression: "* * * * *",
  url: "https://beew.io/api/v1/health/ok",
  notifyOnError: false,
  headers: [],
  payload: JSON.stringify({}),
  timezone: "America/Sao_Paulo",
  method: ScheduleMethod.GET,
  responseType: ScheduleResponseType.JSON,
  type: ScheduleType.RECURRING,
});

Here is a list of all available methods:

MethodDescription
client.schedule.create(args)Create a new schedule
client.schedule.update(args)Update schedule
client.schedule.get('schedule_id')Get schedule by id
client.schedule.delete('schedule_id')Delete schedule
client.execution.get('execution_id')Get execution by id

Keywords

beew

FAQs

Package last updated on 09 Dec 2022

Did you know?

Socket

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.

Install

Related posts