[Building Sakai] get all chat messages for a channel

Zhen Qian zqian at umich.edu
Mon Feb 25 08:17:15 PST 2013


Thanks, Adrian.

I found the default returned size if of 10 chat messages, so I have added
the items param to get more

http://localhost/direct/chat-message.json?channelId=CHANNEL_ID&items=N

However, the return list seems to be limited to recent 100 (though claimed
to be fixed in SAK-20928).

- Zhen


On Mon, Feb 25, 2013 at 11:08 AM, Adrian Fish <adrian.r.fish at gmail.com>wrote:

> 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/e3fc7249/attachment.html 


More information about the sakai-dev mailing list