Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mrtomatolegit/patreon-webhooks

Patreon webhooks handler with caching and IntelliSense support
https://github.com/mrtomatolegit/patreon-webhooks

cache caching express expressjs intellisense intellisense-support patreon patreon-api webhook-server webhooks

Last synced: about 1 month ago
JSON representation

Patreon webhooks handler with caching and IntelliSense support

Awesome Lists containing this project

README

        

# Patreon Webhooks

A patreon webhook handler and cache manager

# Installation

```sh
npm i patreon-webhooks
```

# Example Usage

```js
const WEBHOOK_SECRET = 'insert webhook secret here';

const { Hub } = require('patreon-webhooks');
const hub = new Hub();

const express = require('express');
const app = express();

app.use('/webhooks/patreon', hub.webhooks(WEBHOOK_SECRET));

hub.on('memberCreate', member => console.log(member.id));

app.listen(80);
```

# License

This NPM module is under the MIT License\
Please refer yourself to the [LICENSE file](./LICENSE)