mrt1m / playstation-store-api

A simple wrapper for working with PlayStation Store API 🎮
MIT License
50 stars 6 forks source link

Нету даты релиза и описания у DLC #6

Closed CEH9IRUS closed 10 months ago

CEH9IRUS commented 1 year ago

https://store.playstation.com/en-tr/product/EP4133-PPSA10695_00-ATOHATOMICPASS01 пытаюсь получить информацию о DLC, и не выдает releaseDate и descriptions

mrt1m commented 10 months ago

Выполняю код и получаю дату релиза, проверьте что верно выбран регион - RegionEnum::TURKEY_ENGLISH

<?php
declare(strict_types=1);

use PlaystationStoreApi\Client;
use GuzzleHttp\Client as HTTPClient;
use PlaystationStoreApi\Enum\RegionEnum;
use PlaystationStoreApi\Request\RequestProductById;

require_once __DIR__ . '/../vendor/autoload.php';

const API_URL = 'https://web.np.playstation.com/api/graphql/v1/';

$client = new Client(RegionEnum::TURKEY_ENGLISH, new HTTPClient(['base_uri' => API_URL, 'timeout' => 5]));

/**
 * Example for https://store.playstation.com/en-us/product/UP0001-CUSA09311_00-GAME000000000000
 */
$result = $client->get(new RequestProductById('EP4133-PPSA10695_00-ATOHATOMICPASS01'));

echo json_encode($result, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);

Результат - get_product_by_id.json