@thingd/client 0.83.1 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ import { ThingdClient } from "@thingd/client";
|
|
|
7
7
|
|
|
8
8
|
const client = new ThingdClient({
|
|
9
9
|
url: "https://api.thingd.cloud",
|
|
10
|
-
authToken: "
|
|
10
|
+
authToken: "md_pk_...",
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
await client.put("notes", { id: "1", text: "Hello world" });
|
|
@@ -26,7 +26,9 @@ npm install @thingd/client
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
Connect to any thingd instance — local sidecar, Docker, or thingd.cloud
|
|
29
|
+
Connect to any thingd instance — local sidecar, Docker, or thingd.cloud. A
|
|
30
|
+
local runtime token and a Cloud project API key are both sent as Bearer
|
|
31
|
+
credentials, but they are issued and managed by different systems:
|
|
30
32
|
|
|
31
33
|
```ts
|
|
32
34
|
const client = new ThingdClient({
|
|
@@ -160,7 +162,7 @@ Connect to thingd Cloud using a project-scoped API key:
|
|
|
160
162
|
```ts
|
|
161
163
|
const client = new ThingdClient({
|
|
162
164
|
url: "https://api.thingd.cloud",
|
|
163
|
-
authToken: "
|
|
165
|
+
authToken: "md_pk_...",
|
|
164
166
|
});
|
|
165
167
|
```
|
|
166
168
|
|