wablas / wablas-client-php
(非官方) Wablas 客户端 PHP
1.0.0
2018-12-30 06:40 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-09-29 04:43:27 UTC
README
安装
composer require wablas/wablas-client-php
用法
请在Wablas注册以获取您的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')