[Building Sakai] get all chat messages for a channel
Adrian Fish
adrian.r.fish at gmail.com
Mon Feb 25 08:08:06 PST 2013
Hi Zhen,
This gets the channel ids for a site ...
http://localhost/direct/chat-channel.json?siteId=SITE_ID
This gets your messages for a channel id thus returned ...
http://localhost/direct/chat-message.json?channelId=CHANNEL_ID
CHANNEL_ID is the id attribute that comes back from the first call.
Cheers,
Adrian.
On 25 February 2013 15:49, Zhen Qian <zqian at umich.edu> wrote:
> Hi, all:
>
> How can I get all the chat messages for a given channel, via the "/direct"
> RESTful url?
>
> I have tried
>
> https://{server_url}/direct/chat-message?channelId={channel_id}
>
> and
>
> https://{server_url}/direct/chat-channel/{channel_id}
>
> However, the first url returns 0 messages, and the latter returns the
> channel entity information.
>
> Thanks,
>
> - Zhen
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130225/f1341707/attachment.html
More information about the sakai-dev
mailing list