All URIs are relative to https://storage.sftapi.com
Method | HTTP request | Description |
---|---|---|
deleteFileCdnDestination | DELETE /files/{id_files}/cdn-destinations/{id_cdn_destinations} | Deletes a FileCdnDestination |
findFileCdnDestination | GET /files/{id_files}/cdn-destinations | List of FileCdnDestinations |
deleteFileCdnDestination($id_files, $id_cdn_destinations)
Deletes a FileCdnDestination
Deletes a FileCdnDestination
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: storage_api_access_code
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_application
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_implicit
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_password
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Softonic\StorageApiSdk\Api\FilesCdnDestinationsApi();
$id_files = "id_files_example"; // string | SHA-1 hash of the file
$id_cdn_destinations = "id_cdn_destinations_example"; // string | CDN destination where the file is uploaded
try {
$api_instance->deleteFileCdnDestination($id_files, $id_cdn_destinations);
} catch (Exception $e) {
echo 'Exception when calling FilesCdnDestinationsApi->deleteFileCdnDestination: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id_files | string | SHA-1 hash of the file | |
id_cdn_destinations | string | CDN destination where the file is uploaded |
void (empty response body)
storage_api_access_code, storage_api_application, storage_api_implicit, storage_api_password
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Softonic\StorageApiSdk\Model\FileCdnDestination[] findFileCdnDestination($id_files)
List of FileCdnDestinations
List of FileCdnDestinations
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: storage_api_access_code
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_application
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_implicit
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_password
Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Softonic\StorageApiSdk\Api\FilesCdnDestinationsApi();
$id_files = "id_files_example"; // string | SHA-1 hash of the file
try {
$result = $api_instance->findFileCdnDestination($id_files);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FilesCdnDestinationsApi->findFileCdnDestination: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id_files | string | SHA-1 hash of the file |
\Softonic\StorageApiSdk\Model\FileCdnDestination[]
storage_api_access_code, storage_api_application, storage_api_implicit, storage_api_password
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]