paraworld.lobby.GetBBS

Description

取得某个频道的某个时间之后的所有消息

Parameters

RequiredSorted ascending Name Type Description
optional afterDate string 指定时间后的消息,如果为空,则不计
optional pageIndex int 以0开始的页码,默认值为0
optional pageSize int 每页的最大数据量,默认值为50
required sessionKey string 用户凭证。
required channel string 频道名称

Example Return XML

<msg>
        <channel type="string">Channel_1</channel>
        <msgs>
                <param index="1">
                        <uid type="string">8fe3c737-6f78-4e05-acd2-addf3e3b04a2</uid>
                        <date type="string">2008-6-23 16:43:42</date>
                        <content type="string">Channel_1  111</content>
                </param>
                <param index="2">
                        <uid type="string">8fe3c737-6f78-4e05-acd2-addf3e3b04a2</uid>
                        <date type="string">2008-6-23 16:44:05</date>
                        <content type="string">Channel_1  222</content>
                </param>
        </msgs>
</msg>

Error Codes

当发生异常时,返回数据中会有一个“errorCode”节点,该节点记录了错误码。0:无异常 500:未知错误 499:提供的数据不完整 498:非法的访问 497:数据不存在或已被删除 496:未登录

查看完整的Error Code

Test Cases

case 1

Input:

{
        ["sessionKey"]="ed06733e-986d-4236-8fc8-9f8300456c21",
        ["pageIndex"]=0,
        ["afterDate"]="2008-1-1",
        ["pageSize"]=50,
        ["channel"]="Channel_1",
}

Result:

{
        ["msgs"]={
                [1]={
                        ["date"]="2008-6-23 16:03:18",
                        ["uid"]="ed06733e-986d-4236-8fc8-9f8300456c21",
                        ["content"]="Hello 111",
                },
                [2]={
                        ["date"]="2008-6-23 16:06:40",
                        ["uid"]="ed06733e-986d-4236-8fc8-9f8300456c21",
                        ["content"]="Hello 222",
                },
        },
        ["channel"]="Channel_1",
}
Topic revision: r1 - 2008-06-23 - CaoYF
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback