Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
124 lines (84 loc) · 3.47 KB

SessionInfoApi.md

File metadata and controls

executable file
·
124 lines (84 loc) · 3.47 KB

Swagger\Client\SessionInfoApi

All URIs are relative to https://checkout-api.reepay.com

Method HTTP request Description
getSession GET /v1/session_info/{id} Get session info
getSessions GET /v1/session_info/{relation_type}/{handle} Get sessions by relation type and handle

getSession

\Swagger\Client\Model\SessionInfo getSession($id)

Get session info

Example

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

// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Swagger\Client\Api\SessionInfoApi(
    // 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
);
$id = "id_example"; // string | Session id

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

Parameters

Name Type Description Notes
id string Session id

Return type

\Swagger\Client\Model\SessionInfo

Authorization

basicAuth

HTTP request headers

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

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

getSessions

\Swagger\Client\Model\SessionInfo[] getSessions($relation_type, $handle)

Get sessions by relation type and handle

Example

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

// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Swagger\Client\Api\SessionInfoApi(
    // 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
);
$relation_type = "relation_type_example"; // string | Relation type
$handle = "handle_example"; // string | Relation handle

try {
    $result = $apiInstance->getSessions($relation_type, $handle);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SessionInfoApi->getSessions: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
relation_type string Relation type
handle string Relation handle

Return type

\Swagger\Client\Model\SessionInfo[]

Authorization

basicAuth

HTTP request headers

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

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