An open API service indexing awesome lists of open source software.

https://github.com/hyperlink/pushover

Pushover.net client written in TypeScript
https://github.com/hyperlink/pushover

Last synced: over 1 year ago
JSON representation

Pushover.net client written in TypeScript

Awesome Lists containing this project

README

          

# Pushover Client

A simple lightweight client for Pushover notifications.

# Installation

```bash
npm install @hyperlink/pushover
```

# Usage

```typescript
import { Pushover } from '@hyperlink/pushover';

async function sendMessage() {
const pushover = new Pushover('', '');
await pushover.sendMessage({
message: 'Test message',
title: 'Test title',
});
}

sendMessage();
```

### Message Format

```typeScript
interface PushoverMessage {
message: string;
title?: string;
sound?: string;
device?: string;
priority?: number;
url?: string;
url_title?: string;
attachment?: string; // path to the file
timestamp?: string;
}
```