go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

Overview

go-whatsapp-rest-API

go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

Multi-devices (MD) Support.

This version does NOT support multi-devices (MD)

Sessions

All sessions are stored in MYSQL

The API support the following

​/profile​/scanqr [Scan the QR code via the browser]
​/profile​/phone​/isconnected
​/profile​/phone​/connect
​/profile​/phone​/disconnect
​/profile​/logout
​/profile​/me
​/profile​/hook​/set
​/profile​/contacts
​/send​/ack​/read
​/send​/text
​/send​/location
​/send​/image
​/send​/video
​/send​/audio
​/send​/audiorecord
​/send​/vcard
​/send​/link
​/send​/doc

Web Hooks

/notify​/logout
/notify​/receive
/notify​/connectivity
/message​/text
/message​/image
/message​/video
/message​/audio
/message​/doc
/message​/contact
/power​/battery
/message​/location
/message​/livelocation

The API is built on go-whatsapp, but it does not support the MD right now, any PL is welcome

Prerequisites

Build:

  • Build it for x86 architecture and linux os
sh
cd wa-api
sh build.sh

Run:

  • Copy wa-api executable to your server
  • Copy static folder for docs
  • Change the url to point to deployement server in static/qrcode/index.js for qr to work
  • Create a MySql DB eg
mysql -u root -p
create database wapidb;

Run the server using pm2 with yout db user and password

pm2 start ./wa-api -- --port {Port Name} --dburl {DBUSER:[email protected]/DBNAME} --fromMe  --timeout 60
Eg :
pm2 start ./wa-api --  --dburl beshoo_wapidb:_5,[email protected]/beshoo_wapidb --fromMe  --timeout 60

Available Flags

Flag Function Default
port The port on which the server will run 3000
dburl Database access url The sytem will not persist any session
fromMe If the hook should recieve message from your own number false
timeout The time in seconds, API should wait before droping the connection while QR scan and session restored 5
You might also like...
Lol-champions-api - A REST API app for CRUD' ing informations related to League of Legends champions, written with Go

LOL-CHAMPIONS-API Just a REST API app for CRUD' ing informations related to Leag

Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK)

simples3 : Simple no frills AWS S3 Library using REST with V4 Signing Overview SimpleS3 is a golang library for uploading and deleting objects on S3 b

"there" also called "GoThere" aims to be a simple Go Library to reduce redundant code for REST APIs.

there "there" also called "GoThere" aims to be a simple Go Library to reduce redundant code for REST APIs. Despite the existence of the other librarie

Simples3 : Simple no frills AWS S3 Library using REST with V4 Signing

simples3 : Simple no frills AWS S3 Library using REST with V4 Signing Overview SimpleS3 is a golang library for uploading and deleting objects on S3 b

Go library to use the imgur.com API

go-imgur Go library to use the imgur.com API. At the moment only the anonymous part of the API is supported, but that is used in a production environm

Our library to use the sendcloud API endpoints in golang.

gosendcloud With this library it should be possible to interact with the endpoints of the sendcloud API via golang functions. Since we can not impleme

This package provides a Go interface for the Typeform API.

typeform This package provides a Go interface for the Typeform API

Go Twitter REST and Streaming API v1.1

go-twitter go-twitter is a Go client library for the Twitter API. Check the usage section or try the examples to see how to access the Twitter API. Fe

Golang client for PayPal REST API

Go client for PayPal REST API Coverage POST /v1/oauth2/token POST /v1/identity/openidconnect/tokenservice GET /v1/identity/openidconnect/userinfo/?sch

Comments
  • /api/profile/scanqr error 500

    /api/profile/scanqr error 500

    image image I can't see the qr code because I get this internal server error "error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}\n" I have no clue what is going on here, however if there is anything you want me to try just ask me I have changed de ip (localhost:3000) in the html file, but I think that's not related thanks in advance

    opened by gckopper 1
Owner
null
Whatsmeow is a Go library for the WhatsApp web multidevice API.

whatsmeow whatsmeow is a Go library for the WhatsApp web multidevice API. This was initially forked from go-whatsapp (MIT license), but large parts of

Tulir Asokan 576 Sep 23, 2022
WhatsApp Web API

go-whatsapp Package rhymen/go-whatsapp implements the WhatsApp Web API to provide a clean interface for developers. Big thanks to all contributors of

Lucas Engelke 1.8k Sep 26, 2022
Simple RESTful API for WhatsApp in Golang (using the Whatsmeow multi device library)

WUZAPI WuzAPI is an implementation of @tulir/whatsmeow library as a simple RESTful API service with multiple device support and concurrent sessions. W

Nicolas 10 Sep 22, 2022
Golang API for Whatsapp API MultiDevice version

Go Whatsapp API Multi Device Version Required Mac OS: brew install vips export C

Aldino Kemal 35 Sep 25, 2022
WhatsAppExpenseTracker - Way to track expenses using whatsapp group

WhatsAppExpenseTracker Way to track expenses using whatsapp group One needs to c

Randeep Sharma 0 Jan 4, 2022
Use Google REST api to extract your personal Photo Library

Photo Go A better approach to extracting your photos from Google to your personal cloud. I'm moving my photos out of Google to a Synology NAS. create

James 2 Dec 7, 2021
Utilcanvas is a package which provides some utilities to interface with the Canvas LMS Api.

Utilcanvas Utilcanvas is a package which provides some utilities to interface with the Canvas LMS Api. Example usage c := utilcanvas.NewClient("https:

Martín Zamorano 0 Oct 22, 2021
Invidtui - An invidious client, which fetches data from invidious and displays a user interface in the terminal(TUI)

invidtui invidtui is an invidious client, which fetches data from invidious and

null 72 Sep 24, 2022
Go library to interface with Solana JSON RPC and WebSocket interfaces

Solana SDK library for Go Go library to interface with Solana JSON RPC and WebSocket interfaces. Clients for Solana native programs, Solana Program Li

Dev Expert 1 Mar 2, 2022
Api-product - A basic REST-ish API that allows you to perform CRUD operations for Products

Description A basic REST-ish API that allows you to perform CRUD operations for

Abdul Salim 0 Jan 3, 2022