mrt1m / playstation-store-api Goto Github PK
View Code? Open in Web Editor NEWA simple wrapper for working with PlayStation Store API 🎮
License: MIT License
A simple wrapper for working with PlayStation Store API 🎮
License: MIT License
Hey! First of all thank you for the library, it is awesome that you built this.
Im having issues with catalogue api, this is the curl of what im sending:
curl --location -g 'https://web.np.playstation.com/api/graphql/v1/op?operationName=categoryGridRetrieve&variables={%22id%22%3A%2244d8bb20-653e-431e-8ad0-c0a365f68d2f%22%2C%22pageArgs%22%3A{%22size%22%3A10%2C%22offset%22%3A0}%2C%22sortBy%22%3A{%22name%22%3A%22productReleaseDate%22%2C%22isAscending%22%3Afalse}%2C%22filterBy%22%3A[]%2C%22facetOptions%22%3A[]}&extensions={%22persistedQuery%22%3A{%22version%22%3A1%2C%22sha256Hash%22%3A%22cb5765103b5294add90a887683722f662e751fb7c3b944b63bc117127485d570%22}}' \ --header 'Host: web.np.playstation.com' \ --header 'x-psn-store-locale-override: en-US' \ --header 'Cookie: _abck=60FE12DF55263C134A398FD1336040B8~-1~YAAQmnnKFyKaaeaGAQAAlS6K9AmbtPJ0co6bCW4iUliH0wcJOSQlmPX+svYzq33rOZlQN9VRNJLFV8Oaepv9mjp01ImfjlGrm/GRNOobuVf/0/JdW3rEAOAq8BI6rXUuOhsoUehDTNY68PsQ+sHRS27XRcCZJnwj0yHDJmRKJSHBAa/pz4RCBmWH6coi4gLEn8w5sm7QtGn+JkiYG7utgzIxn+iQzqkFGQjmx77IHirVNW7y5eZI9WG4kJwPc4YIvDnY8bmMnUi+9NPWiwc9w/8/kDA5NBt6qT8+NvINsMuWfmwwmdcorlW3wPOc2GST/ruG12wO5J38u5LDVzTTXZyPtvsGY9Y5u+FRmyFIeGnJP/o/iR31cPLe8xGK8Ca7V8s0rOkquObGa/cqqKZMKtMyjeNfxRmF5psPYDXbE302~-1~-1~-1; bm_sz=C68C3B30CB4BAC2046DCA0C07C3AD7A5~YAAQmnnKF7KFaeaGAQAABDWE9BOoAFSMlLNNE83D2YuuAd6HDhjwA4K8PuRfyu4y3nJ5q78kC+Ph4wKcZUiU25bW6BIemQPnTJSeWGHg3hBCAipEDLf3kkHRhn6+a14KvblItOHei0YdAffHyVkIw362cHn68fdmtu7H/NZDnB0AvNPeECt6iG775p+mD9YajDvnDjgELOoDcftwQpzDNvvMjJ2jcpfX3AlJx6n9KDDjj1j0WelTbsQHhz/lEE8H3OFCjvBqvPhtALpuCOWlH2zjuuSbwgrDrBCUgC+yggPDntizTLuLCllgOtdhATk7dMXQtu+uEx+clI940SCkiYFqan9HieI5QNPOLHsPzej1LDve+cvo/JINoDI6Wsz/xu12E6ceXA==~4470067~4605492'
And the response for that is:
{ "errors": [ { "message": "Cannot read properties of undefined (reading 'operation')" } ] }
Can you help me out?
https://store.playstation.com/en-tr/product/EP4133-PPSA10695_00-ATOHATOMICPASS01 пытаюсь получить информацию о DLC, и не выдает releaseDate и descriptions
Hi, thank you very much for the library, great job!
I wanted to ask for advice: how best to deal with temporary blocking error - connect: connection refused? I tried a 60 second timeout, but it doesn't help for long.
Hello,
When I tried to install composer require mrt1m/playstation-store-api
but it requires exact version of guzzle which is guzzlehttp/guzzle:7.3.0
, I have another package which is aws/aws-sdk-php
requires guzzlehttp/guzzle: ^6.5.8 || ^7.4.5
and so now and I can't install mrt1m/playstation-store-api
is there any way to proceed it?
I'm using code from your example:
$client = new Client(RegionEnum::UNITED_STATES, new HTTPClient(['base_uri' => env('PSN_API_URL'), 'timeout' => 5]));
$result = $client->get(
RequestProductList::createFromCategory(CategoryEnum::OFFERS)
);
$products_list = $result['data']['categoryGridRetrieve']['products'];
And I can see you are using some custom pagination in RequestProductList.php:
public static function createFromCategory(CategoryEnum $categoryEnum): RequestProductList
{
return new self(
$categoryEnum->value,
new Pagination(10),
Sorting::createFromCatalogSorting(CatalogSortingEnum::RELEASE_DATE)
);
}
Is there a way to change pages or is it just stuck on first page? If there is, could you update example files, and documentation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.