Balloon\Sdk\DesktopclientV2Api

All URIs are relative to http://localhost

Method HTTP request Description
getDesktopClient GET /api/v2/desktop-clients/{format}/content Download balloon desktop client

getDesktopClient

\SplFileObject getDesktopClient($format)

Download balloon desktop client

Example

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


// Configure API key authorization: ApiKeyAuth
$config = Balloon\Sdk\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Balloon\Sdk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

// Configure HTTP basic authorization: BasicAuth
$config = Balloon\Sdk\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure Bearer authorization: BearerAuth
$config = Balloon\Sdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');



$apiInstance = new Balloon\Sdk\Api\DesktopclientV2Api(
    // 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
);
$format = 'format_example'; // string | Request client foramt (deb, rpm, exe, pkg, zip or a custom format)

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

Parameters

Name Type Description Notes
format string Request client foramt (deb, rpm, exe, pkg, zip or a custom format)

Return type

\SplFileObject

Authorization

ApiKeyAuth, BasicAuth, BearerAuth, OpenID

HTTP request headers

  • Content-Type: Not defined
  • Accept: octet/stream

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