Changes between Version 4 and Version 5 of pcauto_club_1.2.0/api


Ignore:
Timestamp:
08/29/2014 11:13:47 AM (12 years ago)
Author:
xieweijie
Comment:

增加动态接口

Legend:

Unmodified
Added
Removed
Modified
  • pcauto_club_1.2.0/api

    v4 v5  
    114114      
    115115}}} 
     116 
     117=== 3.1 [=#point3.1 IM获取token] === 
     118{{{ 
     119    请求url:, 
     120    HTTP请求方式:POST, 
     121    是否需要登录:true, 
     122    返回格式:json, 
     123    返缓存方式:无, 
     124    缓存时间:无, 
     125    请求参数:userId://太平洋帐号id,, 
     126    说明: 
     127    返回结果:{"token":"P0JtJ0LBGI9Qya1+uIPR0dLyEN9NFQAM0jQTPx8aQUQg5RfoaakM54il9pxVp1TGrpEVXynHbxxfokmJy1QkcQ==","code":0,"msg":"成功获取token!"} 
     128}}} 
     129 
     130=== 3.2 [=#point3.2 IM获取好友列表] === 
     131{{{ 
     132    请求url:, 
     133    HTTP请求方式:POST, 
     134    是否需要登录:true, 
     135    返回格式:json, 
     136    返缓存方式:无, 
     137    缓存时间:无, 
     138    请求参数:userId://太平洋帐号id,, 
     139    说明: 
     140    返回结果: 
     141{ 
     142friendList:[ 
     143     { 
     144         userId://太平洋帐号id 
     145         userName://昵称 
     146         faceUrl://头像url 
     147      } 
     148     ] 
     149} 
     150}}} 
     151 
     152=== 4.1车友动态接口 === 
     153{{{ 
     154接口URL: 
     155说明:根据车友会ID,返回车友动态列表 
     156 
     157请求参数: 
     158clubId:车友会ID(二选一) 
     159userId:用户Id(二选一) 
     160是否登录:否 
     161缓存时间:无 
     162是否分页:是 
     163 
     164返回结果: 
     165{ 
     166    "clubId": clubId, (二选一) 
     167    "userId": userId, (二选一) 
     168    "data": [ 
     169             { 
     170             "postCount":回复数 
     171             "pubTime": 发布时间,  
     172            "topicTitle": 帖子标题,  
     173            "forumName": 板块名称,  
     174            "isPick": 是否是精华,  
     175                "isPost": 是否帖子,  
     176            "authorId": 作者ID,  
     177            "forumId": 16160,  
     178            "authorName": 作者名称,  
     179            "nickname":作者昵称, 
     180            "contribution": 贡献油值,  
     181            "targetId": 帖子ID/动态ID,  
     182            "authorPhoto": 作者头像,  
     183            "isRecommend": 是否是推荐, 
     184            "images":[ 
     185                { 
     186                        “url”:http://xxxx.jpg, 
     187                        //真实宽度 
     188                        “width”:960, 
     189                        //真实高度 
     190                        “height”:1000 
     191                }, 
     192                { 
     193                        “url”:http://xxxx.jpg, 
     194                        //真实宽度 
     195                        “width”:960, 
     196                        //真实高度 
     197                        “height”:1000 
     198                } 
     199                ] 
     200           } 
     201        ] 
     202} 
     203}}} 
     204 
     205=== 4.2 [=#point4.2 发动态/回复动态] === 
     206{{{ 
     207    请求url:, 
     208    HTTP请求方式:POST, 
     209    是否需要登录:true, 
     210    返回格式:json, 
     211    返缓存方式:无, 
     212    缓存时间:无, 
     213    请求参数: 
     214         replyId://回复动态id,发动态则不传这个参数 
     215         context://内容 
     216         images:[ 
     217               "http://xxxxx", 
     218               "http://xxxxx", 
     219         ]//图片 
     220    说明: 
     221    返回结果:{ 
     222        code:0                  //错误代码,0:正常返回 1:操作失败 1001:权限类错误 1002:数据类错误 1003:用户无登陆 
     223        message: “您还没有登陆”               //错误提示 
     224} 
     225}}}