Posts tagged with whatsapi

I had cloned these file as per facebook instructions

And then Step 1: Create a biz Directory for the Setup Scripts

mkdir ~/biz; cd ~/biz; 

Step 2: Get the WhatsApp Business API Client Configuration Files

   db.env docker-compose.yml multiconnect-compose.yml 

Step 3: Set the WA_API_VERSION Environment Variable

export WA_API_VERSION=2.31.5 

Step 4: Start the WhatsApp Business API Client

docker-compose up -d 

The resulting output should look like the following:

Recreating whatsbusinessapi_db_1 ... done Creating whatsbusinessapi_wacore_1 ... done Creating whatsbusinessapi_waweb_1  ... done 

Step 5: Verify Containers Are Running

docker-compose ps 

output :

          Name                         Command               State                     Ports                    --------------------------------------------------------------------------------------------------------------- whatsbusinessapi_db_1       docker-entrypoint.sh -p 54 ...   Up      5000/tcp, 5432/tcp, 0.0.0.0:5000->6000/tcp whatsbusinessapi_wacore_1   /opt/whatsapp/bin/wait_on_ ...   Up      6250/tcp, 6251/tcp, 6252/tcp, 6253/tcp     whatsbusinessapi_waweb_1    /opt/whatsapp/bin/wait_on_ ...   Up      0.0.0.0:9090->443/tcp 

By default, the Webapp container will be running on port 9090 (https://localhost:9090) as per facebook but when i tried https://localhost:9090

So anyone have idea please.

I am trying to set up the WhatsApp business API client. I followed this instruction https://developers.facebook.com/docs/whatsapp/getting-started/#client-setup

At step 2 I installed "single instance" using this instruction https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance

At Step 6 of the "single instance" instruction, I started Postman https://developers.facebook.com/docs/whatsapp/guides/postman.

At Step 4 of "Postman Collection" I configured AdminUsername (admin), AdminPassword (secret), NewAdminPassword (****) and URL (https://localhost:9090 [the example says 7901, but that results in error]). Response: some headers and "Status 401 Unauthorized".

Maybe this helps to find the cause: Following this post Whatsapp Business API production setup not working I ran this command docker-compose logs > debug_output.txt. This was the output: https://drive.google.com/file/d/1eXeaTeNiAiPW3A5bZ54gOg70UIPfF-vt/view?usp=sharing. (It doesn't make much sense to me...). I do have a MySQL WorkBench installed. No clue if it is installed in the same 'instance'.

After proceed with the installation of WhatsApp Business API (developer single instance) in docker on windows 10 Enterprise, I´m facing the following msg error when using https://192.168.43.200:8080/v1/health by postman Error msg: { "meta": { "version": "v2.33.3", "api_status": "stable" }, "errors": [ { "code": 1014, "title": "Internal error", "details": "php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. Please check if wacore is running: wacore:6252" } ] }

Looking in log files it´s seems that the core is listening in one port that is different from expected by web

---> Web log [2021-02-24 12:46:38.560338] app.INFO: [064af96616514f6f8b41fc530047db4b] Matched route "{route}". {"route":"GET_v1_health","route_parameters":{"_controller":"WhatsApp\Controller\HealthController::getHealth","_route":"GET_v1_health"},"request_uri":"https://192.168.43.200:8080/v1/health","method":"GET"} []

[2021-02-24 12:46:38.587929] app.INFO: [064af96616514f6f8b41fc530047db4b] Guard authentication successful! {"token":"[object] (Symfony\Component\Security\Guard\Token\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user="admin", authenticated=true, roles="ROLE_ADMIN"))","authenticator":"WhatsApp\Security\TokenAuthenticator"} []

[2021-02-24 12:47:14.646964] app.INFO: [064af96616514f6f8b41fc530047db4b] Response: {"meta":{"version":"v2.33.3","api_status":"stable"},"errors":[{"code":1014,"title":"Internal error","details":"php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution. Please check if wacore is running: wacore:6252"}]} []

[2021-02-24 12:47:14.650236] app.INFO: [064af96616514f6f8b41fc530047db4b] Request GET_/v1/health returns 500 in 36269.15 ms [] []

=================================================================================== Core log D 2021-02-24 12:10:39.282 UTC 28 apiendpointmanager.cpp:190] Endpoint "healthcheck" is listening on address "0.0.0.0" port 6253 req_id=Main D 2021-02-24 12:10:39.282 UTC 29 apiendpointmanager.cpp:190] Endpoint "control" is listening on address "0.0.0.0" port 6252 req_id=Main

===================================================================================

$ docker network ls NETWORK ID NAME DRIVER SCOPE 9d811d5d3283 Default Switch ics local 27dc22b69113 nat nat local 4e2733cd792d none null local

$ docker container ls -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8d7000856b95 docker.whatsapp.biz/web:v2.33.3 "/opt/whatsapp/bin/w…" 17 hours ago Exited (4294967295) 6 minutes ago postgres_waweb_1 909781cdb775 docker.whatsapp.biz/coreapp:v2.33.3 "/opt/whatsapp/bin/w…" 17 hours ago Up 5 minutes 6250-6253/tcp postgres_wacore_1 7d68b7a61cad postgres:10.6 "docker-entrypoint.s…" 17 hours ago Up 6 minutes 5432/tcp, 33060/tcp, 0.0.0.0:33060->3306/tcp postgres_db_1 219b1e393f21 nginx "/docker-entrypoint.…" 42 hours ago Exited (4294967295) 41 hours ago nostalgic_jennings

Regards,

I'm developing an Android app that creates a whitelist of over 400 contacts and groups of WhatsApp to send them a scheduled message. I found an API to send a message using WhatsApp by passing the message and the receipt contact (person or group), but I didn't find another API to get all group ids of WhatsApp.

How to retrieve all WhatsApp groups' ids, using Android Java?