npm install --save messembed-sdk
or
yarn add messembed-sdk
import { MessembedSDK } from 'messembed-sdk'
const messembedSdk = new MessembedSDK({
baseUrl: '<URL to the Messembed service>', // required
accessToken: '<access token for your user>', // required
});
For the list of methods look at the documentation: https://docs.messembed.com/api/client-api
import { MessembedAdminSDK } from 'messembed-sdk'
const messembedSdk = new MessembedAdminSDK({
baseUrl: '<URL to the Messembed service>', // required
username: '<any non-empty string that describes your service>', // required
password: '<the admin password>', // required
});
For the list of methods look at the documentation: https://docs.messembed.com/api/server-api/node.js-sdk