GithubHelp home page GithubHelp logo

ferriprasetya / whatsapp-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

WhatsApp web API that allow you to sign in WhatsApp using QR Code and send message using API

HTML 55.92% JavaScript 44.08%

whatsapp-api's Introduction

Whatsapp API

WhatsApp Chatbot with Node.js and Whatsapp.js

REFERENCE

Installation

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Development Server

Start the development server on http://localhost:8000:

Or you can edit this line of code to change port

// initial instance
const PORT = process.env.PORT || 8000;

How it works?

  1. After installation, run the app with
# npm
npm run start

# pnpm
pnpm run start

# yarn
yarn start
  1. Wait until QR code shown at http://localhost:8000 and scan with your phone to login whatsapp
  2. To send message, use this CURL. Modify phone for target phone number and message for message you want to send
curl --location 'http://localhost:8000/send' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "[email protected]",
    "message": "Test Send Message"
}'

whatsapp-api's People

Contributors

ferriprasetya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.