Steam API GetFriendList how to write in an array the data obtained?

In General,I want to using the API steam friends list,turned out to give the request but as I understand, friendlist needs to be in the mountains "The user's friends list as an array of friends. Nothing will be returned if the profile is private.",added List<> but I don't know how to use it properly,help

Program.cs :
using RestEase;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Test_steam_friends
{
class Program
{
private static Iinterface client;
static async Task Main(string[] args)
{
string url = " api.steampowered.com/ISteamUser/GetFriendList/v0001";
client = RestClient.For(url);

string key = "XXXXXXXXXXXXXXXXXXXXXXXXX"; //hidden API
await Get(key);

Console.ReadKey();
}

private static async Task> Get(string key)
{

string steamid = "76561198068038882";
string relationship = "friend";

var friendlist = new List();

friendlist = await client.GetFriendList(key,steamid,relationship);

return friendlist;
}
}
}
==============================================
Iinterface.cs :
using RestEase;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace Test_steam_friends
{
public interface Iinterface
{
[Get]
Task> GetFriendList([Query("Key")]string Key,string steamid,string relationship);
}
}
April 4th 20 at 00:53
0 answer

Find more questions by tags Steam