DotNet Object to communicate with C2DS API?

I have never wrote anything related to Web. What DotNet object can be used to communicate with C2DS API? Can someone provide some hints or sample code? Thanks!

Let me dig up the C# C2ATI interface I wrote a while back - it does just this,

In that, I did the following:

XmlDocument xDoc = new XmlDocument();


string requestTemplate = "http://{0}:{1}?cmd=login&e={2}&p={3}&protoversion=8&client={4}&h=temp&build=1.0";

string request = string.Format(requestTemplate, initialIPAddress, initialIPPort, emailCollective2, passCollective2, clientCollective2);

WebRequest Request = WebRequest.Create(request);


WebResponse response = (WebResponse)Request.GetResponse();

Stream resStream = response.GetResponseStream();