{"repo":"mrt1m/playstation-store-api","free":true,"listed":false,"github":"https://github.com/mrt1m/playstation-store-api","clone":"git clone https://github.com/mrt1m/playstation-store-api.git","description":"A simple wrapper for working with PlayStation Store API 🎮","language":"PHP","stars":78,"topics":["api-client","php8","playstation","playstation-store"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"playstation-store-api is simple wrapper for working with PlayStation Store API 🎮 Installation ------------ Prerequisites PHP 8.1 or later The playstation-store-api can be installed using Composer by running the following command: Installation ------------ Create Client object using the following code: API Requests examples ------------ Request product data by id Request concept data by id Request catalog data Run examples ------------ If you want run examples, you need: 1) Docker and docker compose 2) Execute make command for example: 3) Get api response from response directory About request signing ------------ For all request you need send sha256Hash. It's request signature. You can get sha256Hash from browser request: 1) Open the Network panel and find query to https://web.np.playstation.com/api/graphql/v1/op 2) Copy the full request URL and use urldecode 3) sha256Hash is in the extensions parameter, example: If default sha256Hash will be blocked, you can replace the base value: 1) Get new sha256Hash value 2) Replace the default value in PlaystationStoreApi\\RequestLocatorService 3) Give $customRequestLocatorService to client Custom request ------------ If you need custom request: 1) Create new request class then implement PlaystationStoreApi\\Request\\BaseRequest 2) Append new request class with sha256Hash to PlaystationStoreApi\\RequestLocatorService 3) Give new RequestLocatorService to client 4) Execute client get method with new request","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrt1m","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrt1m/playstation-store-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}