Skip to content

Messembed/node-messembed-sdk

Repository files navigation

Messembed Node.js SDK

Messembed Logo

Installation

npm install --save messembed-sdk

or

yarn add messembed-sdk

Usage

Client 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

Admin SDK

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