汉中/sendy-api

Sendy.co API SDK,V6.02

v0.2.3 2022-10-18 11:59 UTC

This package is auto-updated.

Last update: 2024-09-18 16:00:55 UTC


README

Laravel 8 中 Sendy API 的服务提供商

安装

composer require hanz/sendy-api

或者在你的 composer.json 中添加

{
    "require" : {
        "hanz/sendy-api":  "^0.2.5"
    }
}

配置

php artisan vendor:publish --provider="SendyApi\SendyServiceProvider"

它将在配置目录中创建 sendy.php。

<?php

return [
    'api_key' => env('SENDY_API_KEY', null),
    'api_host' => env('SENDY_API_HOST', null),
    'list_id' => env('SENDY_API_LIST_ID', null),
    'api_get_lists' => '/api/lists/get-lists.php',
    'api_get_brands' => '/api/brands/get-brands.php',
    'api_subscribe' => '/subscribe',
    'api_unsubscribe' => '/unsubscribe',
    'api_delete' => '/api/subscribers/delete.php',
    'api_subscription_status' => '/api/subscribers/subscription-status.php',
    'api_active_subscriber_count' => '/api/subscribers/active-subscriber-count.php',
    'api_create' => '/api/campaigns/create.php'
];