Skip to content

Add List Platform Keys endpoint - #482

Merged
kirre-bylund merged 2 commits into
devfrom
task/list-platform-keys
Jul 17, 2026
Merged

Add List Platform Keys endpoint#482
kirre-bylund merged 2 commits into
devfrom
task/list-platform-keys

Conversation

@kirre-bylund

Copy link
Copy Markdown
Contributor

Adds support for GET /game/platform-keys/v1 returning platform keys redeemed by the authenticated player.

Changes

  • New DTOs (PlatformKeyRequests.cs): LootLockerPlatformKeyCampaign, LootLockerPlatformKey, LootLockerListPlatformKeysResponse
  • New endpoint in LootLockerEndPoints: listPlatformKeys
  • New SDKManager method: ListPlatformKeys(Action<..., string forPlayerWithUlid = null)

API

GET /game/platform-keys/v1
Response: { "platform_keys": [{ "campaign": { "name": "...", "platform": "..." }, "key": "..." }] }

Closes lootlocker/index#1530

Adds support for GET /game/platform-keys/v1 returning platform keys
redeemed by the authenticated player.

- New DTOs: LootLockerPlatformKeyCampaign, LootLockerPlatformKey, LootLockerListPlatformKeysResponse
- New endpoint in LootLockerEndPoints: listPlatformKeys
- New SDKManager method: ListPlatformKeys() with optional forPlayerWithUlid

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds SDK support for the GET /game/platform-keys/v1 endpoint so client code can retrieve platform keys redeemed by the authenticated player.

Changes:

  • Added DTO/response models for platform keys (LootLockerPlatformKeyCampaign, LootLockerPlatformKey, LootLockerListPlatformKeysResponse).
  • Added a new endpoint definition (listPlatformKeys) to LootLockerEndPoints.
  • Added a new public SDKManager facade method ListPlatformKeys(...) under a new “Platform Keys” region.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
Runtime/Game/Requests/PlatformKeyRequests.cs.meta Adds Unity meta for the new requests file (currently missing standard MonoImporter block).
Runtime/Game/Requests/PlatformKeyRequests.cs Introduces DTOs/response type for deserializing /platform-keys/v1 responses.
Runtime/Game/LootLockerSDKManager.cs Adds the public ListPlatformKeys API method in a new region.
Runtime/Client/LootLockerEndPoints.cs Adds the listPlatformKeys endpoint constant.
Files not reviewed (1)
  • Runtime/Game/Requests/PlatformKeyRequests.cs.meta: Generated file

Comment thread Runtime/Game/Requests/PlatformKeyRequests.cs.meta Outdated
Comment thread Runtime/Game/LootLockerSDKManager.cs
Comment thread Runtime/Game/LootLockerSDKManager.cs
- Added MonoImporter section to PlatformKeyRequests.cs.meta to match
  other script meta files in the folder
- Added @defgroup PlatformKeys entry in .doxygen/groups.dox
  so the new API appears in generated documentation
@kirre-bylund
kirre-bylund merged commit 0c4ad76 into dev Jul 17, 2026
43 of 49 checks passed
@kirre-bylund
kirre-bylund deleted the task/list-platform-keys branch July 17, 2026 14:31
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

Successfully merging this pull request may close these issues.

2 participants