psnawp icon indicating copy to clipboard operation
psnawp copied to clipboard

Basic Presence Endpoint

Open isFakeAccount opened this issue 1 year ago • 0 comments

Basic Presence Endpoint accepts multiple account ids.

https://m.np.playstation.com/api/userProfile/v2/internal/users/basicPresences?accountIds=940512162723934331%2C4273405838384737823%2C5361973517281706660&platforms=PS4%2CPS5%2CMOBILE_APP%2CPSPC&type=primary&withOwnGameTitleInfo=true

It should be moved to client class from user class and accept multiple account ids.

Example response:

{
  "basicPresences": [
    {
      "accountId": "940512162723934331",
      "availability": "availableToPlay",
      "primaryPlatformInfo": {
        "onlineStatus": "online",
        "platform": "PS5"
      },
      "gameTitleInfoList": [
        {
          "npTitleId": "CUSA14296_00",
          "titleName": "Rust",
          "format": "PS4",
          "launchPlatform": "PS5"
        }
      ]
    },
    {
      "accountId": "4273405838384737823",
      "availability": "unavailable",
      "lastAvailableDate": "2025-02-23T11:44:18.789Z",
      "primaryPlatformInfo": {
        "onlineStatus": "offline",
        "platform": "PS4",
        "lastOnlineDate": "2025-02-23T11:44:18.789Z"
      }
    },
    {
      "accountId": "5361973517281706660",
      "availability": "unavailable",
      "lastAvailableDate": "2025-02-23T14:16:39.770Z",
      "primaryPlatformInfo": {
        "onlineStatus": "offline",
        "platform": "PS5",
        "lastOnlineDate": "2025-02-23T14:16:39.770Z"
      }
    }
  ]
}

isFakeAccount avatar Feb 25 '25 05:02 isFakeAccount