Write a PSN game list plug-in (based on the trophy interface)

Someone in the group asked if I could build a Playstation game list plug-in. I spent my spare time researching the Sony interface and writing a set of plug-ins.

Demo

principle

The API of the PSN is not public. Someone on Github has sorted out a set of API interfaces by capturing the http message of the Playstation mobile app. For details, please refer to these warehouses:

  1. PlayStation-Trophies
  2. PsnApiWrapperNet

After testing, some interfaces can work normally. We can use these interfaces to do something.

structure

This writing is divided into three parts. The first is a pure PHP program, which provides a Rest style PSN data access interface. The other two are plug-ins based on WordPress, which are mainly used to set account information and display pages. Their relationship is shown in the following figure:

The part of API access is written as an independent service, which mainly draws lessons from the chasing plug-in. The Fancy plugin uses a non-public API. When the API interface of Fancy Opera site changes, all users will be unable to access it.

This time, the structure of accessing the third-party site API is extracted into a separate program, which can not only provide a unified data structure package for other programs, but also facilitate the modification when the API changes.

The split account and other personal data settings and the front display page are two plug-ins, which are also based on the feedback of the Chase Fan plug-in. Some people only need to take standardized json data, and do not need to add superfluous front-end output; Some people want to change the front end, but they don't know how to start. This time, it is disassembled into two pieces, so that users can install whatever they want.

When writing the access interface, a PHP Rest style framework is used. If nothing unexpected happens, other APIs will be developed under this framework in the future.

Why use the trophy list

Sony's API is non-public. At present, only the trophy list has stable and complete game data output.

I tried the GameList interface before and found that only the game data of PS4 and PS5 can be returned. A week later, the access permissions of this interface also changed, which made me unable to get data.

Get Plug in

Plug ins are still under development and testing, And with the change of Sony API, the plug-in may become invalid soon

The two plug-ins above are WordPress plug-ins, To display the list, you also need the access permission of the PSN Wrapper interface program on the back end The interface program will be released after the development is completed, and the maintenance will not be continued in large probability.

There is a test server available in the group. Partners who want to participate in it or use the interface immediately can join the group discussion.

Since it may fail soon, why should it be released

To introduce new ideas and technical exchanges.

Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/7957.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*