Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retrieving the actual PSNID of the game, not just the npCommunicationID #156

Open
platinumachievements opened this issue Feb 23, 2024 · 1 comment

Comments

@platinumachievements
Copy link

platinumachievements commented Feb 23, 2024

Im trying to get the actual psnid of the game that the trophy list is attached to. im aware the trophy list for the game is the npcommunication id.

i.e Portal Knghts game ID for the US region is CUSA06266
the trophy link id is - "npCommunicationId": "NPWR12397_00",
the url is - https://store.playstation.com/en-us/product/UP4040-CUSA06266_00-PORTALKNIGHTS000

im after either - UP4040-CUSA06266_00-PORTALKNIGHTS000 or CUSA06266

the reason why is im trying to get to the hero image (the main title image of the game) is there any endpoints that i can get either the gameid/url or the hero image url

Many thnaks in Advance

@platinumachievements
Copy link
Author

just to add to this, the information i require is in the getRecentlyPlayedGames call, however this is only for the user that has the associated token. i want to use it on specific users. im especially interested in getting the entitlementId, titleId or productId.

this is the return call from the getrecentlyplayedgames call. -

const mockResponse: RecentlyPlayedGamesResponse = {
data: {
gameLibraryTitlesRetrieve: {
__typename: "GameList",
games: [
{
__typename: "GameLibraryTitle",
conceptId: "203715",
entitlementId: "EP2002-CUSA01433_00-ROCKETLEAGUEEU01",
image: {
__typename: "Media",
url: "https://image.api.playstation.com/gs2-sec/appkgo/prod/CUSA01433_00/7/i_5c5e430a49994f22df5fd81f446ead7b6ae45027af490b415fe4e744a9918e4c/i/icon0.png"
},
isActive: true,
lastPlayedDateTime: "2023-03-10T01:01:01.390000Z",
name: "Rocket League®",
platform: "PS4",
productId: "EP2002-CUSA01433_00-ROCKETLEAGUEEU01",
subscriptionService: "NONE",
titleId: "CUSA01433_00"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant