Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ curl -X POST http://localhost:3000/inventory/playfab -H "Authorization: Bearer
```bash
curl -X POST http://localhost:3000/inventory/playfab/test -H "Authorization: Bearer <JWT>" -H "Content-Type: application/json" -d '{"playfabToken":"XBL3.0 x=<uhs>;<xstsToken>","entityType":"title_player_account","count":50}'
```
* `playfabToken` comes from `POST /auth/callback` in this API (response field `playfabToken`).
* Use `entityType=master_player_account` to target the master entity. If you want a specific entity id, pass `entityId`. Otherwise the service uses the PlayFabId returned by LoginWithXbox.

### 10) Captures (screenshots) → `/captures/screenshots`
```bash
Expand Down
3 changes: 3 additions & 0 deletions src/routes/inventory.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,19 @@ router.post("/playfab", jwtMiddleware, asyncHandler(async (req, res) => {
* playfabToken:
* type: string
* description: PlayFab XSTS token in the form XBL3.0 x={uhs};{token}
* example: "XBL3.0 x=<uhs>;<xstsToken>"
* entityType:
* type: string
* enum: [title_player_account, master_player_account]
* default: title_player_account
* example: "title_player_account"
* entityId:
* type: string
* description: Optional entity id override for the chosen entity type
* collectionId:
* type: string
* default: "default"
* example: "default"
* count:
* type: integer
* default: 50
Expand Down