Package Exports
- saasify-sdk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (saasify-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
saasify-sdk
Client-side iframe embedding SDK for Saasify.
Note: this package is meant exclusively for embedding custom UI in your SaaS client's authenticated dashboard via an iFrame.
Install
npm install --save saasify-sdkUsage
Initialize the SDK within your project's iframe. The SDK will connect to the parent SaaS client window and expose all the information you need to build custom UI on top of your Saasify API for your authenticated users.
const SaasifySDK = require('saasify-sdk')
const sdk = new SaasifySDK({ projectId: 'dev/hello-world' })
await sdk.ready
console.log(sdk.deployment)
console.log(sdk.project)
console.log(sdk.consumer)
// call authenticated methods on your project's API
const { body } = await sdk.api.call({ url: '/endpoint', method: 'GET' })License
MIT © Saasify