|
Conversation
Conversationconversation.get_infoRetrieve information on specified conversation(s). If your session is authenticated, it also returns an unread counter for each conversation. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/get_info?session=98765abcDEF&cid=DEFabc98765&include_replies=10 <response>
<status>ok</status>
<converstaions>
<conversation>
<type>shout</type>
<timestamp>2008-04-03T18:05:00Z</timestamp>
<username>foo</username>
<state>open</state>
<fullname>The Foo Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>123</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/14/image.jpg</image_url>
<text>Hello!</text>
<unread>0</unread>
<replies>14</replies>
<messages>
<message>
<type>shout:reply</type>
<timestamp>2008-04-03T18:15:00Z</timestamp>
<username>bar</username>
<fullname>The Bar Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>128</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/32/image.jpg</image_url>
<text>This is reply 1.</text>
</message>
<message>
<type>shout:reply</type>
<timestamp>2008-04-03T18:15:30Z</timestamp>
<username>bar</username>
<fullname>The Bar Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>164</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/32/image.jpg</image_url>
<text>This is reply 2.</text>
</message>
</messages>
</conversation>
</conversations>
</response>conversation.get_repliesRetrieve a list of replies for the specified conversation. If your session is authenticated, it also returns an unread counter for each conversation. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/get_replies?session=98765abcDEF&cid=DEFabc98765&limit=10 <response>
<status>ok</status>
<messages>
<message>
<type>shout:reply</type>
<timestamp>2008-04-03T18:15:00Z</timestamp>
<username>bar</username>
<fullname>The Bar Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>128</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/32/image.jpg</image_url>
<text>This is reply 1.</text>
</message>
<message>
<type>shout:reply</type>
<timestamp>2008-04-03T18:15:30Z</timestamp>
<username>bar</username>
<fullname>The Bar Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>164</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/32/image.jpg</image_url>
<text>This is reply 2.</text>
</message>
</messages>
</response>conversation.shoutInitiate a shout. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/shout?session=98765abcDEF&text=hello <response> <status>ok</status> <cid>Ji8IIB5bIPv</cid> </response> conversation.whisperInitiate a whisper. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/whisper?session=98765abcDEF&users=foo,bar&text=hello <response> <status>ok</status> <cid>zpbi8p7Q7hz</cid> </response> conversation.replyReply in a conversation. If you reply as a guest, you must first set your guestname using session.set_guestname. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/reply?session=98765abcDEF&text=hello&cid=Ji8IIB5bIPv&local_id=4 <response> <status>ok</status> <serial_number>447</serial_number> <local_id>4</local_id> <timestamp>2008-04-03T22:13:54Z</timestamp> </response> conversation.deleteDelete a conversation including replies. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/delete?session=98765abcDEFcid=Ji8IIB5bIPv <response> <status>ok</status> </response> {"status": "ok"}conversation.delete_replyDelete a reply in a shout or a whisper. If you're the owner of the shout or whisper, you can delete any replies in it. If you're not the owner, you can delete only replies that you made. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/delete_reply?session=98765abcDEF&cid=Ji8IIB5bIPv&mid=453 <response> <status>ok</status> </response> {"status": "ok"}conversation.catch_upMark a specified conversation as read. URL:
Parameters:
(*) Required <response> <status>ok</status> </response> {"status": "ok"}conversation.muteStop receiving realtime notifications for the specified conversation(s). URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/mute?session=98765abcDEF&cid=DEFabc98765 <response> <status>ok</status> </response> conversation.unmuteStart receiving realtime notifications for the specified conversation(s) again. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/unmute?session=98765abcDEF&cid=DEFabc98765 <response> <status>ok</status> </response> conversation.favoriteMark the specified conversation(s) as favorites. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/favorite?session=98765abcDEF&cid=DEFabc98765 <response> <status>ok</status> </response> conversation.unfavoriteRemove the specified conversation(s) from the favorites list. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/unfavorite?session=98765abcDEF&cid=DEFabc98765 <response> <status>ok</status> </response> conversation.searchSearch shouts, replies, and, possibly, whispers, by keywords. If an authenticated session id is provided, results may contain whispers (and replies in whispers) that the authenticated user is a member of. Otherwise, results will only contain public shouts and replies in those shouts. URL:
Parameters:
(*) Required http://api.rejaw.com/v1/conversation/search?session=98765abcDEF&q=frog <response>
<status>ok</status>
<messages>
<message>
<type>shout</type>
<timestamp>2008-04-03T18:05:00Z</timestamp>
<username>foo</username>
<fullname>The Foo Dude</fullname>
<cid>DEFabc98765</cid>
<serial_number>123</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/14/image.jpg</image_url>
<text>I love frogs!</text>
</message>
<message>
<type>shout:reply</type>
<timestamp>2008-04-03T18:15:00Z</timestamp>
<username>bar</username>
<fullname>The Bar Dude</fullname>
<cid>8dk3FG94A09</cid>
<serial_number>167</serial_number>
<image_url>http://s3.amazonaws.com/rejaw/user_images/32/image.jpg</image_url>
<text>I hate frogs!</text>
</message>
</messages>
</response>
|