@api.stream/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.31 • Public • Published

JavaScript SDK

JavaScript client for interacting with the API.stream Live, Layout and Event APIs. This SDK supports running in both a browser context and server side within NodeJS.

SDK Documentation

Getting started

npm install @api.stream/sdk

Creating an authentication token

import { ApiStream } from '@api.stream/sdk';

const client = new ApiStream({ apiKey: 'your-api-key' });

const credentials = await client.LiveAPI().backendAuthentication?.createAccessToken({
	serviceUserId: 'test-user',
});

await client.load(credentials.accessToken);

/@api.stream/sdk/

    Package Sidebar

    Install

    npm i @api.stream/sdk

    Homepage

    api.stream

    Weekly Downloads

    43

    Version

    1.0.31

    License

    MIT

    Unpacked Size

    2.51 MB

    Total Files

    80

    Last publish

    Collaborators

    • api.stream-bot
    • mkanter
    • hudbuddy
    • samirageb
    • luket