Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Created May 2, 2022 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save birinder-lobana/2efba7144958903108fa53a198cddd26 to your computer and use it in GitHub Desktop.
Save birinder-lobana/2efba7144958903108fa53a198cddd26 to your computer and use it in GitHub Desktop.
Use this code to connect to the Openscreen node sdk
const { Openscreen } = require("@openscreen/sdk");
require('dotenv').config();
const os = new Openscreen().config({key: process.env.OS_API_KEY, secret: process.env.OS_API_SECRET});
// Input the project ID that you received in the Openscreen dashboard as a string, your project ID should look similar to the one provided below
const projectId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment