Changes between Version 10 and Version 11 of pcauto_club_1.2.0/api
- Timestamp:
- 09/01/2014 02:40:52 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pcauto_club_1.2.0/api
v10 v11 118 118 === 3.1 [=#point3.1 IM获取token] === 119 119 {{{ 120 请求url: http://club.pcauto.com.cn/club/getToken.do,120 请求url:/club/getToken.do, 121 121 HTTP请求方式:POST, 122 122 是否需要登录:true, … … 124 124 返缓存方式:无, 125 125 缓存时间:无, 126 请求参数:userId://太平洋帐号id,, 126 请求参数: 127 userId://太平洋帐号id, 128 grabber: //是否需要强制获取新的Token,0:不需要,1:需要 127 129 说明: 128 返回结果:{"token":"P0JtJ0LBGI9Qya1+uIPR0dLyEN9NFQAM0jQTPx8aQUQg5RfoaakM54il9pxVp1TGrpEVXynHbxxfokmJy1QkcQ==","code":0,"msg":"成功获取token!"} 130 返回结果: 131 { 132 "token":"P0JtJ0LBGI9Qya1+uIPR0dLyEN9NFQAM0jQTPx8aQUQg5RfoaakM54il9pxVp1TGrpEVXynHbxxfokmJy1QkcQ==", 133 "code":0, 134 "msg":"成功获取token!" 135 } 136 token 获取融云Token 137 message 返回结果描述 138 code 返回结果代码,1:非登录用户,2:不是车友会成员, 139 3:获取Token导演,0:操作成功 129 140 }}} 130 141 131 142 === 3.2 [=#point3.2 IM获取好友列表] === 132 143 {{{ 133 请求url: http://club.pcauto.com.cn/club/getFriendList.do,144 请求url:/club/getFriendList.do, 134 145 HTTP请求方式:POST, 135 146 是否需要登录:true, … … 141 152 返回结果: 142 153 { 154 code:0 //code 返回结果代码,1:车友会没有通过审核,0:操作成功 155 message://返回结果描述 143 156 friendList:[ 144 157 { … … 174 187 "forumName": 板块名称, 175 188 "isPick": 是否是精华, 176 "isPost": 是否帖子,189 "isPost": 是否帖子, 177 190 "authorId": 作者ID, 178 191 "forumId": 16160, … … 204 217 }}} 205 218 206 === 4.2 [=#point4.2 发动态 /回复动态] ===219 === 4.2 [=#point4.2 发动态] === 207 220 {{{ 208 221 请求url:, … … 214 227 请求参数: 215 228 replyId://回复动态id,发动态则不传这个参数 216 context://内容229 Content://内容 217 230 images:[ 218 "http://xxxxx", 219 "http://xxxxx", 231 { 232 url:"http://xxxxx", 233 width:100 //宽 234 height:200 //高 235 }, 236 { 237 url:"http://xxxxx", 238 width:100 //宽 239 height:200 //高 240 } 220 241 ]//图片 221 242 说明: 243 图片上传指令 command:53003 53004 53016 53017 53018 53019 53020 222 244 返回结果:{ 223 245 code:0 //错误代码,0:正常返回 1:操作失败 1001:权限类错误 1002:数据类错误 1003:用户无登陆 … … 228 250 === 4.3修改个人信息 === 229 251 {{{ 230 请求url:,252 请求url:, 231 253 HTTP请求方式:POST, 232 254 是否需要登录:true, … … 241 263 } 242 264 }}} 265 266 === 4.4 [回复动态] === 267 {{{ 268 请求URL:/dyna/createCommentDyna.do[POST] 269 HTTP请求方式:POST, 270 是否需要登录:true, 271 返回格式:json, 272 返缓存方式:无, 273 缓存时间:无 274 请求参数: 275 clubId 车友会ID 276 content 留言内容 277 dynaInfoId 动态ID 278 postToDynaReplyId 发表回复的回复ID 279 返回结果: 280 { 281 code 返回结果代码,正常返回 1:操作失败 1001:权限类错误 1002:数据类错误 1003:用户无登陆 282 message 返回结果描述 283 } 284 }}} 285 286 === 4.4 [动态详情] === 287 {{{ 288 请求URL: 289 HTTP请求方式:GET, 290 是否需要登录:false, 291 返回格式:json, 292 返缓存方式:无, 293 缓存时间:无 294 请求参数: 295 dynaInfoId 动态ID 296 返回结果: 297 { 298 dynaInfoId://动态ID 299 userId://用户ID 300 authorPhoto://用户头像 301 userName://用户昵称 302 content://动态内容 303 postCount: //回复数 304 pubTime: //发布时间, 305 images:[ 306 { 307 “url”:http://xxxx.jpg, 308 //真实宽度 309 “width”:960, 310 //真实高度 311 “height”:1000 312 }, 313 { 314 “url”:http://xxxx.jpg, 315 //真实宽度 316 “width”:960, 317 //真实高度 318 “height”:1000 319 } 320 ] 321 } 322 ]//图片 323 replys:[ 324 { 325 replyId://回复id 326 userId://用户ID 327 authorPhoto://用户头像 328 userName://用户昵称 329 content://回复内容 330 replyToId://被回复id(为回复回复时返回) 331 replyToUserId://被回复用户ID(为回复回复时返回) 332 replyToUserName://被回复用户昵称(为回复回复时返回) 333 } 334 ] 335 } 336 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)