Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Latest commit

 

History

History
193 lines (141 loc) · 8.14 KB

PlatformsVersionsApi.md

File metadata and controls

193 lines (141 loc) · 8.14 KB

Softonic\CatalogApiSdk\PlatformsVersionsApi

All URIs are relative to https://catalog-v2.sftapi.com

Method HTTP request Description
findPlatformVersion GET /platforms/{id_platform}/versions List of PlatformVersions
readPlatformVersion GET /platforms/{id_platform}/versions/{id_version} Fetches a single PlatformVersion
replacePlatformVersion PUT /platforms/{id_platform}/versions/{id_version} Entirely replaces a PlatformVersion

findPlatformVersion

\Softonic\CatalogApiSdk\Client\Model\PlatformVersion[] findPlatformVersion($id_platform)

List of PlatformVersions

List of PlatformVersions

Example

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

// Configure OAuth2 access token for authorization: catalog_api_access_code
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_application
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_implicit
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_password
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\CatalogApiSdk\Api\PlatformsVersionsApi(
    // 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_platform = "id_platform_example"; // string | Platform ID

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

Parameters

Name Type Description Notes
id_platform string Platform ID

Return type

\Softonic\CatalogApiSdk\Client\Model\PlatformVersion[]

Authorization

catalog_api_access_code, catalog_api_application, catalog_api_implicit, catalog_api_password

HTTP request headers

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

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

readPlatformVersion

\Softonic\CatalogApiSdk\Client\Model\PlatformVersion readPlatformVersion($id_platform, $id_version)

Fetches a single PlatformVersion

Fetches a single PlatformVersion

Example

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

// Configure OAuth2 access token for authorization: catalog_api_access_code
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_application
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_implicit
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_password
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\CatalogApiSdk\Api\PlatformsVersionsApi(
    // 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_platform = "id_platform_example"; // string | Platform ID
$id_version = "id_version_example"; // string | Platform version ID

try {
    $result = $apiInstance->readPlatformVersion($id_platform, $id_version);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlatformsVersionsApi->readPlatformVersion: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id_platform string Platform ID
id_version string Platform version ID

Return type

\Softonic\CatalogApiSdk\Client\Model\PlatformVersion

Authorization

catalog_api_access_code, catalog_api_application, catalog_api_implicit, catalog_api_password

HTTP request headers

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

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

replacePlatformVersion

replacePlatformVersion($id_platform, $id_version, $body)

Entirely replaces a PlatformVersion

Entirely replaces a PlatformVersion

Example

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

// Configure OAuth2 access token for authorization: catalog_api_access_code
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_application
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_implicit
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: catalog_api_password
$config = Softonic\CatalogApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\CatalogApiSdk\Api\PlatformsVersionsApi(
    // 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_platform = "id_platform_example"; // string | Platform ID
$id_version = "id_version_example"; // string | Platform version ID
$body = new \Softonic\CatalogApiSdk\Client\Model\PlatformVersion(); // \Softonic\CatalogApiSdk\Client\Model\PlatformVersion | 

try {
    $apiInstance->replacePlatformVersion($id_platform, $id_version, $body);
} catch (Exception $e) {
    echo 'Exception when calling PlatformsVersionsApi->replacePlatformVersion: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id_platform string Platform ID
id_version string Platform version ID
body \Softonic\CatalogApiSdk\Client\Model\PlatformVersion [optional]

Return type

void (empty response body)

Authorization

catalog_api_access_code, catalog_api_application, catalog_api_implicit, catalog_api_password

HTTP request headers

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

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