Pitcher APP SDK
Installation
$ yarn add @pitcher/app-sdk
or
$ npm install @pitcher/app-sdk
Usage
import { usePitcherAPI } from '@pitcher/app-sdk'
const pitcher = usePitcherAPI()
// low level api
const env1 = await pitcher.API.request('getEnv')
// high level api
const env2 = await pitcher.getEnv()
// events
pitcher.on('envChanged', (env) => {
console.log('env changed', env)
})
Documentation
https://pitcher-ag.atlassian.net/wiki/spaces/PG/pages/334530467/JS+APP+SDK
For more API endpoint definitions:
https://pitcher-ag.atlassian.net/wiki/spaces/PG/pages/317260517/JS+API+for+Impact+NG+Specification