yaroslawww/laravel-zvonok-api

Laravel api client for zvonok.com service

1.0.3 2020-09-09 08:24 UTC

This package is auto-updated.

Last update: 2024-04-09 16:44:53 UTC


README

Installation

You can install the package via composer:

composer require yaroslawww/laravel-zvonok-api

You can publish and run the migrations with:

You can publish the config file with:

php artisan vendor:publish --provider="GCSC\LaravelZvonokApi\LaravelZvonokApiServiceProvider" --tag="config"

Usage

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
            ],
        ],
    ]
);

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.