string-sdk
Version:
JavaScript/TypeScript client for the String SmartLink platform (Context OS)
28 lines (21 loc) • 577 B
Markdown
# @contextos/string-sdk
Typed client for the SmartLink / Context-OS APIs.
## Install
```bash
npm install string-sdk cross-fetch
```
## Quick start
```ts
import { SmartLinkClient } from "string-sdk";
const client = new SmartLinkClient({
apiKey: process.env.STRING_API_KEY,
});
const cards = await client.smartCards.search({ query: "example" });
console.log(cards);
```
## Available helpers (v0.2.0)
- `smartCards.search({ query })`
- `smartCards.get(id)`
- `smartLinks.create(payload)`
- `smartLinks.update(id, payload)`
> More endpoints coming soon — see CHANGELOG.