idesigning/smtpbz-client

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/idesigning/smtpbz-client

dev-master 2024-06-25 11:58 UTC

This package is not auto-updated.

Last update: 2025-12-10 17:52:43 UTC


README

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.5.1
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
$config = Smtpbz\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Smtpbz\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Smtpbz\Client\Api\LogApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$messageid = "messageid_example"; // string | ID письма

try {
    $apiInstance->getMessage($messageid);
} catch (Exception $e) {
    echo 'Exception when calling LogApi->getMessage: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.smtp.bz/v1

ClassMethodHTTP requestDescription
LogApigetMessageGET /log/message/{messageid}Получить отправленное письмо по ID
LogApigetMessagesGET /log/messageПолучить отправленные письма
SMTPApismtpMassPOST /smtp/massМассовая отправка писем
SMTPApismtpSendPOST /smtp/sendОтправка письма
UnsubscribeApiaddUnsubscribePOST /unsubscribe/addДобавление email в список отписчиков
UnsubscribeApigetUnsubscribeGET /unsubscribeПолучить список отписчиков
UnsubscribeApiremoveUnsubscribePOST /unsubscribe/removeУдаление email-адреса из списка отписчиков
UnsubscribeApiremoveallUnsubscribePOST /unsubscribe/removeallУдаление всего списка отписчиков
UserApiaddDomainPOST /user/domain/addДобавление домена отправителя
UserApigetUserDataGET /userДанные о пользователи
UserApigetUserDomainGET /user/domain/{domain}Домен отправителя
UserApigetUserDomainsGET /user/domainДомены отправителя
UserApigetUserIpGET /user/ip/{ip}Выделенный IP-адрес пользователя
UserApigetUserIpsGET /user/ipВыделенные IP-адреса пользователя
UserApigetUserStatsGET /user/statsСтатистика по рассылкам
UserApiverifyDomainPOST /user/domain/verifyВерификация и проверка записей домена отправителя
ValidateApigetValidateGET /check/email/{email}Валидации email-адреса

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author