API for flight info

here is the code -

private const string fxmlUrl = “http://flightxml.flightaware.com/json/FlightXML3”;
private const string username = “MYUSERNAME”;
private const string apiKey = “MYAPIKEY”;
private static UriBuilder uriBuilder = new UriBuilder(fxmlUrl);

    public static void GetFlightData(string flightName)
    {
        var requestUrl = fxmlUrl.AppendPathSegment("FlightInfoStatus")
                .SetQueryParams(new { ident = "CAP85" });
        ProcessRepositories(requestUrl, username, apiKey).Wait();
    }

    private static async Task ProcessRepositories(string apiUrl, string username, string apiKey)
    {
        var serializer = new DataContractJsonSerializer(typeof(ArrayOfFlightInfoStatusStruct));
        var client = new HttpClient();
        var credentials = Encoding.ASCII.GetBytes(username + ":" + apiKey);
        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(credentials));

        var streamTask = client.GetStreamAsync(apiUrl);
        try
        {
            var arrayOfFlightInfoStatusStruct = serializer.ReadObject(await streamTask);// as ArrayOfFlightInfoStatusStruct;
        }catch(Exception e)
        {
            int y1 = 0;
        }
    }