Windows Azure Platform Developer Center > Azure Forums > Live Framework > Live Service - Msn Contact List ASP sample
Ask a questionAsk a question
 

QuestionLive Service - Msn Contact List ASP sample

  • Thursday, September 10, 2009 8:15 AMCryptyy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, 

    Classic asp and "Live Service - MSN Contact List" I want to receive data. "Live service" is not about the classic asp example I can not find the solution. I'm getting the error code, error description could not reach the solution, but it still researched. I wonder where I would make mistakes. 

    Sample code and error output ... 

    Regards.

    <%

    ConsentToken = URLDecode(Request("ConsentToken"))
    deltData = Split(ConsentToken,"=")
    lidData = Split(ConsentToken,"=")
    delt = Replace(deltData(1),"&skey","")
    lid = lidData(5)

    Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
    xmlHTTP.open "GET", "https://livecontacts.services.live.com/users/@L@"& lid &"/rest/LiveContacts/Contacts", false, "","utf-8"
            xmlHTTP.setRequestHeader "Content-Type", "application/xml; charset=utf-8"
            xmlHTTP.SetRequestHeader "Authorization", "DelegatedToken dt="& delt &""
            xmlHTTP.send 

            strStatus = xmlHTTP.Status
    statusText = xmlHTTP.statusText
    %>


    Response:

    4 (status)
    401

     
    --------------------
    'Error Codes.
    'http://msdn.microsoft.com/en-us/library/bb463952.aspx

    401

    Unauthorized

    The caller is not authorized to perform this action on the target address book.

    401

    Unauthorized

    Invalid CallerID, Missing CallerID value or the Family Safety Assertion failed.



All Replies

  • Friday, September 11, 2009 7:13 PMCryptyyy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, 

    Classic asp and "Live Service - MSN Contact List" I want to receive data. "Live service" is not about the classic asp example I can not find the solution. I'm getting the error code, error description could not reach the solution, but it still researched. I wonder where I would make mistakes. 

    Sample code and error output ... 

    Regards.

    <%

    ConsentToken = URLDecode(Request("ConsentToken"))
    deltData = Split(ConsentToken,"=")
    lidData = Split(ConsentToken,"=")
    delt = Replace(deltData(1),"&skey","")
    lid = lidData(5)

    Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
    xmlHTTP.open "GET", "https://livecontacts.services.live.com/users/@L@"& lid &"/rest/LiveContacts/Contacts", false, "","utf-8"
            xmlHTTP.setRequestHeader "Content-Type", "application/xml; charset=utf-8"
            xmlHTTP.SetRequestHeader "Authorization", "DelegatedToken dt="& delt &""
            xmlHTTP.send 

            strStatus = xmlHTTP.Status
    statusText = xmlHTTP.statusText
    %>


    Response:

    4 (status)
    401

     
    --------------------
    'Error Codes.
    'http://msdn.microsoft.com/en-us/library/bb463952.aspx

    401

    Unauthorized

    The caller is not authorized to perform this action on the target address book.

    401

    Unauthorized

    Invalid CallerID, Missing CallerID value or the Family Safety Assertion failed.



    • Helpful Votes: 0     Views: 191 :(