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

GetFriendList() public method

Retrieves the friends list of the specified steamid64. The profile must be set to public or the owner of the api key must be friends with them. The profile cannot be private or the method will fail and it will return null.
public GetFriendList ( ulong steamId, string relationship = "" ) : List
steamId ulong SteamId64 to retrieve the friends list from.
relationship string All/Friend, there are others but I do not know what.
return List
        public List<Friend> GetFriendList(ulong steamId, string relationship = "")
        {
            const string url = BaseUrl + "GetFriendList/v1/";
            var data = new Dictionary<string, string>
            {
                {"key", _apiKey},
                {"steamid", steamId.ToString()},
                {"relationship", relationship}
            };
            return _web.Fetch(url, "GET", data, null, false).DeserializeJson<GetFriendListResult>().Friendslist.Friends;
        }