PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Mateo   PHP WhatsApp API   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP WhatsApp API
Send message to WhatsApp user with its API
Author: By
Last change:
Date: 1 year ago
Size: 251 bytes
 

Contents

Class file image Download
<?php

use Mateodioev\WhatsappApi\{Api, Messages};

require
__DIR__ . '/vendor/autoload.php';


$token = "your token";
$api = new Api($token, 11111111111);

$msg = new Messages($api);

$msg->to('51xxxxxxxxx');

var_dump($msg->sendText('Hola', true));