AppHarbor.Client.AppHarborClient.GetAuthenticatedWebClient C# (CSharp) Method

GetAuthenticatedWebClient() private static method

private static GetAuthenticatedWebClient ( string token ) : WebClient
token string
return System.Net.WebClient
        private static WebClient GetAuthenticatedWebClient(string token)
        {
            WebClient cl = new WebClient();
            cl.Headers.Add("Accept", "application/json");
            cl.Headers.Add("Authorization", "BEARER " + token);

            return cl;
        }