# uptime-robot-api

> A library to interact with Uptime Robot API, written in ES6.

Latest version **1.0.5** (published 2015-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install uptime-robot-api
pnpm add uptime-robot-api
yarn add uptime-robot-api
bun add uptime-robot-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2015-07-31 |
| First published | 2015-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Luke van der Palen |
| Maintainers | lukevdpalen |
| Keywords | Uptime Robot, Uptime, Server monitoring, monitoring, es6, es2015, node, starter, kit, transpile, 6to5, babel |

## Links

- npm: https://www.npmjs.com/package/uptime-robot-api
- Repository: https://github.com/LukevdPalen/uptime-robot-api
- Homepage: https://github.com/LukevdPalen/git remote add origin https://github.com/LukevdPalen/uptime-robot-api.git
- Issues: https://github.com/LukevdPalen/uptime-robot-api/issues
- npm.io page: https://npm.io/package/uptime-robot-api

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^3.10.0
- [request](https://npm.io/package/request.md) ^2.60.0
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.34
- [uptime-robot](https://npm.io/package/uptime-robot.md) ^1.0.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2015-07-31
- 1.0.4 — 2015-07-31
- 1.0.3 — 2015-07-31
- 1.0.2 — 2015-07-31
- 1.0.1 — 2015-07-30
- 1.0.0 — 2015-07-30

## README

# Uptime Robot API
A library to interact with Uptime Robot API, written in ES6.

### Features

- CRUD Monitors
- CRUD Contacts

#### Fetching a list of monitors

```javascript
var Client = require('uptime-robot-api').Client;

var client = new Client('u19921-b47e987f*********');

client.list()
  .then(function(list){
    console.dir(list)
  });
```

#### Creating a new monitor

```javascript
var Client = require('uptime-robot-api').Client;
var Monitor = require('uptime-robot-api').Monitor;

var client = new Client('u19921-b47e987f*********');

var importantWebsiteMonitor = new Monitor({
  'friendlyname': 'Foo',
  'url': 'http://foo.bar'
});

client.create(importantWebsiteMonitor)
  .then(function(result){
    console.dir(result)
  });
```


#### Fetching a list of contacts

```javascript
var Client = require('uptime-robot-api').Client;
var Contact = require('uptime-robot-api').Contact;

var client = new Client('u19921-b47e987f*********');

client.list({}, Contact)
  .then(function(list){
    console.dir(list)
  });
```


#### Creating a new contact

```javascript
var Client = require('uptime-robot-api').Client;
var Contact = require('uptime-robot-api').Contact;

var client = new Client('u19921-b47e987f*********');

var person = new Contact({
  'friendlyname': 'Foo',
  'value': 'foo@bar.com'
});

client.create(person)
  .then(function(result){
    console.dir(result)
  });
```

---
_Source: https://npm.io/package/uptime-robot-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
