Socket
Socket
Sign inDemoInstall

@ubstream/ubstream-node-client-sdk

Package Overview
Dependencies
2
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ubstream/ubstream-node-client-sdk

Ubstream developer API Node.JS client SDK


Version published
Weekly downloads
4
Maintainers
6
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 13 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc