/wablas-client-php

(Unofficial) Wablas Client PHP

Primary LanguagePHP

(Unofficial) Wablas PHP Client

Install

composer require wablas/wablas-client-php

Usage

Please register at Wablas to get your apiToken.

use Wablas\WablasClient;

$apiToken = 'your-api-token-here';
$wablasClient = new WablasClient($apiToken);

// add recipient (support multiple recipient)
$wablasClient->addRecipient('08xxxxxxxxx');

// send message
$message = 'type your message here.';
$wablasClient->sendMessage($message);

// send image
$wablasClient->sendImage('your image caption here', 'http://your.image/url/here')