Skip to content
WAPLUGIN PHP LIBRARY
PHP
Branch: master
Clone or download
Latest commit 10bcd11 Dec 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src ready for production Dec 17, 2019
tests first commit Dec 2, 2019
.editorconfig first commit Dec 2, 2019
.env.example first commit Dec 2, 2019
.gitattributes first commit Dec 2, 2019
.gitignore first commit Dec 2, 2019
.travis.yml first commit Dec 2, 2019
README.md
composer.json first commit Dec 2, 2019
phpcs.xml
phpunit.xml.dist first commit Dec 2, 2019

README.md

WAPLUGIN PHP Library

Installation

composer require wapluginlab/php-lib

Account

Get Account

use Waplugin\Config;
use Waplugin\Account;

$params['page'] = 1;

Config::$secretKey = getenv('SECRET_KEY');

$result = Account::index($params);

return $result;

View Account Detail

use Waplugin\Config;
use Waplugin\Account;

$account_id = 1;

Config::$secretKey = getenv('SECRET_KEY');

$result = Account::show($account_id);

return $result;

WhatsApp

Status

use Waplugin\Config;
use Waplugin\Wa;

$account_id = 1;

Config::$secretKey = getenv('SECRET_KEY');

$result = Wa::status($account_id);

return $result;

Send Message

use Waplugin\Config;
use Waplugin\Wa;

$account_id = 1;

$params['phone'] = '6281xxxxxx';
$params['msg'] = 'Lorem Ipsum Dolar Sit Maet';

Config::$secretKey = getenv('SECRET_KEY');

$result = Wa::send($account_id, $params);

return $result;

Official API Docs

You can’t perform that action at this time.