PHP Classes

File: examples/sendFile.php

Recommend this page to a friend!
  Classes of Rohit Arya  >  Villaments PHP WhatsApp API  >  examples/sendFile.php  >  Download  
File: examples/sendFile.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: 1 year ago
Size: 492 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
$data['filePathUrl']= 'File URL Here'; // Public URL of File
$res=$wa->sendwhatsapp($data);
echo
"<pre>";
print_r($data);
?>

For more information send a message to info at phpclasses dot org.