idesigning/pushka-exchange-client

dev-master 2021-11-25 14:12 UTC

This package is not auto-updated.

Last update: 2024-05-10 02:30:59 UTC


README

API для обмена идентификаторами системы «PRO.Культура.РФ». Токен для тестирования – i7mrk134sklozq8uhed7

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

  • API version: 0.1
  • Build package: io.swagger.codegen.v3.generators.php.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": "http://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@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');

$apiInstance = new PushkaExchange\Client\Api\_Api(
    // 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()
);
$body = new \PushkaExchange\Client\Model\Exchange(); // \PushkaExchange\Client\Model\Exchange | 

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

$apiInstance = new PushkaExchange\Client\Api\_Api(
    // 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()
);
$system_inn = "system_inn_example"; // string | ИНН системы, от которой получены билеты. Для системы-организатора — собственный
$system_event_id = "system_event_id_example"; // string | Идентификатор сеанса в системе, от которой получены билеты. Для системы-организатора — собственный

try {
    $result = $apiInstance->idexchangeSystemInnSystemEventIdGet($system_inn, $system_event_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling _Api->idexchangeSystemInnSystemEventIdGet: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to https://pro.culture.ru/api/v2.5/pushka?apiKey&#x3D;i7mrk134sklozq8uhed7

ClassMethodHTTP requestDescription
_ApiidexchangePostPOST /idexchangeСвязка ID мероприятия в «PRO.Культура.РФ» с внутренним ID билетной системы
_ApiidexchangeSystemInnSystemEventIdGetGET idexchange/{systemInn}/{systemEventId}Получить ID мероприятия «PRO.Культура.РФ» по ИНН билетной системы и ID мероприятия в билетной системе

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author