HttpWebRequest spRequest = (HttpWebRequest)WebRequest.Create(jsonRequest); spRequest.Method = "GET"; spRequest.Accept = "application/json; odata=verbose"; //spRequest.Headers["Authorization"] = "Bearer" + accessToken; HttpWebResponse endpointResponse = (HttpWebResponse)await spRequest.GetResponseAsync(); Stream dataStream = null; StreamReader reader = null; string responseFromServer = null; dataStream = endpointResponse.GetResponseStream(); reader = new StreamReader(dataStream); responseFromServer = reader.ReadToEnd();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)