コード例 #1
0
        public async Task RevokeInventoryItem(string playFabId, string itemInstance)
        {
            var reqRevokeInventoryItem = new RevokeInventoryItemRequest
            {
                PlayFabId      = playFabId,
                ItemInstanceId = itemInstance
            };

            var result = await PlayFabAdminAPI.RevokeInventoryItemAsync(reqRevokeInventoryItem);

            if (result.Error != null)
            {
                throw new Exception(result.Error.ErrorMessage);
            }
        }