Giter Club home page Giter Club logo

playstation-store-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

playstation-store-api's Issues

Issue with catalogue api

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?

Package requires exact guzzlehttp/guzzle 7.3.0 and get conflicted

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?

Issue with pagination

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.