1. Go to this page and download the library: Download cachesistemas/whatsapp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cachesistemas / whatsapp example snippets
use API\Container;
ntainer(["url" => "sua-url", "token" => "seu-token"]);
echo $container->criar(3, 500); // ID e Memória
echo $container->stop(3);
echo $container->start(3);
echo $container->deletar(3);
echo $container->lista();
echo $whatsapp->mudarDescricaoGrupo(array("groupId" => "120363042927751450", "description" => "PHP é vida !"));
echo $whatsapp->obterContatos();
json
{"container":"api-3","session":"3","device":"556696883327","event":"on-message","type":"contact","isMedia":false,"pushName":"Raphael Serafim","id":"3ABFE08CA186BFD0DAEA","from":"556696852025","display":"Raphael","vcard":"BEGIN:VCARD\nVERSION:3.0\nN:;Raphael;;;\nFN:Raphael\nX-WA-BIZ-NAME:Raphael Serafim\nX-WA-BIZ-DESCRIPTION:Criação de sistemas web\nBots 🤖 \nDesenvolvimento de site \nIntegrações com APIs\nAplicativos Android\nTEL;type=CELL;type=VOICE;waid=556696852025:+55 66 9685-2025\nEND:VCARD","isgroup":false,"participant":"","timestamp":1648742161}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.