zlodey / laravel-sendpulse-api
此包已被弃用且不再维护。未建议替代包。
laravel的SendPulse服务提供者
1.0.3
2021-02-23 19:01 UTC
Requires
- php: >=5.4.0
- illuminate/support: *
- sendpulse/rest-api: 1.*
This package is auto-updated.
Last update: 2022-01-21 10:59:02 UTC
README
Laravel - SendPulse 服务提供者
使用Composer安装:
composer require zlodey/laravel-sendpulse-api 1.*
或者在composer.json中手动安装
"require": { "zlodey/laravel-sendpulse-api": "1.*" }
定义到.env文件中
SENDPULSE_API_USER_ID=<your api user id>
SENDPULSE_API_SECRET=<your api secret>
对于Laravel >= 5.5,您已经可以开始使用了
对于Laravel < 5.5,您需要注册服务提供者
/configs/app.php
... 'providers' => [ /* * Laravel Framework Service Providers... */ ... /* * Application Service Providers... */ ... 'Zlodey\SendPulse\SendPulseServiceProvider' ],
用法
app('SendPulse')->listAddressBooks(); app('SendPulse')->listSenders();
等等...
您可以在 \Sendpulse\RestApi\ApiInterface 找到所有可用命令的完整列表