站点工具

Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
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

故事文本、照片上传接口

1、故事文本、照片上传接口(客户端调用,POST方式上传)

https://m.repai.com/story/story_upload_api/access_token/rpat_47be0653fe75e8ae3f3d4fa5de931c24

其中 rpat_47be0653fe75e8ae3f3d4fa5de931c24 为 access_token 示例。

输入参数说明:

  • POST内容 【form表单方式上传,构造的form表单格式示例如下,本地照片的name名称需要命名为upload[],商品ID的name名称为rp_iids[],故事文本内容的name名称为message,编码格式需要为multipart/form-data。至少1个商品ID,商品ID+本地照片之和最多为9。可以从浏览历史中选择商品,将被选择的商品ID,写入到rp_iids[]的value值中。】
<form action="https://m.repai.com/story/story_upload_api/access_token/rpat_47be0653fe75e8ae3f3d4fa5de931c24" method="post" enctype="multipart/form-data">
140字故事内容:<input name="message" type="text" value="这是一篇故事的内容,不知道大家是否喜欢?" /><br />
商品ID1:<input name="rp_iids[]" type="text" value="140746712580530" /><br />
商品ID2:<input name="rp_iids[]" type="text" value="140747002963590" /><br />
本地照片1:<input name="upload[]" type="file" /><br />
本地照片2:<input name="upload[]" type="file" /><br />
本地照片3:<input name="upload[]" type="file" /><br />
本地照片4:<input name="upload[]" type="file" /><br />
本地照片5:<input name="upload[]" type="file" /><br />
本地照片6:<input name="upload[]" type="file" /><br />
本地照片7:<input name="upload[]" type="file" /><br />
<input type="submit" name="Submit" value="上传" />
</form>

HTML表单上传文件网址示例:http://doc.repai.com/example/story_upload.htm (注意:示例地址为7张本地图片选择框,必须选择7张照片)


输出参数说明:

  • JSON格式输出,错误时,status值为false,reason为失败原因,示例如下:
{
"reason": "提交失败,故事内容不能超过120个字!",
"status": false
}
  • JSON格式输出,正确时,status值为true,表示上传成功,示例如下:
{
"status": true,
"reason": "故事发表成功!",
"story_info": {
	"story_id": "4",
	"message": "这是一篇故事的内容,不知道大家是否喜欢?",
	"photos": [
		{
			"pic_url": "http://pic.repaiapp.com/pic/09/18/65/0918654bc15b888ef24070e1c6627a76a48bd58d.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/cf/c9/98/cfc998598dbf4b90dff4214a8bbae4ccd2899887.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/09/18/65/0918654bc15b888ef24070e1c6627a76a48bd58d.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/09/18/65/0918654bc15b888ef24070e1c6627a76a48bd58d.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/cf/c9/98/cfc998598dbf4b90dff4214a8bbae4ccd2899887.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/09/18/65/0918654bc15b888ef24070e1c6627a76a48bd58d.png"
		},
		{
			"pic_url": "http://pic.repaiapp.com/pic/cf/c9/98/cfc998598dbf4b90dff4214a8bbae4ccd2899887.png"
		}
	],
	"rp_iids": [
		"140746712580530",
		"140747002963590"
	]
}
}
  • story_id 【故事ID】

返回首页

story.txt · 最后更改: 2014/10/08 12:56 由 106.2.171.114