0

Notification Management

Hi,

How can we handle notifications through Notification Management.I don't understand what they in documentation.
I tried Notification Management (Comet-Style Push) Api. But it gives the remote server returned an error: (403) Forbidden.
here is my request.

string _notify= _notifyServer +"/v1/pushchannel/"+primaryLoginId;
string format = "json";

HttpWebRequest request = WebRequest.Create("http://" + _notify+ "?&sid=" + sessionId + "&seq=" + 0
+ "&format="+format+ "&oauth_consumer_key=" + oauth_consumer_key
+ "&oauth_signature_method=" + oauth_signature_method + "&oauth_nonce="
+ oauth_nonce + "&oauth_timestamp=" + oauth_timestamp + "&oauth_signature="
+ oauth_signature + "&oauth_version=" + oauth_version + "&oauth_token="
+ oauth_token) as HttpWebRequest;
Thanks

by
4 Replies
  • Hi Rekha

    1. You can start with Periodic Polling notification first.
    2. Double check your http request, looks like something wrong in your request code.

    Thx
    ~jimmi
    0
  • QUOTE (Jimmi K @ Oct 10 2010, 09:50 PM) <{POST_SNAPBACK}>
    Hi Rekha

    1. You can start with Periodic Polling notification first.
    2. Double check your http request, looks like something wrong in your request code.

    Thx
    ~jimmi

    Hello,

    Now I am using Periodic Polling notification [/url] .It works.
    Previously I didn't set cookie in request for Comet-Style Push API.That's why error was coming but, now it’s resolved.

    Still I don't understand where we can write this request so that notification comes automatically. Means, no need to call again and again.

    Can you explain.
    Thanks
    0
  • YM Open API uses REST, you need to initiate connection first. Use periodic polling or comet-style for that.

    Thx
    ~jimmi
    0
  • QUOTE (Rekha Sharma @ Oct 14 2010, 02:25 AM) <{POST_SNAPBACK}>
    Hello,

    Now I am using Periodic Polling notification [/url] .It works.
    Previously I didn't set cookie in request for Comet-Style Push API.That's why error was coming but, now it’s resolved.

    Still I don't understand where we can write this request so that notification comes automatically. Means, no need to call again and again.

    Can you explain.
    Thanks


    Hi,
    Would you please post some snippets of how you managed to get the Comet-Style Push working ?
    I have a problem retreiving the cookie, well, it expires the moment when I get it and it has a stange pipe character (" | ") in it, which makes my Java app crash.

    Thanks
    DataSmith
    0

Recent Posts

in Messenger IM SDK