Download the PHP package mrt1m/playstation-store-api without Composer
On this page you can find all versions of the php package mrt1m/playstation-store-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrt1m/playstation-store-api
More information about mrt1m/playstation-store-api
Files in mrt1m/playstation-store-api
Package playstation-store-api
Short Description A simple wrapper for working with PlayStation Store API
License MIT
Informations about the package playstation-store-api
playstation-store-api
1. Prerequisites
- PHP 8.1 or later
2. Installation
The playstation-store-api can be installed using Composer by running the following command:
3. Initialization
Create Client object using the following code:
4. API Requests
4.1. Request product data by id
4.2. Request concept data by id
4.3. Request catalog data
5. 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
5. 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
6. 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
7. Postman collection
You can try playstation api with postman.
For import collection download playstation api.postman_collection.json