站点工具

New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

story_total_get

故事读取接口(所有用户上传的故事)

1、故事读取接口(所有用户上传的故事)

输入参数说明:

  • sort 【排序方式,可选参数为:time按照发布时间排序;clicks按照点击数排序;comment按照评论数/赞数排序。目前暂时只支持time】
  • type 【故事审核状态:1为发布并自动显示在公共列表;2为被内容违法或广告贴被编辑删除】
  • offset 【记录偏移量】
  • limit 【显示记录数量,结合 offset 用来做分页,下拉加载更多;offset/0/limit/10相当于SQL语句中的limit 0,10】
  • appkey 【热拍事业部买家版HTML5为100001,iOS为100002,Android为100003】
  • appoid 【设备的唯一ID,iOS手机取OpenUDID(下载地址:https://github.com/ylechelle/OpenUDID)作为唯一ID;#import “OpenUDID.h” 然后 NSLog(@“%@”,[OpenUDID value]); 打印出来的值即为OpenUDID,然后对OpenUDID做md5加密后的值,作为appoid】

输出参数说明:

{
"current_count": 2,
"data": [
	{
		"avatar": "http://pic.repaiapp.com/pic/91/30/c4/9130c4921f33cd4c559907db1edc094f43a391dd.jpg@0e_120w_120h_0c_0i_1o_90Q_1x.jpg",
		"love": [
		],
		"love_total_up": "0",
		"love_up": false,
		"message": "突破自我,为梦想引路;挑战极限,跑出一片蓝天。排万难,零排放!#悦跑上海,传奇再续#上海马拉松 8 Days To Go!",
		"photos": [
			{
				"pic_url": "http://pic.repaiapp.com/pic/d0/3a/41/d03a417e3a36423d947b2dfb3359d3f7883c2beb.jpg",
				"pic_url_thum": "http://pic.repaiapp.com/pic/d0/3a/41/d03a417e3a36423d947b2dfb3359d3f7883c2beb.jpg@1e_400w_400h_1c_0i_1o_90Q_1x.jpg"
			}
		],
		"publish_time": "1415068543",
		"rp_city": "苏州",
		"rp_iids": [
			{
				"rp_iid": "1100041841198311",
				"rp_item_url": "http://m.repai.com/item/view/id/1100041841198311/",
				"rp_pic_url": "http://gw.alicdn.com/bao/uploaded/i4/TB1BHI7FFXXXXb_XXXXXXXXXXXX_!!0-item_pic.jpg_320x320q90.jpg",
				"rp_price": "45.8",
				"rp_quantity": "50",
				"rp_title": "悦步USB电脑专用跳舞毯 四季减肥瘦身利器娱乐健身包邮 颜色超炫",
				"rp_share_item_url": "http://m.repai.com/item/view/id/1100041841198311/rpunid/141114000001/"
			}
		],
		"rp_nick": "心虚无语",
		"rp_phone": "15050157509",
		"rp_province": "江苏",
		"rp_sex": "0",
		"rp_uid": "107",
		"story_id": "50",
		"story_url": "http://m.repai.com/story/view/id/50/"
	},
	{
		"avatar": "http://pic.repaiapp.com/pic/3d/d3/91/3dd391277ece6d31b824fd9b666bed8b7f4c1d89.jpg@0e_120w_120h_0c_0i_1o_90Q_1x.jpg",
		"love": [
			{
				"appoid": "",
				"avatar": "http://pic.repaiapp.com/pic/91/30/c4/9130c4921f33cd4c559907db1edc094f43a391dd.jpg@0e_60w_60h_0c_0i_1o_90Q_1x.jpg",
				"nick": "心虚无语",
				"rp_sex": "0",
				"rp_uid": "107"
			}
		],
		"love_total_up": "1",
		"love_up": false,
		"message": "#早安#这世上不需要付出就能得到的美好事物毕竟太少了,即使是日出都需要牺牲睡眠。想要好身材就得保持锻炼,想要过得好就得保持努力。不管你去哪里,愿你不忘初心。—— 卢思浩",
		"photos": [
			{
				"pic_url": "http://pic.repaiapp.com/pic/cf/68/3f/cf683f20160447e77bdcb12c0bb78eb415edc73c.jpg",
				"pic_url_thum": "http://pic.repaiapp.com/pic/cf/68/3f/cf683f20160447e77bdcb12c0bb78eb415edc73c.jpg@1e_400w_400h_1c_0i_1o_90Q_1x.jpg"
			},
			{
				"pic_url": "http://pic.repaiapp.com/pic/3a/0c/21/3a0c21ddb02bc9af337d2977db352a8451d1ca9e.jpg",
				"pic_url_thum": "http://pic.repaiapp.com/pic/3a/0c/21/3a0c21ddb02bc9af337d2977db352a8451d1ca9e.jpg@1e_400w_400h_1c_0i_1o_90Q_1x.jpg"
			}
		],
		"publish_time": "1415065284",
		"rp_city": "苏州",
		"rp_iids": [
			{
				"rp_iid": "1100967873763751",
				"rp_item_url": "http://m.repai.com/item/view/id/1100967873763751/",
				"rp_pic_url": "http://gw.alicdn.com/bao/uploaded/i1/TB1ZIHZGFXXXXcBXVXXXXXXXXXX_!!0-item_pic.jpg_320x320q90.jpg",
				"rp_price": "2.9",
				"rp_quantity": "50",
				"rp_title": "iphone6钢化玻璃膜 6代保护膜 苹果6手机贴膜 前后膜防爆 4.7寸膜",
				"rp_share_item_url": "http://m.repai.com/item/view/id/1100967873763751/rpunid/141114000001/"
			}
		],
		"rp_nick": "ling",
		"rp_phone": "18606278476",
		"rp_province": "江苏",
		"rp_sex": "1",
		"rp_uid": "62",
		"story_id": "49",
		"story_url": "http://m.repai.com/story/view/id/49/"
	}
],
"is_end": false,
"next_limit": 2,
"next_offset": 2,
"total": 50
}
  • is_end 【 是否还有下一页,true为已结束,无下一页;false为未结束,还有下一页】
  • next_offset 【下一页的偏移量】
  • next_limit 【下一页的显示数量】
  • total 【总故事数量】
  • current_count 【本次显示的故事数量】
  • message 【故事文本内容】
  • love_total_up 【某篇故事总的喜欢数】
  • love_up 【当前用户对某篇故事是否喜欢】
  • avatar 【用户头像图片地址】
  • publish_time 【故事发布时间UNIX时间戳】
  • rp_province 【用户省份】
  • rp_city 【用户城市】
  • rp_sex 【用户性别:1为男,2为女,0为未知】
  • rp_phone 【用户手机号】
  • rp_nick 【用户昵称,无昵称时,显示进行*处理的手机号,例如:1593960】
  • rp_uid 【用户ID】
  • photos 【用户上传的照片,pic_url为大图,pic_url_thum为缩略图】
  • rp_iids 【商品图片及内容摘要】
  • love 【对当前故事点“赞”的登陆用户、未登陆用户列表:avatar头像,nick昵称,appoid匿名用户手机设备唯一ID,rp_uid登陆用户ID】
  • rp_share_item_url 【用户对外分享的商品链接】
  • story_url 【整篇故事的Web地址】

返回首页

story_total_get.txt · 最后更改: 2014/11/25 20:04 由 112.25.156.122