@ubstream/ubstream-node-client-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.0.12 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.123latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.123
2.0.111
2.0.100
2.0.91
2.0.80
2.0.60
2.0.30
2.0.21
2.0.10
1.1.01
1.0.20
1.0.11
1.0.01

Package Sidebar

Install

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

Weekly Downloads

9

Version

2.0.12

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

631 kB

Total Files

92

Last publish

Collaborators

  • gunnoz
  • p.odin
  • c.foucault
  • s.berthier
  • adminbee