1.23.0 • Published 7 days ago

@signageos/sdk v1.23.0

Weekly downloads
116
License
MIT
Repository
github
Last release
7 days ago

SDK Library

Library which allows you to fully manage signageOS applets, devices, management & monitoring using JS.

Installation and prerequisities

npm install @signageos/sdk

Environment variables

Mandatory ENV variables:

  • SOS_API_URL="https://api.signageos.io"
  • SOS_AUTH_CLIENT_ID="OAuthClientID"
  • SOS_AUTH_SECRET="OAuthSecret"
  • SOS_API_IDENTIFICATION="apiAccountID"
  • SOS_API_SECURITY_TOKEN="apiAccountSecret"

You may visit the documentation https://docs.signageos.io/api#rest-api-authentication where you find out how to get the proper values.

Please see the .env.dist file where all mandatory ENV variables, required for SDK usage, are listed too.

REST API

Just by setting ENV variables properly, you are ready to go and may usage the api.

import {api} from "@signageos/sdk";

// retrieves the list of all devices
const devices = await api.device.list();

// retrieves the device info
const deviceInfo = await api.device.get('deviceUid');

// sets the device volume
await api.device.audio.set('deviceUid', {volume: 40});

// retrieves the list of all applets
const applets = await api.applet.list();

// ...

Documentation

The complete SDK documentation may be generated by typedoc by running the command:

$ npm i && npm run docs

Once generated, the docs directory will contain the generated documentation.

The most useful documentation pages:

Development

Running the tests

This SDK library contains several unit and integration tests, You may locate inside the sdk root directory and run npm run test command.

If you properly configured all the mandatory environment variables either in .env file inside the sdk root or on your machine, and you set
the integration tests will be launched too. Otherwise only unit test would be run and integrations tests would be skipped.

Tip: you may use existing .env.dist file for creating the .env.

1.23.0

7 days ago

1.23.1-rc.0

7 days ago

1.22.0

3 months ago

1.21.2

3 months ago

1.21.1

9 months ago

1.20.0

10 months ago

1.19.0

1 year ago

1.19.2

1 year ago

1.19.1

1 year ago

1.18.0

1 year ago

1.17.1

1 year ago

1.17.0

1 year ago

1.16.1

1 year ago

1.15.0

2 years ago

1.16.0

1 year ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.9.0

2 years ago

1.10.0

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.7.0

3 years ago

1.6.4

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.1-beta.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-alpha.1

5 years ago