From 0d5107175ac67e71129d3664432f40605e366223 Mon Sep 17 00:00:00 2001 From: bardonadam Date: Sat, 7 Feb 2026 10:35:40 +0100 Subject: [PATCH] docs: use activitysmith variable name in README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f01fba2..1eedb28 100644 --- a/README.md +++ b/README.md @@ -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 }); ``` @@ -39,7 +39,7 @@ CommonJS: ```js const ActivitySmith = require("activitysmith"); -const client = new ActivitySmith({ +const activitysmith = new ActivitySmith({ apiKey: process.env.ACTIVITYSMITH_API_KEY, }); ``` @@ -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.