@thg-altitude/sdk
v0.0.20
Published
An SDK for the Altitude platform.
Downloads
3,569
Readme
Altitude SDK
An SDK for the Altitude platform.
Setup In Your Project
Simply run
npm i @thg-altitude/sdk
or
yarn add @thg-altitude/sdk
Using this in your project
You will need to initialise an instance of Altitude inside your project, using a client Id and secret obtained from the altitude platform site.
import { Altitude } from '@thg-altitude/sdk';
const altitude = new Altitude({
clientId: client_id,
clientSecret: secret_key,
});
You can then perform such commands as
altitude.getAllSites(), altitude.deploy({branch: string}, siteId) etc
to deploy your sites.
Documentation
You can find a full list of possible methods and documentation for this package at https://thg-headless.github.io/sdk.