Update PlayFab.py to have GetPublishedItem

This commit is contained in:
Li 2023-01-29 21:19:59 -08:00
parent fe17f5e854
commit 0133b996c1
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -160,4 +160,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
settings.json
settings.json
playfab-catalog.json

View File

@ -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,