Skip to content

jvenema/liveswitch-cloud-console-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiveSwitch Cloud Console API

This project is a simple nodejs wrapper around the swagger API, to make it a little bit cleaner for use in application code.

Install it:

npm install @jvenema/liveswitch-cloud-console-api

Use it:

const liveswitchApi = require('@jvenema/liveswitch-cloud-console-api');

(async () => {
    const api = new liveswitchApi.liveswitchApi('api key goes here')
    const applications = await api.getApplications()
})();

I personally use it with my login project to get the user to log in, get an API key dynamically, and then grab the applications list:

const liveswitchApi = require('@jvenema/liveswitch-cloud-console-api');
const login = require('@jvenema/liveswitch-cloud-console-login');

(async () => {
    const loginResult = await login()
    const api = new liveswitchApi.liveswitchApi(loginResult.apiKey)
    const applications = await api.getApplications()
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •