1.3.3 • Published 5 days ago
unipile-node-sdk v1.3.3
Unipile Node.js SDK
The Node.js SDK provides you tools to interact with Unipile’s API with ease. To have more informations about how Unipile’s API works and how to use it, please take a look at the following resources.
Requirements
Node 18 recommended
Installation
npm install unipile-node-sdk
Usage
import { UnipileClient } from 'unipile-node-sdk';
const client = new UnipileClient('https://{YOUR_DSN}', '{YOUR_ACCESS_TOKEN}');
//LINKEDIN
await client.account.connectLinkedin({
username: 'your LinkedIn username',
password: 'your LinkedIn password',
});
//INSTAGRAM
await client.account.connectInstagram({
username: 'your Instagram username',
password: 'your Instagram password',
});
//WHATSAPP
const { qrCodeString: whatsappQrCode } = await client.account.connectWhatsapp();
console.log(whatsappQrCode); // scan the QR code to finish the connection
//TELEGRAM
const { qrCodeString: telegramQrCode } = await client.account.connectTelegram();
console.log(telegramQrCode); // scan the QR code to finish the connection
//MESSENGER
await client.account.connectMessenger({
username: 'your Messenger username',
password: 'your Messenger password',
});
const chats = await client.messaging.getAllChats();
const messages = await client.messaging.getAllMessages();
const attendees = await client.messaging.getAllAttendees();
1.3.3
5 days ago
1.3.2
1 month ago
1.3.1
2 months ago
1.3.0
2 months ago
1.2.1
3 months ago
1.2.0
3 months ago
1.1.3
4 months ago
1.1.2
4 months ago
1.1.1
4 months ago
1.1.0
4 months ago
1.0.0
5 months ago
0.1.10
6 months ago
0.1.11
6 months ago
0.1.12
6 months ago
0.1.13
6 months ago
0.1.14
6 months ago
0.2.1
6 months ago
0.2.0
6 months ago
0.1.8
7 months ago
0.1.9
7 months ago
0.1.7
7 months ago
0.1.6
7 months ago
0.1.0
8 months ago