You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-14Lines changed: 27 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# Rewrite Node SDK
4
4
5
-
[`@rewritetoday/sdk`](https://www.npmjs.com/package/@rewritetoday/sdk), the official Node.js/TypeScript SDK for the Rewrite API.
5
+
[`@rewritetoday/sdk`](https://docs.rewritetoday.com/en/sdks/node), the official Node.js/TypeScript SDK for the Rewrite API.
6
6
7
7
It wraps authentication, typed REST calls, and resource helpers on top of [`@rewritetoday/rest`](https://www.npmjs.com/package/@rewritetoday/rest) and [`@rewritetoday/types`](https://www.npmjs.com/package/@rewritetoday/types).
8
8
@@ -20,29 +20,25 @@ bun add @rewritetoday/sdk
20
20
npm install @rewritetoday/sdk
21
21
# Or
22
22
pnpm add @rewritetoday/sdk
23
-
# Or
24
-
yarn add @rewritetoday/sdk
25
23
```
26
24
27
25
<divalign="center">
28
26
29
-
## Quick Start
27
+
## Setup
28
+
29
+
First, you need to create an API key in the [Rewrite Dashboard](https://dash.rewritetoday.com/api-keys) and use it in the constructor.
You can view in our [documentation](https://docs.rewritetoday.com/api-reference/messages/send-a-message) everything in you can use when sending a message.
83
+
71
84
## Error Handling
72
85
73
86
Requests run through `@rewritetoday/rest`. HTTP failures can throw `HTTPError`.
0 commit comments