I am writing a Windows phone 8 app that is using an API to pull in some data that the app will need and to use the api, a username and password is required. I have been supplie
I don't know of any concerns that require you to style your code any different form normal
WebRequest request = WebRequest.Create("http://SomeProtectedUrl.com");
request.Credentials = new System.Net.NetworkCredential("username", "password");
to keep your username and password in a single spot, so that it would be easy to change you could use
public static string uname = "yourUsername";
public static string passwd= "yourPassword";
request.Credentials = new System.Net.NetworkCredential(uname, passwd);