fix(docs): correct webhook SDK package name (#363)
This commit is contained in:
@@ -126,19 +126,19 @@ HMAC-SHA256(secret, "${timestamp}.${rawBody}")
|
|||||||
|
|
||||||
<CodeGroup>
|
<CodeGroup>
|
||||||
```bash npm
|
```bash npm
|
||||||
npm install usesend
|
npm install usesend-js
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash yarn
|
```bash yarn
|
||||||
yarn add usesend
|
yarn add usesend-js
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash pnpm
|
```bash pnpm
|
||||||
pnpm add usesend
|
pnpm add usesend-js
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash bun
|
```bash bun
|
||||||
bun add usesend
|
bun add usesend-js
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeGroup>
|
</CodeGroup>
|
||||||
@@ -146,7 +146,7 @@ bun add usesend
|
|||||||
### Next.js App Router
|
### Next.js App Router
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { UseSend } from "usesend";
|
import { UseSend } from "usesend-js";
|
||||||
|
|
||||||
const usesend = new UseSend("us_your_api_key");
|
const usesend = new UseSend("us_your_api_key");
|
||||||
const webhooks = usesend.webhooks(process.env.USESEND_WEBHOOK_SECRET!);
|
const webhooks = usesend.webhooks(process.env.USESEND_WEBHOOK_SECRET!);
|
||||||
@@ -182,7 +182,7 @@ export async function POST(request: Request) {
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import express from "express";
|
import express from "express";
|
||||||
import { Webhooks } from "usesend";
|
import { Webhooks } from "usesend-js";
|
||||||
|
|
||||||
const webhooks = new Webhooks(process.env.USESEND_WEBHOOK_SECRET!);
|
const webhooks = new Webhooks(process.env.USESEND_WEBHOOK_SECRET!);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user