2017 © Pedro Peláez
 

library storage_api_sdk

image

softonic/storage_api_sdk

  • Monday, March 26, 2018
  • by Joskfg
  • Repository
  • 25 Watchers
  • 0 Stars
  • 965 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 7 % Grown

The README.md

StorageApiSdk

Saves binary files in CDN providers for allowing later downloads, (*1)

This PHP package is automatically generated by the Swagger Codegen project:, (*2)

Requirements

PHP 5.5 and later, (*3)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*4)

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/softonic/storage_api_sdk.git"
    }
  ],
  "require": {
    "softonic/storage_api_sdk": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

Download the files and include autoload.php:, (*6)

    require_once('/path/to/StorageApiSdk/vendor/autoload.php');

Tests

To run the unit tests:, (*7)

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:, (*8)

setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_application
$config = Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_implicit
$config = Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: storage_api_password
$config = Softonic\StorageApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\StorageApiSdk\Api\FilesApi(
    // 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
);
$id_files = "id_files_example"; // string | SHA-1 hash of the file

try {
    $result = $apiInstance->readFile($id_files);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FilesApi->readFile: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://storage-v2.eu-west.sftapi.com, (*9)

Class Method HTTP request Description
FilesApi readFile GET /files/{id_files} Fetches a single File
FilesCdnDestinationsApi deleteFileCdnDestination DELETE /files/{id_files}/cdn-destinations/{id_cdn_destinations} Deletes a FileCdnDestination
FilesCdnDestinationsApi findFileCdnDestination GET /files/{id_files}/cdn-destinations List of FileCdnDestinations
UploadRequestsApi createUploadRequest POST /upload-requests Creates a new UploadRequest
UploadRequestsApi readUploadRequest GET /upload-requests/{id_upload_requests} Fetches a single UploadRequest

Documentation For Models

Documentation For Authorization

storage_api_access_code

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://oauth-v2.softonic.com/token
  • Scopes:
    • storage_api.read.files: Read Files
    • storage_api.read.uploadrequests: Read UploadRequests
    • storage_api.create.uploadrequests: Create UploadRequests
    • storage_api.delete.files.cdndestinations: Delete Files/CdnDestinations
    • storage_api.find.files.cdndestinations: Find Files/CdnDestinations

storage_api_application

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
    • storage_api.read.files: Read Files
    • storage_api.read.uploadrequests: Read UploadRequests
    • storage_api.create.uploadrequests: Create UploadRequests
    • storage_api.delete.files.cdndestinations: Delete Files/CdnDestinations
    • storage_api.find.files.cdndestinations: Find Files/CdnDestinations

storage_api_implicit

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://oauth-v2.softonic.com/authorize
  • Scopes:
    • storage_api.read.files: Read Files
    • storage_api.read.uploadrequests: Read UploadRequests
    • storage_api.create.uploadrequests: Create UploadRequests
    • storage_api.delete.files.cdndestinations: Delete Files/CdnDestinations
    • storage_api.find.files.cdndestinations: Find Files/CdnDestinations

storage_api_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • storage_api.read.files: Read Files
    • storage_api.read.uploadrequests: Read UploadRequests
    • storage_api.create.uploadrequests: Create UploadRequests
    • storage_api.delete.files.cdndestinations: Delete Files/CdnDestinations
    • storage_api.find.files.cdndestinations: Find Files/CdnDestinations

Author

admin@softonic.com, (*10)

The Versions

26/03 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

Apache V2 proprietary

The Requires

 

The Development Requires

api php swagger sdk

26/03 2018

2.2.0

2.2.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

22/09 2016

v2.0.88

2.0.88.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

01/09 2016

v2.0.87

2.0.87.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

28/04 2016

2.0.86

2.0.86.0 http://v1.storage.priv.sftapi.com

SDK autogenerated for StorageApi.

  Sources   Download

Apache V2

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

14/08 2015

1.0.12

1.0.12.0 http://storage.priv.sftapi.com

Storage API SDK

  Sources   Download

The Requires

 

api sdk storage

21/04 2015

1.0.4

1.0.4.0 http://storage.priv.sftapi.com

Storage API SDK

  Sources   Download

The Requires

  • php 5.3.*
  • ext-curl *

 

api sdk storage