CSharpTradeOffers.Community.SteamUserHandler.GetPlayerBans C# (CSharp) Method

GetPlayerBans() public method

Gets the bans of the specified SteamId64s
public GetPlayerBans ( List playersBansToRequest ) : List
playersBansToRequest List A List of steamid64s to retrieve ban information about.
return List
        public List<PlayerBans> GetPlayerBans(List<ulong> playersBansToRequest)
        {
            const string url = BaseUrl + "GetPlayerBans/v1/";
            var data = new Dictionary<string, string>
            {
                {"key", _apiKey},
                {"steamids", CommaDelimit(playersBansToRequest)}
            };
            return _web.Fetch(url, "GET", data, null, false).DeserializeJson<GetPlayerBansResult>().PlayerBans;
        }