PHP Classes

File: examples/setWebHook.php

Recommend this page to a friend!
  Classes of Rohit Arya   Villaments PHP WhatsApp API   examples/setWebHook.php   Download  
File: examples/setWebHook.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: 342 bytes
 

Contents

Class file image Download
<?php
require_once('../includes/curl.php');
require_once(
'../includes/whatsapp.php');
$wa=new Whatsapp();
$api_key='XXXXXXXXXXXXX'; // Key received at the time of account creation
$url='URL at which you want to receive new whatsapp messge'; // Company Name
$res=$wa->setWhatsappHook($api_key,$url);
echo
"<pre>";
print_r($data);
?>