Install TypeScript SDK

The Social Plus SDK for TypeScript is delivered as an npm module.

Installation

Add the SDK to your repository with this code:

npm:

npm install @amityco/ts-sdk --save

yarn:

yarn add @amityco/ts-sdk

Getting Started

The very first thing to do once you have installed the SDK, is to creating an instance of the client and logging in.

Once the client has been instantiated and you are logged in. You can now use API's to create a channel, message, community, and posts!

Browser Support

  • Chrome: 38+

  • Firefox: 42+

  • Microsoft Edge: 13+

  • Safari: 9+

  • Opera: 25+

Since Social Plus Web SDK uses local cache for performance and user experience reasons, server-side rendering is not supported. To use Social Plus Web SDK with NextJS, Social Plus Web SDK must be imported using Dynamic Import with SSR disabled.

React Native Framework

Use our TypeScript SDK natively to support your applications built using the React Native framework.

To support older JavaScript runtime, you need to include a global polyfill for your bundled package.

First, install core-js in your project.

npm install core-js

Then, import fromEntries in the root of your project.

import 'core-js/features/object/from-entries';

You can check out our React Native sample application here.

Last updated

Was this helpful?