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

2.0.11 • 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

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

1

Version

2.0.11

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

631 kB

Total Files

90

Last publish

Collaborators

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