Root Call Not Authorized


(ross.m.tiktin@gmail.com) #1
        I successfully retrieved the access token then immediately execute the C# code below.   I get this exception. What am I doing wrong?


       Response:  WebException: The remote server returned an error: (401) Unauthorized.

       HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api-sandbox.dwolla.com/");         
        request.ContentType = "application/vnd.dwolla.v1.hal+json";
        request.Accept = "application/vnd.dwolla.v1.hal+json";
        request.Headers.Add("Authorization", "Bearer " + Token.Access_token);
        var response = (HttpWebResponse)request.GetResponse();
        String responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
        return responseString;