PHP code example of yaroslawww / laravel-zvonok-api

1. Go to this page and download the library: Download yaroslawww/laravel-zvonok-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/ */

    

yaroslawww / laravel-zvonok-api example snippets

bash
php artisan vendor:publish --provider="GCSC\LaravelZvonokApi\LaravelZvonokApiServiceProvider" --tag="config"
 php
ZvonokApi::request('post', 'phones/append/calls/', [
        'multipart' => [
            [
                'name' => 'campaign_id',
                'contents' => '123456789',
            ],
            [
                'name' => 'phones',
                'contents' => fopen('/path/to/file.csv', 'r'), // just csv data as string
            ],
        ],
    ]
);