Altering Contacts / Groups

If I have access to hotmail accounts(from a database containing hotmails and their passwords). How can I programaticlly change the contact information of the accounts using Windows Live Contacts API/ Windows Live Data API(if possible)?
[241 byte] By [Hisham_85] at [2008-2-5]
# 1
can anyone help please!!
Hisham_85 at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 2
I realize that I should use RPS authentication ? am I right?

However this code is causing an exception:

static void Main(string[] args)
{
TicketAcquirer t = new TicketAcquirer();
string s = t.GetTicket(); // ticket format t=xxx=
Test(s);
}

static void Test(string token)
{
String uri = "https://cumulus.services.live.com/my_email@hotmail.com/LiveContacts/Contacts";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.Method = "GET";
request.Headers.Add("Authorization", "WLID1.0 t=\"" + token + "\"");
try
{
HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // error here
XmlDocument contacts = new XmlDocument();
contacts.LoadXml(new StreamReader(response.GetResponseStream()).ReadToEnd());
contacts.Save("MyContacts.xml");
response.Close();
}

catch (WebException ex)
{
Console.WriteLine(ex.Message);
}
}

What am I doing wrong?

Hisham_85 at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 3
same code is working now seems that their were server errors..?
Hisham_85 at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...
# 4

Hisham:

If I understand your last post correctly, your problem has been solved. Let me know if you still need help.

FedericoRaggi-MSFT at 2007-10-3 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Data Development...

Windows Live Developer Forums

Site Classified