{"id":15147085,"url":"https://github.com/ben221199/wapi","last_synced_at":"2025-07-21T16:35:43.036Z","repository":{"id":45770831,"uuid":"160975485","full_name":"ben221199/WAPI","owner":"ben221199","description":"The WhatsApp API","archived":false,"fork":false,"pushed_at":"2024-09-19T16:21:14.000Z","size":789,"stargazers_count":88,"open_issues_count":10,"forks_count":54,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-08T08:08:52.361Z","etag":null,"topics":["curve25519","java","json","libsignal","maven","noiseprotocol","whatsapp","xmpp"],"latest_commit_sha":null,"homepage":"https://github.com/ben221199/WAPI","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ben221199.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-08T20:21:31.000Z","updated_at":"2025-02-14T07:32:34.000Z","dependencies_parsed_at":"2024-09-21T19:01:39.329Z","dependency_job_id":null,"html_url":"https://github.com/ben221199/WAPI","commit_stats":{"total_commits":92,"total_committers":4,"mean_commits":23.0,"dds":0.08695652173913049,"last_synced_commit":"243f575a89fa114646e744f9239b7badbfebf025"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ben221199/WAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben221199%2FWAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben221199%2FWAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben221199%2FWAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben221199%2FWAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ben221199","download_url":"https://codeload.github.com/ben221199/WAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben221199%2FWAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266335190,"owners_count":23913122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curve25519","java","json","libsignal","maven","noiseprotocol","whatsapp","xmpp"],"created_at":"2024-09-26T12:22:13.486Z","updated_at":"2025-07-21T16:35:43.013Z","avatar_url":"https://github.com/ben221199.png","language":"Java","readme":"# WAPI - The WhatsApp API\n\nConnect your project to WhatsApp!\n\n## Installation\n\nFirst, add the JitPack repository to your POM:\n```xml\n\u003crepository\u003e\n\t\u003cid\u003ejitpack.io\u003c/id\u003e\n\t\u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\n\nThen, add the following dependency to your POM:\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.ben221199\u003c/groupId\u003e\n\t\u003cartifactId\u003eWAPI\u003c/artifactId\u003e\n\t\u003cversion\u003emaster\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### Verification\n\n```java\nimport nl.ben221199.wapi.Verification;\n\npublic class VerificationExample{\n\n\tpublic static void main(String... args){\n\t\tString userAgent = \"\";\n\t\tboolean encrypted = true;\n\n\t\t//Check if account already exists\n\t\tString[] existParams = {};\n\t\tVerification.exist(userAgent,encrypted,existParams);\n\n\t\t//Request code\n\t\tString[] codeParams = {};\n\t\tVerification.code(userAgent,encrypted,codeParams);\n\n\t\t//Register account using code\n\t\tString[] registerParams = {};\n\t\tVerification.register(userAgent,encrypted,registerParams);\n\t}\n\n}\n```\n\n### Connection\n```java\nimport com.whatsapp.proto.WA4Protos;\nimport java.security.KeyPair;\nimport java.security.PublicKey;\nimport nl.ben221199.wapi.Connection;\n\npublic class ConnectionExample{\n\n\tpublic static void main(String... args){\n\t\t//Connection arguments\n\t\tbyte[] edge_routing_info = null;\n\t\tKeyPair client_static_keypair = null;\n\t\tPublicKey server_static_key = null;\n\t\tWA4Protos.ClientPayload payload = null;\n\n\t\t//Create connection\n\t\tConnection conn = new Connection(\"g.whatsapp.net\",443)\n\t\t\t.setEdgeRoutingInfo(edge_routing_info)\n\t\t\t.setS(client_static_keypair)\n\t\t\t.setRS(server_static_key)\n\t\t\t.setPayload(payload);\n\n\t\t//Start connection\n\t\tconn.start();\n\n\t\t//Get IO\n\t\tFunInputStream in = conn.getInputStream();\n\t\tFunOutputStream out = conn.getOutputStream();\n\t}\n\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben221199%2Fwapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fben221199%2Fwapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben221199%2Fwapi/lists"}