@algoan/connect
Library for Algoan Connect
Installation
<script type="text/javascript" src="https://js.algoan.com/connect/algoan-connect.js"></script>
npm install @algoan/connect
Basic usage
Place a div with the id algoan-connect
where you want the button to appear:
<div id="algoan-connect"></div>
Then, you can invoke the Algoan Connect library:
- If you are using the script:
<script>
AlgoanConnect.addWidget({ apiKey: '<Your API key>', partnerId: '<Your unique user identifier>' });
</script>
- If you are using the package:
import { addWidget } from '@algoan/connect';
addWidget({ apiKey: '<Your API key>', partnerId: '<Your unique user identifier>' });
Configuration
It is possible to configure some aspect of the Algoan Connect button. You can refer to the config file for the list of every configuration possible.
Contributing
Install
npm install
Build
npm run build
Compile
npm run compile
Development server
npm run dev
This command will start a webserver listening at http://localhost:3002/
. It will serve the dev/dev-server-template.html
file with the library already injected.