UserRatingsApiSdk
To access the API: 1. Register a client with the proper permissions (user-ratings-api.*) in the Softonic OAuth Admin 1. Retrieve a token for that client with the proper scopes from the Softonic OAuth API. 1. Copy the token in the input field at the top of the page, (*1)
This PHP package is automatically generated by the Swagger Codegen project:, (*2)
- API version: 1.17.0
- Package version: 1.0.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/sdk_user-ratings-api.git"
}
],
"require": {
"softonic/sdk_user-ratings-api": "*@dev"
}
}
Then run composer install, (*5)
Manual Installation
Download the files and include autoload.php:, (*6)
require_once('/path/to/UserRatingsApiSdk/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)
createAppUserRating($app_id, $app_user_rating);
} catch (Exception $e) {
echo 'Exception when calling AppsApi->createAppUserRating: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to https://localhost, (*9)
| Class |
Method |
HTTP request |
Description |
| AppsApi |
createAppUserRating |
POST /apps/{appId}/user-ratings |
Register a rating for the given app |
| AppsApi |
getAppUserRatings |
GET /apps/{appId}/user-ratings |
Get the rating information about the given app |
| AppsApi |
getAverageAppUserRatings |
GET /apps/user-ratings |
Get a list of apps with their average user ratings and number of votes |
Documentation For Models
Documentation For Authorization
All endpoints do not require authorization., (*10)
Author