fork download
    public class Api
    {
        public const string apiUrl = "http://j...content-available-to-author-only...e.com/photos";

        public async Task<IEnumerable<Photo>> GetPhotosAsync()
        {
            using HttpClient http = new HttpClient();
            using var response = await http.GetAsync(apiUrl);
            if(response.IsSuccessStatusCode)
            {
                string json = await response.Content.ReadAsStringAsync();
                return JsonConvert.DeserializeObject<IEnumerable<Photo>>(json);
            }
            return Array.Empty<Photo>();
        }

    }

    public class Photo
    {
        public int AlbumId { get; set; }
        public int Id { get; set; }
        public string Title { get; set; }
        public string Url { get; set; }
        public string ThumbnailUrl { get; set; }
    }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,18): error CS1525: Unexpected symbol `HttpClient', expecting `('
prog.cs(8,18): error CS1525: Unexpected symbol `var', expecting `('
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty