Skip to content

Latest commit

 

History

History
119 lines (83 loc) · 4.87 KB

FilesCdnDestinationsApi.md

File metadata and controls

119 lines (83 loc) · 4.87 KB

Softonic\StorageApiSdk\FilesCdnDestinationsApi

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

deleteFileCdnDestination($id_files, $id_cdn_destinations)

Deletes a FileCdnDestination

Deletes a FileCdnDestination

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id_files string SHA-1 hash of the file
id_cdn_destinations string CDN destination where the file is uploaded

Return type

void (empty response body)

Authorization

storage_api_access_code, storage_api_application, storage_api_implicit, storage_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]

findFileCdnDestination

\Softonic\StorageApiSdk\Model\FileCdnDestination[] findFileCdnDestination($id_files)

List of FileCdnDestinations

List of FileCdnDestinations

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id_files string SHA-1 hash of the file

Return type

\Softonic\StorageApiSdk\Model\FileCdnDestination[]

Authorization

storage_api_access_code, storage_api_application, storage_api_implicit, storage_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]