All URIs are relative to https://api.beget.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
marketplaceServiceGetSoftwareInfo() | GET /v1/vps/marketplace/software/{name}/{version} | |
marketplaceServiceGetSoftwareList() | GET /v1/vps/marketplace/software/list |
marketplaceServiceGetSoftwareInfo($name, $version): \OpenAPI\Client\Model\MarketplaceGetSoftwareInfoResponse
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\MarketplaceServiceApi(
// 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
);
$name = 'name_example'; // string
$version = 'version_example'; // string
try {
$result = $apiInstance->marketplaceServiceGetSoftwareInfo($name, $version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MarketplaceServiceApi->marketplaceServiceGetSoftwareInfo: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
name | string | ||
version | string |
\OpenAPI\Client\Model\MarketplaceGetSoftwareInfoResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
marketplaceServiceGetSoftwareList($category_name, $display_name, $is_pinned): \OpenAPI\Client\Model\MarketplaceGetSoftwareListResponse
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\MarketplaceServiceApi(
// 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
);
$category_name = 'category_name_example'; // string
$display_name = 'display_name_example'; // string
$is_pinned = True; // bool
try {
$result = $apiInstance->marketplaceServiceGetSoftwareList($category_name, $display_name, $is_pinned);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MarketplaceServiceApi->marketplaceServiceGetSoftwareList: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
category_name | string | [optional] | |
display_name | string | [optional] | |
is_pinned | bool | [optional] |
\OpenAPI\Client\Model\MarketplaceGetSoftwareListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]