Advertisement
Guest User

testprotocol.php

a guest
Dec 7th, 2012
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. require "whatsprot.class.php";
  3. $options = getopt("d::", array("debug::"));
  4. $debug = (array_key_exists("debug", $options) || array_key_exists("d", $options)) ? true : false;
  5. $w = new WhatsProt("34666777888", "000111222333444", "John Doe", $debug);
  6. $w->Connect();
  7. $w->Login();
  8. $w->Message(time() . "-1", "34destino", "mensaje");
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement