get-contact.js
TypeScript icon, indicating that this package has built-in type declarations

1.8.5 • Public • Published

This api unofficial from GetContact

npm

get-contact.js

A GetContact API gclient that connects through the GetContact Web browser app

It uses Puppeteer to run a real instance of GetContact Web to avoid getting blocked.

NOTE: I can't guarantee you will not be blocked by using this method, although it has worked for me. GetContact does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.

Installation

The module is now available on npm! npm i get-contact.js

Please note that Node v12+ is required.

Example usage

const { GClient } = require("get-contact.js");

const gclient = new GClient();

gclient.on("qr", (qr) => {
  // Generate and scan this code with your phone
  console.log("QR RECEIVED", qr);
});

gclient.on("ready", () => {
  console.log("Client is ready!");
});

gclient.initialize();

Take a look at example.js for another example with more use cases.

Reference

https://github.com/pedroslopez/whatsapp-web.js

Package Sidebar

Install

npm i get-contact.js

Weekly Downloads

1

Version

1.8.5

License

GPL-3.0 license

Unpacked Size

67.8 kB

Total Files

20

Last publish

Collaborators

  • ilhamridho04