https://m.repai.com/story/story_upload_api/access_token/rpat_47be0653fe75e8ae3f3d4fa5de931c24
其中 rpat_47be0653fe75e8ae3f3d4fa5de931c24 为 access_token 示例。
<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张照片)
{ "reason": "提交失败,故事内容不能超过120个字!", "status": false }
{ "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" ] } }