PHP code example of hanz / sendy-api

1. Go to this page and download the library: Download hanz/sendy-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hanz / sendy-api example snippets




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'
];
shell
php artisan vendor:publish --provider="SendyApi\SendyServiceProvider"