Easyzap é uma implementação da biblioteca whatsmeow como um serviço REST simples, com suporte a múltiplos dispositivos e sessões simultâneas.
Easyzap oferece uma API completa para interagir com o WhatsApp de forma eficiente, sem uso de recursos pesados como Puppeteer ou emuladores Android.
Comunicação direta com os servidores do WhatsApp via websocket, reduzindo consumo de memória e CPU.
Suporte a vários dispositivos e usuários simultaneamente na mesma instância.
Envie texto, imagens, áudios, documentos, vídeos, figurinhas, localização e contatos.
Configure webhooks para receber notificações em tempo real de eventos e mensagens.
Verifique se números possuem WhatsApp e obtenha informações de perfil.
Sistema de token para autenticação fácil e segura.
Easyzap oferece diversos endpoints para interagir com o WhatsApp, organizados por categoria.
Veja como é simples utilizar a API Easyzap para interagir com o WhatsApp.
Using this software in violation of WhatsApp's Terms of Service may result in your number being banned. Be very careful, do not use it for SPAM or anything similar. Use at your own risk. If you need to develop something with commercial interest, contact a global WhatsApp solution provider and sign up for the WhatsApp Business API service.
Instruções para começar a usar o Easyzap rapidamente.
Para executar o Easyzap, você precisa de:
Compile the project with the following command:
go build .
Easyzap utiliza um arquivo .env para configuração. Estes são os ajustes necessários:
# EASYZAP_ADMIN_TOKEN é o padrão. Variáveis legadas ADMIN_TOKEN e WUZAPI_ADMIN_TOKEN também são aceitas. EASYZAP_ADMIN_TOKEN=seu_token_aqui USER=easyzap PASSWORD=easyzap NAME=easyzap HOST=localhost PORT=5432 America/New_York
# EASYZAP_ADMIN_TOKEN é o padrão. Variáveis legadas ADMIN_TOKEN e WUZAPI_ADMIN_TOKEN também são aceitas. EASYZAP_ADMIN_TOKEN=seu_token_aqui TZ=America/New_York
By default, the service will start on port 8080. You can change the behavior with the following parameters:
-address: defines the IP address to bind the server (default 0.0.0.0)-port: defines the port number (default 8080)-logtype: format for logs, console (default) or json-wadebug: enables whatsmeow debug, INFO or DEBUG levels are supported-sslcertificate: SSL Certificate File-sslprivatekey: SSL Private Key File-skipmedia: Do not automatically download media from received messages-osname: Connection OSName in Whatsapp (default "Mac OS 10")-admintoken: Security Token to authorize admin actions (list/create/remove users)./easyzap -logtype json
To open sessions, you first need to create a user and define an authentication token for it. You can do this login into the Dashboard, or using the API directly:
curl -X POST http://localhost:8080/admin/users \
-H "Authorization: $EASYZAP_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "John", "token": "Z1234ABCCXD"}'
Once users are created, you can communicate with the API by passing the Token header as a simple authentication method. You can have multiple users (different numbers) on the same server. For every user you will need to Connect to whatsapp and then either scan a QR Code or Pair via phone number.
The daemon also serves some static web files, useful for development/testing that you can load with your browser:
Se você gosta do Easyzap e quer ajudar a manter o projeto ativo, considere fazer uma doação. Seu apoio é muito importante!