composer require wapluginlab/php-lib
use Waplugin\Config;
use Waplugin\Account;
$params['page'] = 1;
Config::$secretKey = getenv('SECRET_KEY');
$result = Account::index($params);
return $result;
use Waplugin\Config;
use Waplugin\Account;
$account_id = 1;
Config::$secretKey = getenv('SECRET_KEY');
$result = Account::show($account_id);
return $result;
use Waplugin\Config;
use Waplugin\Wa;
$account_id = 1;
Config::$secretKey = getenv('SECRET_KEY');
$result = Wa::status($account_id);
return $result;
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;