Skip to content

Commit

Permalink
Updated /tests/whatsapp.php
Browse files Browse the repository at this point in the history
Using the new method names
  • Loading branch information
shirioko committed Aug 27, 2013
1 parent 0ce1087 commit 5e9b458
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/whatsapp.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function fgets_u($pStdn)
} elseif ($num_changed_streams > 0) {
return trim(fgets($pStdn, 1024));
}
return null;
}

$nickname = "WhatsAPI Test";
Expand Down Expand Up @@ -66,11 +67,11 @@ function fgets_u($pStdn)
break;
case "/lastseen":
echo "[] Request last seen $dst: ";
$wa->RequestLastSeen($dst);
$wa->sendGetRequestLastSeen($dst);
break;
default:
echo "[] Send message to $dst: $line\n";
$wa->Message($dst , $line);
$wa->sendMessage($dst , $line);
break;
}
}
Expand All @@ -96,10 +97,10 @@ function fgets_u($pStdn)
}

echo "\n[] Request last seen $dst: ";
$wa->RequestLastSeen($dst);
$wa->sendGetRequestLastSeen($dst);

echo "\n[] Send message to $dst: $msg\n";
$wa->Message($dst , $msg);
$wa->sendMessage($dst , $msg);
echo "\n";

?>

0 comments on commit 5e9b458

Please sign in to comment.