Skip to content

Latest commit

 

History

History
116 lines (80 loc) · 4.08 KB

InfrastructureApi.md

File metadata and controls

116 lines (80 loc) · 4.08 KB

SplititSdkClient\InfrastructureApi

All URIs are relative to https://webapi.production.splitit.com

Method HTTP request Description
infrastructureGetResourcesGET GET /api/Infrastructure/GetResources
infrastructureGetResourcesPOST POST /api/Infrastructure/GetResources

infrastructureGetResourcesGET

\SplititSdkClient\Model\GetResourcesResponse infrastructureGetResourcesGET($api_key, $session_id, $merchant_code, $culture_name, $touch_point_code, $system_text_categories)

Example

<?php
require __DIR__ . '/vendor/autoload.php';

# Use Configuration::production() for production API
$apiInstance = new SplititSdkClient\Api\InfrastructureApi(
    Configuration::sandbox(),
    $session_id
);

$api_key = "api_key_example"; // string | 
$session_id = "session_id_example"; // string | 
$merchant_code = "merchant_code_example"; // string | 
$culture_name = "culture_name_example"; // string | 
$touch_point_code = "touch_point_code_example"; // string | 
$system_text_categories = array(new \SplititSdkClient\Model\\SplititSdkClient\Model\SystemTextCategory()); // \SplititSdkClient\Model\SystemTextCategory[] | 

try {
    $result = $apiInstance->infrastructureGetResourcesGET($api_key, $session_id, $merchant_code, $culture_name, $touch_point_code, $system_text_categories);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfrastructureApi->infrastructureGetResourcesGET: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
api_key string [optional]
session_id string [optional]
merchant_code string [optional]
culture_name string [optional]
touch_point_code string [optional]
system_text_categories \SplititSdkClient\Model\SystemTextCategory[] [optional]

Return type

\SplititSdkClient\Model\GetResourcesResponse

Authorization

Use session_id received from LoginApi and pass it to InfrastructureApi constructor.

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

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

infrastructureGetResourcesPOST

\SplititSdkClient\Model\GetResourcesResponse infrastructureGetResourcesPOST($request)

Example

<?php
require __DIR__ . '/vendor/autoload.php';

# Use Configuration::production() for production API
$apiInstance = new SplititSdkClient\Api\InfrastructureApi(
    Configuration::sandbox(),
    $session_id
);

$request = new \SplititSdkClient\Model\GetResourcesRequest(); // \SplititSdkClient\Model\GetResourcesRequest | 

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

Parameters

Name Type Description Notes
request \SplititSdkClient\Model\GetResourcesRequest

Return type

\SplititSdkClient\Model\GetResourcesResponse

Authorization

Use session_id received from LoginApi and pass it to InfrastructureApi constructor.

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

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