Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.19 KB

PublicUserInformationApi.md

File metadata and controls

68 lines (45 loc) · 2.19 KB

OpenAPI\AllegroSdk\PublicUserInformationApi

All URIs are relative to https://api.allegro.pl.

Method HTTP request Description
getUserSummaryUsingGET() GET /users/{userId}/ratings-summary Get any user's ratings summary

getUserSummaryUsingGET()

getUserSummaryUsingGET($user_id): \OpenAPI\AllegroSdk\Model\UserRatingSummaryResponse

Get any user's ratings summary

Use this resource to receive feedback statistics. Read more: <a href="../../news/nowe-zasoby-ktorymi-pobierzesz-informacje-o-ocenach-ZM9L1WPBbUb" target="_blank">PL / <a href="../../news/new-resources-to-download-sales-feedback-d2VYERBMRiz" target="_blank">EN.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\AllegroSdk\Api\PublicUserInformationApi(
    // 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
);
$user_id = 41846511; // string | The ID of the user.

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

Parameters

Name Type Description Notes
user_id string The ID of the user.

Return type

\OpenAPI\AllegroSdk\Model\UserRatingSummaryResponse

Authorization

bearer-token-for-user

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.allegro.public.v1+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]