WindowsLive Contact List
-
Monday, February 11, 2008 11:36 PM
I am trying to get contact list for MSN messenger using the WIndowsLive messenger Sample API
The sample email
WLCRest@hotmail.com and password works fine and i get the list.
But when i replace it with my UserID and Pwd, not able to get the list!!
public const string strSampleWLID = "pathivinay@hotmail.com"; //WLCRest@hotmail.com public const string strSamplePUID = "1688852014266854"; public const string strSamplePassword = "password"; public const string strSampleHostName = "cumulus.services.live.com"; // Do i have to change this?public const string strSampleAuthHeader = "Authorization";
public const string strSampleAuthHeaderToken = @"A:20070426T000650Z:really.randomthirdparty.com:AtQDV882yzjy1tl9D5SO1vGM4uxG0U6RAtGRyQiLSyHr0IqPRGXUPQsflp4t8zwKkPRE9lsuNNa7c1BbEn7xQCw9MAH5Ul5+8Y+/LsemCgzWLN9Z4f3E98fXHqw6THofMUgmKc2ob9dBEe0k+nEXwicexxTEnV8eOH+Idm6sE0py5x4lI41zGWGWGFkVz0v2i5HSK7DmRz3qG4LsJKshBsK5DUX/Hrt/G06Y1ublIb5EuYsRZS/vrh+gtGTHkpWTdd1vP3HCg+cJ/a2gCTHZ9EMGSGNBkLrQKURUEzQDVuNs6zK9+91/U6EFRAHdIZJpasNmfVgUnj9z9fYMFFnGWw==";
public const string strSampleAuthHeaderValue = "DomainAuthToken at=\"" + strSampleAuthHeaderToken + "\"";
public
const int iSamplePort = 443; // Do i have to change this?UriBuilder
uriBuilder = new UriBuilder();uriBuilder.Scheme =
"HTTPS";uriBuilder.Path =
"/" + strSampleWLID + "/LiveContacts/Contacts";uriBuilder.Host = strSampleHostName;
uriBuilder.Port = iSamplePort;
string uriPath = uriBuilder.Uri.AbsoluteUri;Please suggest
Thanks
VInay
Answers
-
Wednesday, February 27, 2008 2:04 AM
VInay:
I think your problem happens because you are using a domain authentication token that is specific for WLCRest@hotmail.com and so it is not valid for your other user. You should receive a 401 response meaning your credentials are not valid.To solve the problem, you need to get a valid token for the new user.
You do not need to use the PUID.
Let me know if this helps.
All Replies
-
Tuesday, February 12, 2008 4:04 PM
Hello Vinay,
What error code are you getting?
http://msdn2.microsoft.com/en-us/library/bb463952.aspx
if we know it, it will be very nice
-
Wednesday, February 27, 2008 2:04 AM
VInay:
I think your problem happens because you are using a domain authentication token that is specific for WLCRest@hotmail.com and so it is not valid for your other user. You should receive a 401 response meaning your credentials are not valid.To solve the problem, you need to get a valid token for the new user.
You do not need to use the PUID.
Let me know if this helps.
-
Monday, April 21, 2008 8:56 PM
Hey Federico,
I have tried to implement the Contacts Reader API but it is not working.
I really appreciate if you can pass me some working sample code.
Thanks & Regards
Reddy
-
Wednesday, April 23, 2008 2:17 PM
Might be worth taking a look at the interactive SDK for Live Data (which includes the Contacts elements), which can be found at http://dev.live.com/livedata/sdk/ as that will have working code that you can look at and use.
-
Monday, September 29, 2008 9:16 AM
Hi can you please any one help me how to list out all the contact objects which are present in the active directory or please provide me piece of vb.net code or C# code to list all the the contact object in active directory.
Thanks in advance
Mukund