juanalessandrini / apiwapp_conector
用于连接apiwapp.com.ar服务的PHP脚本
v1.0.1
2023-05-09 10:23 UTC
Requires
- doctrine/orm: ^2.14
- symfony/framework-bundle: 5.2.*
- symfony/http-client: 5.2.*
Requires (Dev)
- symfony/maker-bundle: ^1.43
This package is auto-updated.
Last update: 2024-09-09 13:22:11 UTC
README
用于连接apiwapp.com.ar服务的PHP脚本
遵循说明
- 添加库引用
- 转到ApiWapp.com.ar并获取API令牌。
- 在.env文件上替换令牌
- 添加库引用
- 创建类实例
- 调用方法发送消息
composer install juanalessandrini/apiwapp_conector
// vendor/juanalessandrini/apiwapp_conector/.env APIWAPP_TOKEN=yourToken
use Juanalessandrini\Apiwapp\Conector\ApiWappConector;
$whatsapp = new ApiWappConector(EntityManagerInterface,HttpClientInterface);
$whatsapp->sendMessage($template_uid, $params, $target);