Code Monkey home page Code Monkey logo

whatsapp-direct-messaging-api's Introduction

Whatsapp Direct Messaging API

This API allows user to create a link to their whatsapp account without the needs to save the phone number. Using it on the desktop will start a conversation using Whatsapp Web while on mobile Whatsapp will automatically open and start a conversation.

It's more like 'Click to Whatsapp' thingy or maybe 'Surf to Whatsapp'. Have fun!

You can also use the official one below.

Features

  1. You can use your own domain.
  2. No more saving phone number just to start a conversation.
  3. Directly open whatsapp application using web for desktop and app for mobile (the official api doesn't do this, will ask the user to click send button).

Installation

Local

$ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API.git
$ yarn install
$ yarn start

Use NPM if Yarn is not available on your system. Replace yarn to npm when executing the command.

Heroku

Deploy

API

http://<domain>/<phonenum>

Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp. No message included.

http://<domain>/<phonenum>/<message>

Directly open whatsapp to respective phone number. Message is automatically included.

http://<domain>/whatsapp

Directly open whatsapp and start conversation using predefined phone number. Go to app.js line 72 to change the phone number.

Example

http://localhost:5000/60123456789
http://localhost:5000/60123456789/Hello!

Phone number must include the country code without '+' symbol.

Compatibility

OS Browser Status
Windows 10 Google Chrome Success
Android 4.4.4 Google Chrome Success

Specification

  • Node.js - v4.8.0+
  • Express - v4.15.2

This project was tested using Node.js v6.10.0

Official Whatsapp 'Click to Chat' API

api.whatsapp.com/send?phone=<phonenum>&text=<text>

License

Whatsapp Direct Messaging API is licensed under The MIT License. Please refer to the license file for more information.

whatsapp-direct-messaging-api's People

Contributors

amizz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whatsapp-direct-messaging-api's Issues

number

how to write number Eg. My country is India, do i need to attach the country code +91 with phone number

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.