0

Problem with notifications

Hi there,

I'm using the Messenger IM API and trying to get notifications, using both the periodic pooling way and the comet-style push way, the response json is wrong.

The answer is:

{ "@pendingMsg" : 0, "@syncStatus": 0, "responses" : [ { "buddyInfo" : { "sequence" : 0, "contact" : [ { "sender" : "xpto" , "presenceState" : 99, "presenceMessage" : "working.." , "customDNDStatus" : 0, "checksum" : "368326609" , "avatarUser" : 0, "avatarPreference" : "2" , "clientCapabilities" : 16777151} ] } }

You can notice there is no "]" for the "responses" array.

Can you fix this quickly? I'm using this for my master degree final project and i'm on a tight schedule...

Thanks in advance,
Carlos Vicente

4 Replies
  • QUOTE (Carlos Vicente @ Sep 8 2010, 06:29 AM) <{POST_SNAPBACK}>
    Hi there,

    I'm using the Messenger IM API and trying to get notifications, using both the periodic pooling way and the comet-style push way, the response json is wrong.

    The answer is:

    { "@pendingMsg" : 0, "@syncStatus": 0, "responses" : [ { "buddyInfo" : { "sequence" : 0, "contact" : [ { "sender" : "xpto" , "presenceState" : 99, "presenceMessage" : "working.." , "customDNDStatus" : 0, "checksum" : "368326609" , "avatarUser" : 0, "avatarPreference" : "2" , "clientCapabilities" : 16777151} ] } }

    You can notice there is no "]" for the "responses" array.

    Can you fix this quickly? I'm using this for my master degree final project and i'm on a tight schedule...

    Thanks in advance,
    Carlos Vicente


    Can you please confirm that you see bad json response in comet-style push way?

    Thanks,
    George
    0
  • QUOTE (Guanhua YE @ Sep 8 2010, 02:29 PM) <{POST_SNAPBACK}>
    Can you please confirm that you see bad json response in comet-style push way?

    Thanks,
    George


    The json i wrote is the actual response (i changed the sender id) from the notification api comet-style push and it's wrong. It begins an array, but it doesn't close it... And i just realized that not only the "responses" array doesn't have a closing rectangular brackets, but also there“s missing the global object closing brackets...

    {
    "@pendingMsg" : 0,
    "@syncStatus": 0,
    "responses" :
    [
    {
    "buddyInfo" :
    {
    "sequence" : 0,
    "contact" :
    [
    {
    "sender" : "xpto" ,
    "presenceState" : 99,
    "presenceMessage" : "working.." ,
    "customDNDStatus" : 0,
    "checksum" : "368326609" ,
    "avatarUser" : 0,
    "avatarPreference" : "2" ,
    "clientCapabilities" : 16777151
    }
    ]
    }
    }


    It's missing a "]}" at the end

    Thanks,
    Carlos Vicente
    0
  • Can you pass the id you did the test with? also can you reproduce it? Can you please provide your email address so that I can contact you.

    Thanks,
    George
    Yahoo Messenger
    0
  • QUOTE (GeorgeY @ Sep 9 2010, 10:19 AM) <{POST_SNAPBACK}>
    Can you pass the id you did the test with? also can you reproduce it? Can you please provide your email address so that I can contact you.

    Thanks,
    George
    Yahoo Messenger



    You can contact me with carlosvicente200@hotmail.com

    Thanks,
    Carlos Vicente
    0

Recent Posts

in Messenger IM SDK