PHP code example of ivansabat / sendpulse-rest-api-laravel

1. Go to this page and download the library: Download ivansabat/sendpulse-rest-api-laravel 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/ */

    

ivansabat / sendpulse-rest-api-laravel example snippets


php artisan vendor:publish --provider="IvanSabat\SendPulse\Providers\SendPulseServiceProvider"

use IvanSabat\Sendpulse\Facades\SendPulse;

$addressBooks = SendPulse::listAddressBooks();

use IvanSabat\Sendpulse\Facades\SendPulse;

$sendPulse = new Sendpulse(
    config('sendpulse.api_user_id'),
    config('sendpulse.api_secret')
);
$addressBooks = $sendPulse->get('addressbooks');