2017 © Pedro Peláez
 

library download_stats_api_sdk

image

softonic/download_stats_api_sdk

  • Thursday, May 24, 2018
  • by Joskfg
  • Repository
  • 8 Watchers
  • 0 Stars
  • 109 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 30 % Grown

The README.md

DownloadStatsApiSdk

To see the project documentation go to https://download-stats-api-v2.docs.softonic.io/, (*1)

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

  • API version: 2.2.0
  • Package version: 1.21.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

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_stats_api_sdk.git"
    }
  ],
  "require": {
    "softonic/download_stats_api_sdk": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

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

    require_once('/path/to/DownloadStatsApiSdk/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');

$apiInstance = new Softonic\DownloadStatsApiSdk\Api\DownloadStatsApi(
    // 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 = 56; // int | Download stats identifier

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

?>

Documentation for API Endpoints

All URIs are relative to https://localhost, (*9)

Class Method HTTP request Description
DownloadStatsApi getDownloadStat GET /download-stats/{id} Retrieves the given downloads statistics
DownloadStatsApi getDownloadStats GET /download-stats Get the list of the downloads statistics for a given app
DownloadStatsApi postDownloadStats POST /download-stats Creates the downloads statistics for a given app
DownloadStatsApi putDownloadStats PUT /download-stats/{id} Replaces the given downloads statistics
ProgramsApi findProgram GET /programs Get the list of the downloads stats ordered by downloads
ProgramsApi getProgramPlatform GET /programs/{id_program}/platforms/{id_platform} Get the list of the downloads stats for a given program platform
ProgramsApi getProgramPlatformLanguage GET /programs/{id_program}/platforms/{id_platform}/languages/{id_language} Get the list of the downloads stats for a given program platform language

Documentation For Models

Documentation For Authorization

softonic

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
    • sft_download_stats_api.find.all: Find download stats
    • sft_download_stats_api.read.all: Read download stats
    • sft_download_stats_api.create.all: Create download stats
    • sft_download_stats_api.replace.all: Replace download stats

Author

The Versions

24/05 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

24/05 2018

1.2.0

1.2.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

05/04 2018

1.1.0

1.1.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

12/02 2018

1.0.0

1.0.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk