Created
July 24, 2021 10:50
-
-
Save sebj/239fb074429f632b4508c48cb2344cc6 to your computer and use it in GitHub Desktop.
PlayStation Game Library GraphQL Queries/Mutations 2021-07-24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query backwardCompatibility($titleIds: String) { | |
backwardsCompatibilityRetrieve(titleIds: $titleIds) { | |
titleBackwardsCompatibilityList { | |
titleId, | |
category | |
} | |
} | |
} | |
query downloadProgress($entitlementId: ID, $duid: ID) { | |
downloadProgressRetrieve(entitlementId: $entitlementId, duid: $duid) { | |
commandId | |
downloadedSize | |
playableSize | |
pollInterval | |
remainingTime | |
status | |
totalSize | |
} | |
} | |
query GetRemoteDownloadList($platform: Platform!, $statusTypes: [DownloadStatus], $duid: String) { | |
remoteDownloadStatusesRetrieve(platform: $platform, statusTypes: $statusTypes, duid: $duid) { | |
downloadStatuses { | |
entitlementId | |
media { | |
type | |
url | |
} | |
platform | |
status | |
title | |
reasonCode | |
} | |
} | |
} | |
query getUserGameList ( | |
$limit: Int, | |
$subscriptionService: SubscriptionService, | |
$orderBy: String, | |
$categories: String) | |
{ | |
gameLibraryTitlesRetrieve ( | |
limit: $limit, | |
subscriptionService: $subscriptionService, | |
orderBy: $orderBy, | |
categories: $categories) | |
{ | |
games { | |
conceptId, | |
entitlementId, | |
image { | |
url, | |
}, | |
isActive, | |
lastPlayedDateTime, | |
name, | |
platform, | |
productId, | |
subscriptionService, | |
titleId, | |
} | |
} | |
} | |
query getPurchasedGameList( | |
$isActive: Boolean, | |
$platform: [String], | |
$size: Int, | |
$sortBy: String, | |
$sortDirection: String, | |
$start: Int, | |
$subscriptionService: SubscriptionService) | |
{ | |
purchasedTitlesRetrieve( | |
isActive: $isActive, | |
platform: $platform, | |
size: $size, | |
sortBy: $sortBy, | |
sortDirection: $sortDirection, | |
start: $start, | |
subscriptionService: $subscriptionService, | |
) { | |
games { | |
conceptId, | |
entitlementId, | |
image { | |
url, | |
}, | |
isActive, | |
isDownloadable, | |
isPreOrder, | |
name, | |
platform, | |
productId, | |
subscriptionService, | |
titleId, | |
} | |
pageInfo { | |
isLast, | |
offset, | |
size, | |
totalCount, | |
} | |
} | |
} | |
query getUserDevices { | |
deviceStorageDetailsRetrieve { | |
duid | |
deviceName | |
devicePlatform | |
deviceStorageDetails { | |
deviceAvailableSpace | |
installedGames { | |
title | |
titleId | |
name | |
installationSize { | |
bytes | |
} | |
media { | |
url | |
} | |
targetPlatforms | |
} | |
} | |
} | |
} | |
query pollDownloadProgress( | |
$commandId: ID, | |
$duid: ID, | |
$entitlementId: ID, | |
) { | |
pollDownloadProgressRetrieve( | |
commandId: $commandId, | |
duid: $duid, | |
entitlementId: $entitlementId, | |
) { | |
commandId | |
downloadedSize | |
playableSize | |
pollInterval | |
remainingTime | |
status | |
totalSize | |
} | |
} | |
mutation initiateDownload($scheduleRequests: RemoteDownloadScheduleInput!) { | |
remoteDownloadSchedule(scheduleRequests: $scheduleRequests) { | |
entitlementId | |
errorCode | |
reasonCode | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment