2017 © Pedro Peláez
 

library download_api_sdk

image

softonic/download_api_sdk

  • Tuesday, July 31, 2018
  • by Joskfg
  • Repository
  • 25 Watchers
  • 0 Stars
  • 286 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 21 % Grown

The README.md

DownloadApiSdk

Generated URLs with TTL for downloading binary files, (*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/download_api_sdk.git"
    }
  ],
  "require": {
    "softonic/download_api_sdk": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

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

    require_once('/path/to/DownloadApiSdk/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: download_api_application
$config = Softonic\DownloadApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: download_api_implicit
$config = Softonic\DownloadApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: download_api_password
$config = Softonic\DownloadApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new Softonic\DownloadApiSdk\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 that identifies a file
$country = "country_example"; // string | The country from where the request is being done, used to sort download URL list
$extra = "extra_example"; // string | Associative array of parameters serialized and encoded in base64

try {
    $result = $apiInstance->readFile($id_files, $country, $extra);
    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://download-v2.eu-west.sftapi.com, (*9)

Class Method HTTP request Description
FilesApi readFile GET /files/{id_files} Fetches a single File
FilesUrlsApi findFileUrl GET /files/{id_files}/urls List of FileUrls

Documentation For Models

Documentation For Authorization

download_api_access_code

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://oauth-v2.softonic.com/token
  • Scopes:
    • download_api.read.files: Read Files
    • download_api.find.files.urls: Find Files/Urls

download_api_application

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
    • download_api.read.files: Read Files
    • download_api.find.files.urls: Find Files/Urls

download_api_implicit

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://oauth-v2.softonic.com/authorize
  • Scopes:
    • download_api.read.files: Read Files
    • download_api.find.files.urls: Find Files/Urls

download_api_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • download_api.read.files: Read Files
    • download_api.find.files.urls: Find Files/Urls

Author

admin@softonic.com, (*10)

The Versions

31/07 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

Apache V2 proprietary

The Requires

 

The Development Requires

api php swagger sdk

31/07 2018

2.1.0

2.1.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

18/06 2018

v2.0.101

2.0.101.0 http://swagger.io

  Sources   Download

proprietary

The Requires

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

 

The Development Requires

api php swagger sdk

04/07 2017

v2.0.100

2.0.100.0 http://swagger.io

  Sources   Download

proprietary

The Requires

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

 

The Development Requires

api php swagger sdk

02/09 2016

v2.0.96

2.0.96.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

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

 

The Development Requires

api php swagger sdk

09/06 2016

2.0.89

2.0.89.0 http://download.priv.sftapi.com

Download API SDK

  Sources   Download

Apache V2

The Requires

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

 

The Development Requires

api php swagger sdk

14/08 2015

1.0.11

1.0.11.0 http://download.priv.sftapi.com

Download API SDK

  Sources   Download

The Requires

 

api sdk download

10/03 2015

1.0.5

1.0.5.0 http://download.priv.sftapi.com

Download API SDK

  Sources   Download

The Requires

  • ext-curl *
  • php 5.3.*

 

api sdk download