1.1.3 • Published 1 year ago

beew v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
1.1.3

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago