@plunk/node
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@plunk/node", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Official Node.js library for useplunk.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -36,8 +36,14 @@ # Plunk Node.js | ||
##### Parameters | ||
- String, the email of the lead you want to look up | ||
- `event`: The name of the event to publish | ||
- `email`: The email address of the user to publish the event to | ||
- `data` [Optional]: An object containing the data to attach to the user | ||
```ts | ||
const success = await plunk.events.publish({ | ||
event: "new-project", | ||
email: "hello@useplunk.com" | ||
event: "new-project", | ||
email: "hello@useplunk.com", | ||
data: { | ||
company: "Plunk" | ||
} | ||
}); | ||
``` |
7998
48