I have place a xml file online on OneDrive and shared whit everyone that use my program. Now I want to read this into my C# application. I have try a lot of code. A list below:
I have try whit a
HttpClient
and aHttpResponseMessage
. But it give me the html code from the webpage of OneDrive. I understand why if you look to the page.I have also looking for to use LiveSDK in my application whit the following code:
try { LiveConnectClient liveClient = new LiveConnectClient(this.session); LiveOperationResult operationResult = await liveClient.GetAsync(@"https://onedrive.live.com/?****"); dynamic result = operationResult.Result; } catch (LiveConnectException ex) { Debug.WriteLine("LiveConnectException catched => " + ex.Message); }
But I can't create an instance of
LiveConnectClient
because you need to log in and I don't want that. Found on this links: "Working with Microsoft OneDrive folders and files" on MSDN and "Store LiveConnectSession in WP7" on Stackoverflow.
Can anyone help me or explain it? I need only the xml code (not the html code) and will make a graph of the data. I use the language C# for load the file. Sorry for my bad english or some mistakes, I'm new with Microsoft Live accounts and access in into an application.
Thanks