国产精品爱啪在线线免费观看_97视频精品_欧美精品一区二区在线播放_国产欧美久久一区二区三区

新秀網(wǎng)絡(luò)驗(yàn)證系統(tǒng)

標(biāo)題: 查詢是否有新消息 [打印本頁]

作者: admin    時(shí)間: 2021-2-25 22:34
標(biāo)題: 查詢是否有新消息
查詢是否有新消息
接口說明: 查詢是否有新消息,與DZ內(nèi)置數(shù)據(jù)互通。

接口詳情
請(qǐng)求地址:http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:pm
請(qǐng)求方式: GET   
返回格式: JSON\XML     /*默認(rèn)返回JSON格式,如需返回XML格式,請(qǐng)?jiān)诮涌诰W(wǎng)址后面增加&output=xml參數(shù)*/

請(qǐng)求參數(shù)(所有參數(shù)值均URL加密后傳輸【注意GBK與UTF8編碼區(qū)別】
參數(shù)類型是否必含說明示例
token[string]token令牌(初始化用戶登錄獲取)7c8ehANCUGOtcVTTIMT0TDqC0Ipq8o0itF4DqgH5K_x
in_xiu_XBl4YFhzu72k3jZx3E_xinxiu_Fa2DR3q
action[string]接口方法pm_checknew
more[string]是否顯示更多信息,0為顯示數(shù)量、1為顯示具體數(shù)據(jù)
1

請(qǐng)求示例(GET)
  1. http://demo.xinxiuvip.com/plugin.php?id=xinxiu_network:pm&token={token令牌}&action=pm_checknew&more=1
復(fù)制代碼

返回參數(shù)所有接口返回?cái)?shù)據(jù)含中文時(shí)“\u672c\u6846”,請(qǐng)用USC2進(jìn)行解碼
參數(shù)類型是否必含說明示例
code[number]http狀態(tài)碼200
result[string]錯(cuò)誤信息狀態(tài)碼OK
count[number]數(shù)組成員數(shù)7
data[object]數(shù)組
data>>count[number]新消息數(shù)(為0就是沒有新消息,大于0就是有新消息)&more參數(shù)為空時(shí),只返回此參數(shù)2
data>>plid[string]短消息會(huì)話id
data>>uid[string]用戶uid
data>>pmnum[string]會(huì)話短消息數(shù)量
data>>lastupdate[string]上一次會(huì)話時(shí)間
data>>lastdateline[string]最后一次會(huì)話時(shí)間
data>>authorid[string]發(fā)起者uid,群聊中此uid為群主
data>>pmtype[string]短消息類型,1為短消息,2為群聊
data>>subject[string]短消息或群聊發(fā)起時(shí)的標(biāo)題
data>>members[string]短消息或群聊人數(shù)
data>>dateline[string]短消息或群聊開始時(shí)間
data>>lastmessage[string]最后一條信息內(nèi)容【firstauthorid:用戶uid,firstauthor:用戶名,firstsummary:信息內(nèi)容】
sqltime[string]頁面執(zhí)行時(shí)間(秒)0.00464s

返回示例(JSON)
  1. {
  2.     "code": 200,
  3.     "result": "OK",
  4.     "count": 3,
  5.     "data": {
  6.         "0": {
  7.             "plid": "15",
  8.             "uid": "1",
  9.             "isnew": "1",
  10.             "pmnum": "1",
  11.             "lastupdate": "1636437252",
  12.             "lastdateline": "1636437252",
  13.             "authorid": "1",
  14.             "pmtype": "2",
  15.             "subject": "都來看看,這里是群聊呀",
  16.             "members": "5",
  17.             "min_max": "",
  18.             "dateline": "1636437252",
  19.             "lastmessage": {
  20.                 "firstauthorid": "1",
  21.                 "firstauthor": "admin",
  22.                 "firstsummary": "都來看看,這里是群聊呀"
  23.             }
  24.         },
  25.         "1": {
  26.             "plid": "23",
  27.             "uid": "1",
  28.             "isnew": "1",
  29.             "pmnum": "2",
  30.             "lastupdate": "0",
  31.             "lastdateline": "1636469080",
  32.             "authorid": "6",
  33.             "pmtype": "2",
  34.             "subject": "這里是群聊1111",
  35.             "members": "3",
  36.             "min_max": "",
  37.             "dateline": "1636465639",
  38.             "lastmessage": {
  39.                 "firstauthorid": "1",
  40.                 "firstauthor": "admin",
  41.                 "firstsummary": "回復(fù)內(nèi)容130",
  42.                 "lastauthorid": "3",
  43.                 "lastauthor": "demo",
  44.                 "lastsummary": ""
  45.             }
  46.         },
  47.         "count": 2
  48.     },
  49.     "sqltime": "0.0126s"
  50. }
復(fù)制代碼

額外說明

錯(cuò)誤提示碼
錯(cuò)誤碼查詢地址:點(diǎn)擊訪問
BUG提交:點(diǎn)擊提交
QQ交流群:281079920





歡迎光臨 新秀網(wǎng)絡(luò)驗(yàn)證系統(tǒng) (http://www.5566wy.com/) Powered by Discuz! X3.5