GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ben221199/WAPI: The WhatsApp API

BranchesTags
Open more actions menu

Latest commit

 

History

97 Commits
97 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
configs
configs
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

WAPI - The WhatsApp API

Connect your project to WhatsApp!

Installation

First, add the JitPack repository to your POM:

<repository>
	<id>jitpack.io</id>
	<url>https://jitpack.io</url>
</repository>

Then, add the following dependency to your POM:

<dependency>
	<groupId>com.github.ben221199</groupId>
	<artifactId>WAPI</artifactId>
	<version>master</version>
</dependency>

Usage

Verification

import nl.ben221199.wapi.Verification;

public class VerificationExample{

	public static void main(String... args){
		String userAgent = "";
		boolean encrypted = true;

		//Check if account already exists
		String[] existParams = {};
		Verification.exist(userAgent,encrypted,existParams);

		//Request code
		String[] codeParams = {};
		Verification.code(userAgent,encrypted,codeParams);

		//Register account using code
		String[] registerParams = {};
		Verification.register(userAgent,encrypted,registerParams);
	}

}

Connection

import com.whatsapp.proto.WA4Protos;
import java.security.KeyPair;
import java.security.PublicKey;
import nl.ben221199.wapi.Connection;

public class ConnectionExample{

	public static void main(String... args){
		//Connection arguments
		byte[] edge_routing_info = null;
		KeyPair client_static_keypair = null;
		PublicKey server_static_key = null;
		WA4Protos.ClientPayload payload = null;

		//Create connection
		Connection conn = new Connection("g.whatsapp.net",443)
			.setEdgeRoutingInfo(edge_routing_info)
			.setS(client_static_keypair)
			.setRS(server_static_key)
			.setPayload(payload);

		//Start connection
		conn.start();

		//Get IO
		FunInputStream in = conn.getInputStream();
		FunOutputStream out = conn.getOutputStream();
	}

}

About

The WhatsApp API

github.com/ben221199/WAPI

Topics

curve25519javajsonlibsignalmavennoiseprotocolwhatsappxmpp

Resources

Readme
GPL-3.0 license

Security policy

Security policy
Activity

Stars

96 stars

Watchers

7 watching

Forks

55 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.