跳至内容
热拍API接口文档
站点工具
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
最近更改
媒体管理器
网站地图
您的足迹:
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
编辑本页后请点击“保存”。请参阅
syntax
了解维基语法。只有在您能
改进
该页面的前提下才编辑它。如果您想尝试一些东西,请先到
playground
热身。
媒体文件
===== 故事文本、照片上传接口 ===== ==== 1、故事文本、照片上传接口(客户端调用,POST方式上传) ==== ''https://m.repai.com/story/story_upload_api/access_token/rpat_47be0653fe75e8ae3f3d4fa5de931c24'' 其中 rpat_47be0653fe75e8ae3f3d4fa5de931c24 为 access_token 示例。 === 输入参数说明: === * access_token 【调用[[reg_login_api|一键注册登陆接口]]获取到的access_token】 * POST内容 【form表单方式上传,构造的form表单格式示例如下,本地照片的name名称需要命名为upload[],商品ID的name名称为rp_iids[],故事文本内容的name名称为message,编码格式需要为multipart/form-data。至少1个商品ID,商品ID+本地照片之和最多为9。可以从[[browser_history|浏览历史]]中选择商品,将被选择的商品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】 ---- [[start|返回首页]]
编辑摘要
当您选择开始编辑本页,即寓示你同意将你贡献的内容按下列许可协议发布:
CC Attribution-Noncommercial-Share Alike 3.0 Unported
story.txt
· 最后更改: 2014/10/08 12:56 由
106.2.171.114
页面工具
显示页面
修订记录
反向链接
回到顶部