Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ ESM:
```ts
import ActivitySmith from "activitysmith";

const client = new ActivitySmith({
const activitysmith = new ActivitySmith({
apiKey: process.env.ACTIVITYSMITH_API_KEY,
});

// Push Notifications
await client.notifications.send({
await activitysmith.notifications.send({
// See PushNotificationRequest for fields
});

// Live Activities
await client.liveActivities.start({
await activitysmith.liveActivities.start({
// See LiveActivityStartRequest for fields
});
```
Expand All @@ -39,7 +39,7 @@ CommonJS:
```js
const ActivitySmith = require("activitysmith");

const client = new ActivitySmith({
const activitysmith = new ActivitySmith({
apiKey: process.env.ACTIVITYSMITH_API_KEY,
});
```
Expand All @@ -48,8 +48,8 @@ const client = new ActivitySmith({

The client exposes grouped resources:

- `client.liveActivities`
- `client.notifications`
- `activitysmith.liveActivities`
- `activitysmith.notifications`

Each method is fully typed. Request and response types are included in the type definitions.

Expand Down