Changes between Version 6 and Version 7 of API/BBS/Get-All-Topics-From-Specify-Forum


Ignore:
Timestamp:
05/20/2011 09:47:20 AM (15 years ago)
Author:
pangchongyang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • API/BBS/Get-All-Topics-From-Specify-Forum

    v6 v7  
    1616 
    1717 
     18 
     19== Note == 
     20 
     21 
     22 
     23{{{ 
     24HTTP/1.1 200 OK 
     25Server: nginx/0.8.42 
     26Date: Wed, 04 May 2011 10:19:44 GMT 
     27Content-Type: text/html; charset=UTF-8 
     28Transfer-Encoding: chunked 
     29Connection: keep-alive 
     30X-Page: 1,91 
     31}}} 
     32 
     33|| X-Page || 当前第几页,共有多少个帖子 ||  
     34 
     35 
     36客户端分页时,必须要作如下设置 
     37 
     38{{{ 
     39PAGINATION_SIZE 10 # 每页里面有多少个 posts 
     40 
     41splits = X-Page.split(",") 
     42current_page_num = splits[0] 
     43total_posts = splits[1] 
     44 
     45total_page = total_posts / PAGINATION_SIZE; # 一共有多少页 
     46}}} 
     47 
     48 
    1849== Examples == 
    1950