PHP Classes

File: examples/sendTextMessage.php

Recommend this page to a friend!
  Classes of Rohit Arya   Villaments PHP WhatsApp API   examples/sendTextMessage.php   Download  
File: examples/sendTextMessage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Villaments PHP WhatsApp API
Interact with WhatsApp using the Villaments API
Author: By
Last change:
Date: 3 years ago
Size: 430 bytes
 

Contents

Class file image Download
<?php
require_once('../includes/curl.php');
require_once(
'../includes/whatsapp.php');
$wa=new Whatsapp();
$data['api_key']='XXXXXXXXXXXXX'; // Key received at the time of account creation
$data['phone']='Receiver Mobile Number with country code and without + symbol'; // Receiver Mobile Number
$data['message']='Your Message Here'; // Message to be send
$res=$wa->sendwhatsapp($data);
echo
"<pre>";
print_r($data);
?>