2.0.12 • Published 8 months ago

@ubstream/ubstream-node-client-sdk v2.0.12

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
8 months ago

Ubstream Node.JS client SDK

Installation

npm install @ubstream/ubstream-node-client-sdk

Usage

Create a client instance

const client = new UbstreamClient();

Note: by default, the API url is https://developer.ubstream.com/api/v1 but it is possible to connect to other Ubstream instance:

const client = new UbstreamClient({
    apiUrl: "https://developer.ubstream.ch/api/v1"
});

Login

await client.session.login('username', 'password');

Note: Refresh token is automatically managed

Consume API endpoints examples

// list ubstream hub's collections
const result = await client.libraries.collections.listAllCollections("library_id");
const collections = result.$resources;

// upload a new media
const media = await client.medias.uploadMedia("library_id", "collection_id", formData);

Ubstream API documentation

API documentation

Node SDK reference

SDK reference

2.0.12

8 months ago

2.0.11

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

0.0.1

2 years ago

2.0.7

2 years ago

2.0.6

3 years ago

2.0.3

3 years ago

2.0.2

4 years ago

1.1.0

4 years ago

2.0.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago