rogertiweb/sendpulse
最新稳定版本:1.3
Composer 安装命令:
composer require rogertiweb/sendpulse
包简介
SendPulse REST API client for Laravel
README 文档
README
Sendpulse API package for Laravel 9
Installation
composer require rogertiweb/sendpulse
Add Rogertiweb\SendPulse\SendPulseProvider::class to providers
config/app.php
'providers' => [ Rogertiweb\SendPulse\SendPulseProvider::class, ], 'aliases' => [ 'SendPulse' => Rogertiweb\SendPulse\SendPulse::class, ]
Publish config
php artisan vendor:publish --provider="Rogertiweb\SendPulse\SendPulseProvider" --tag="config"
Set the api key variables in your .env file
SENDPULSE_API_USER_ID=null
SENDPULSE_API_SECRET=null
Usage API
https://sendpulse.com/en/integrations/api
// From container $api = app('sendpulse'); $books = $api->listAddressBooks(); // From facade $books = \SendPulse::listAddressBooks(); // From dependency injection public function getBooks(\NikitaKiselev\SendPulse\Contracts\SendPulseApi $api) { $books = $api->listAddressBooks(); }
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-10-16