Skip to content

Latest commit

 

History

History
117 lines (81 loc) · 4.61 KB

UploadRequestsApi.md

File metadata and controls

117 lines (81 loc) · 4.61 KB

Softonic\StorageApiSdk\UploadRequestsApi

All URIs are relative to https://storage.sftapi.com

Method HTTP request Description
createUploadRequest POST /upload-requests Creates a new UploadRequest
readUploadRequest GET /upload-requests/{id_upload_requests} Fetches a single UploadRequest

createUploadRequest

createUploadRequest($body)

Creates a new UploadRequest

Creates a new UploadRequest

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\UploadRequestsApi();
$body = new \Softonic\StorageApiSdk\Model\UploadRequest(); // \Softonic\StorageApiSdk\Model\UploadRequest | 

try {
    $api_instance->createUploadRequest($body);
} catch (Exception $e) {
    echo 'Exception when calling UploadRequestsApi->createUploadRequest: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Softonic\StorageApiSdk\Model\UploadRequest [optional]

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]

readUploadRequest

\Softonic\StorageApiSdk\Model\UploadRequest readUploadRequest($id_upload_requests)

Fetches a single UploadRequest

Fetches a single UploadRequest

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\UploadRequestsApi();
$id_upload_requests = 56; // int | Upload Request ID

try {
    $result = $api_instance->readUploadRequest($id_upload_requests);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UploadRequestsApi->readUploadRequest: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id_upload_requests int Upload Request ID

Return type

\Softonic\StorageApiSdk\Model\UploadRequest

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]