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,