From 0133b996c1d874740a810d3ca5df891bac54c775 Mon Sep 17 00:00:00 2001
From: Li
Date: Sun, 29 Jan 2023 21:19:59 -0800
Subject: [PATCH] Update PlayFab.py to have GetPublishedItem
---
.gitignore | 3 ++-
PlayFab.py | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index cdbbf71..c68d85b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -160,4 +160,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
-settings.json
\ No newline at end of file
+settings.json
+playfab-catalog.json
\ No newline at end of file
diff --git a/PlayFab.py b/PlayFab.py
index 35e23b2..939a764 100644
--- a/PlayFab.py
+++ b/PlayFab.py
@@ -162,6 +162,11 @@ def GetEntityToken(playfabId, accType):
PLAYFAB_SESSION.headers.update({"X-EntityToken": entitytoken})
return req
+def GetPublishedItem(itemId):
+ return sendPlayFabRequest("/Catalog/GetPublishedItem", {
+ "ETag": "",
+ "ItemId": itemId})
+
def Search(query, sfilter, orderBy, select, top, skip):
return sendPlayFabRequest("/Catalog/Search", {
"count": True,