访问路径:/api/app/export
应用权限:作品——>作品信息
接口说明:导出作品
类型: POST
Author: Shang Pan,flame
Content-Type: application/json; charset=utf-8
接口描述 导出作品的html形式数据
Request-headers:
Header | 类型 | 是否必填 | 字段描述 |
---|---|---|---|
X-Token | string | true | token |
接口入参:
参数 | 类型 | 是否必填 | 字段描述 |
---|---|---|---|
appid | string | true | 兔展作品id |
uid | string | true | 第三方平台用户的用户id |
companyId | string | false | 第三方平台企业id |
接口出参:
Field | 类型 | 字段描述 |
---|---|---|
code | string | 状态码 |
errorCode | string | 错误状态码 |
msg | string | 状态描述 |
data | object | 作品html形式数据 |
请求示例
curl -X POST -k -H 'Content-Type: application/json; charset=utf-8' -H 'X-Token:8knZXf4WqQ3KfC4XCqK8MKsDBqU' -i https://integrate.rabbitpre.com/api/open/api/app/export --data '{ "appid": "18becffd-d9af-4a50-bc55-fd7381b5e7b0", "uid": "A1001", "companyId": "C1002 }'
返回示例
{ "code": "200", "errorCode": "SUCCESS", "msg": "ok", "data": "<!DOCTYPE html><html><head> <script type=\"text/javascript\"> function jump(){ window.location.href = 'http://test.api.rabbitpre.com/api/rabbitweb/api/appcenter/my/app/localappuse?localappId=8e3290d2-d7b4-47e8-8c1e-d642fa1c51f4&appVersion=2&appId=18becffd-d9af-4a50-bc55-fd7381b5e7b0'; } setTimeout(\"jump()\",2000 ); </script> <meta charset=\"UTF-8\" /> <style type=\"text/css\"> body{ margin: 0; padding: 0; min-width: 426px; min-height: 532px; background-color: #1a1c24; } .content{ margin: auto; width: 426px; height: 532px; position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .logo{ margin: auto; width: 159px; height: 159px; background-image: url(https://oss.szzbmy.com/img/loading.png); background-repeat: no-repeat; background-size: 100% 100%; } .logo-gif{ margin: 11px; } .loading-tip{ margin-top: 30px; font-size: 30px; line-height: 30px; text-align: center; color: #ffffff; } .link{ margin-top: 70px; } .link-btn{ margin: auto; background-color: #ff7519; color: #ffffff; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; text-align: center; width: 120px; height: 40px; line-height: 40px; cursor: pointer; } .info{ margin-top: 67px; width: 349px; height: 97px; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; background-color: #fcfcfc; padding: 19px 54px 19px 23px; } .info-img{ float: left; background-image: url(https://static.h5no1.com/rp/editor/646212f0-d5c7-4732-9b11-da5f1c7b4fb2); width: 97px; height: 97px; background-color: #263238; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; background-size: 87px 87px; background-repeat: no-repeat; background-position: 5px 5px; } .info-content{ float: left; margin-left: 28px; font-size: 14px; color: #666666; width: 220px; height: 97px; } .info-title{ font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .info-desc{ height: 60px; margin-top: 23px; overflow: hidden; word-break: break-all; line-height: 20px; } .clear{ clear: both; } </style> <title>{name}</title></head><body><div class=\"content\"> <div class=\"logo\"> <img src=\"http://oss.szzbmy.com/img/loading.gif\" class=\"logo-gif\" /> </div> <div class=\"loading-tip\"> 模板内容加载中... </div> <div class=\"link\"> <div class=\"link-btn\" onclick=\"jump();\"> 手动跳转 </div> </div> <div class=\"info\"> <div class=\"info-img\"></div> <div class=\"info-content\"> <div class=\"info-title\" title=\"我的H5作品\"> 我的H5作品 </div> <div class=\"info-desc\"> 我做了一个超炫酷的H5,快来看看吧! </div> </div> <div class=\"clear\"></div> </div></div></body></html>" }