Skip to content

Latest commit

 

History

History
229 lines (154 loc) · 7.29 KB

RegistrationApi.md

File metadata and controls

229 lines (154 loc) · 7.29 KB

MagDv\Cargomart\RegistrationApi

All URIs are relative to https://cargomart.ru.

Method HTTP request Description
apiV2RegistrationIdConfirmPost() POST /api/v2/registration/{id}/confirm Подтверждение регистрации/ввод проверочного кода.
apiV2RegistrationIdGet() GET /api/v2/registration/{id} Получение процесса регистрации.
apiV2RegistrationIdResendCodePost() POST /api/v2/registration/{id}/resend-code Повторная отправка проверочного кода.
apiV2RegistrationPost() POST /api/v2/registration Задание логина пользователя/начало процесса регистрации.

apiV2RegistrationIdConfirmPost()

apiV2RegistrationIdConfirmPost($id, $registration_confirm_request): \MagDv\Cargomart\Dto\Reg

Подтверждение регистрации/ввод проверочного кода.

Example

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



$apiInstance = new MagDv\Cargomart\Api\RegistrationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client()
);
$id = 'id_example'; // string | Идентификатор процесса регистрации.
$registration_confirm_request = new \MagDv\Cargomart\Dto\RegistrationConfirmRequest(); // \MagDv\Cargomart\Dto\RegistrationConfirmRequest

try {
    $result = $apiInstance->apiV2RegistrationIdConfirmPost($id, $registration_confirm_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistrationApi->apiV2RegistrationIdConfirmPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string Идентификатор процесса регистрации.
registration_confirm_request \MagDv\Cargomart\Dto\RegistrationConfirmRequest [optional]

Return type

\MagDv\Cargomart\Dto\Reg

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2RegistrationIdGet()

apiV2RegistrationIdGet($id): \MagDv\Cargomart\Dto\Reg

Получение процесса регистрации.

Example

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



$apiInstance = new MagDv\Cargomart\Api\RegistrationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client()
);
$id = 'id_example'; // string | Идентификатор процесса регистрации.

try {
    $result = $apiInstance->apiV2RegistrationIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistrationApi->apiV2RegistrationIdGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string Идентификатор процесса регистрации.

Return type

\MagDv\Cargomart\Dto\Reg

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2RegistrationIdResendCodePost()

apiV2RegistrationIdResendCodePost($id): \MagDv\Cargomart\Dto\Reg

Повторная отправка проверочного кода.

Example

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



$apiInstance = new MagDv\Cargomart\Api\RegistrationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client()
);
$id = 'id_example'; // string | Идентификатор процесса регистрации.

try {
    $result = $apiInstance->apiV2RegistrationIdResendCodePost($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistrationApi->apiV2RegistrationIdResendCodePost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string Идентификатор процесса регистрации.

Return type

\MagDv\Cargomart\Dto\Reg

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV2RegistrationPost()

apiV2RegistrationPost($registration_base_request): \MagDv\Cargomart\Dto\Reg

Задание логина пользователя/начало процесса регистрации.

Example

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



$apiInstance = new MagDv\Cargomart\Api\RegistrationApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client()
);
$registration_base_request = new \MagDv\Cargomart\Dto\RegistrationBaseRequest(); // \MagDv\Cargomart\Dto\RegistrationBaseRequest

try {
    $result = $apiInstance->apiV2RegistrationPost($registration_base_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistrationApi->apiV2RegistrationPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
registration_base_request \MagDv\Cargomart\Dto\RegistrationBaseRequest

Return type

\MagDv\Cargomart\Dto\Reg

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]