0.4.1 • Published 5 years ago
@angoralabs/angora-js v0.4.1
Angora
JavaScript SDK
Installation
npm install @angoralabs/angora-jsor
yarn add @angoralabs/angora-jsUsage
init
At the index.js, import angora from @angoralabs/angora-js and call the init function.
import React from 'react';
import ReactDOM from 'react-dom';
import angora from '@angoralabs/angora-js';
import App from './App';
angora.init(
'OGIyZTJmNGEtMzc4OS01NGE3LTg4ZTctZGJjMmVkZDU1MjdjOjIxODE4NzhmOGExNWEyM2YxOTI4MzFiMGEwYzRjZmUzZDFhNjIxNDM=',
);
ReactDOM.createRoot(document.getElementById('root')).render(<App />);The init function expects the token, which is your app key and can be found on the integration session.
Contributing
Not available yet.
License
MIT