|
|
## 客户端初始化配置接口
|
|
|
|
|
|
### 说明
|
|
|
客户端初始化配置接口
|
|
|
### 请求参数
|
|
|
| Param Name | Param Value | Desc |
|
|
|
| ---------- | ----------- | ---- |
|
|
|
| method | app.resources.config.clientInitConfig | |
|
|
|
| client_type| h5 | |
|
|
|
|
|
|
### 响应
|
|
|
用户响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"Config Success",
|
|
|
"md5":"1231231231231",
|
|
|
"data":{
|
|
|
"config":{
|
|
|
"format":"webp",
|
|
|
"https":"0",
|
|
|
"yoho_coin_help":"20111130-152530",
|
|
|
"clearcache":{
|
|
|
"image":1,
|
|
|
"data":1,
|
|
|
"init":1,
|
|
|
"code":159872617889
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
#### 参数描述
|
|
|
@See [APP文档](http://git.dev.yoho.cn/mobile/yohoapi/blob/master/userconfig.md "客户端初始化配置")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 获取资源位接口
|
|
|
|
|
|
### 说明
|
|
|
根据内容码,获取单个内容个体
|
|
|
### 请求地址
|
|
|
/operations/api/v5/resource/get
|
|
|
### 请求参数
|
|
|
| Param Name | Param Value | Desc|
|
|
|
| :-------- | --------------:|----:|
|
|
|
| content_code | 406238d7731f66a15e45b8c32b85b43a | 内容码 |
|
|
|
|
|
|
### 响应
|
|
|
用户响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code":200,
|
|
|
"data":[],
|
|
|
"md5":"d751713988987e9331980363e24189ce",
|
|
|
"message":"资源信息"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 首页资源位接口
|
|
|
|
|
|
### 说明
|
|
|
根据内容码,获取首页内容
|
|
|
### 请求地址
|
|
|
/operations/api/v5/resource/home
|
|
|
### 请求参数
|
|
|
| Param Name | Param Value | Desc|
|
|
|
| :-------- | --------------:|----:|
|
|
|
| content_code | 406238d7731f66a15e45b8c32b85b43a | 内容码 |
|
|
|
| gender | 1,3 | 性别 |
|
|
|
| page | 1 | 页数 |
|
|
|
| limit | 5 | 页容量 |
|
|
|
|
|
|
### 响应
|
|
|
用户响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code":200,
|
|
|
"data":{
|
|
|
"content_code":"406238d7731f66a15e45b8c32b85b43a",
|
|
|
"total":0,
|
|
|
"page":1,
|
|
|
"total_page":0,
|
|
|
list:[]
|
|
|
},
|
|
|
"md5":"d751713988987e9331980363e24189ce",
|
|
|
"message":"资源信息"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 获取热门标签(TOP100)
|
|
|
|
|
|
### 说明
|
|
|
根据客户端类型,加载热门标签
|
|
|
|
|
|
### 请求参数
|
|
|
| Param Name | Param Value | Desc |
|
|
|
| :---------- | -----------:|-----------:|
|
|
|
| method | app.resources.getHotRankTag | |
|
|
|
| client_type | web | 客户端类型 |
|
|
|
|
|
|
### 响应
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"category_id": "",
|
|
|
"id": 1,
|
|
|
"tag_name": "TOP100"
|
|
|
},
|
|
|
{
|
|
|
"category_id": "211",
|
|
|
"id": 39,
|
|
|
"tag_name": "数码配件(创意家具)"
|
|
|
}
|
|
|
],
|
|
|
"md5": "07de70f372344d676b0bae188db345aa",
|
|
|
"message": "热门标签列表"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 根据节点和运行环境选择静态内容
|
|
|
|
|
|
### 请求参数
|
|
|
| Param Name | Param Type | Param Value | Desc |
|
|
|
| ---------- | ----------- | ----------- | ----- |
|
|
|
| method | String | app.resources.getHtmlContentByNodeContent | |
|
|
|
| node |String| 20110605-160023 |节点编号 |
|
|
|
| mode |String| release | 运行环境(可选,默认release)|
|
|
|
|
|
|
### 响应
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"inuseContent": "<p>\r\n\t<span><a href=\"http://vans.yohobuy.com/\">Vans</a> | <a href=\"http://lyrique.yohobuy.com/\">LYRIQUE</a> | <a href=\"http://lal.yohobuy.com/\">Life after Life</a> | <a href=\"http://www.yohobuy.com/search?msort=1&misort=11&sort=114\">MORE></a></span></p>"
|
|
|
},
|
|
|
"message": "html content"
|
|
|
}
|
|
|
or
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"editContent": "<p>\r\n\t<span><a href=\"http://vans.yohobuy.com/\">Vans</a> | <a href=\"http://lyrique.yohobuy.com/\">LYRIQUE</a> | <a href=\"http://lal.yohobuy.com/\">Life after Life</a> | <a href=\"http://www.yohobuy.com/search?msort=1&misort=11&sort=114\">MORE></a></span></p>"
|
|
|
},
|
|
|
"message": "html content"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 获取专区信息
|
|
|
|
|
|
### 说明
|
|
|
获取专区信息
|
|
|
|
|
|
### 请求参数
|
|
|
| Param Name | Param Value | Desc |
|
|
|
| ---------- | ----------- | ----- |
|
|
|
| method | app.resources.getOneSpecial | |
|
|
|
| special_id | 7 | 专区id |
|
|
|
|
|
|
### 响应
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"id": 7,
|
|
|
"special_name": "军事风格",
|
|
|
"cover_img": "/2014/01/27/12/01d66be5333471b962cfebf8b00379d5f3.jpg",
|
|
|
"create_time": 1390738775,
|
|
|
"status": 2
|
|
|
},
|
|
|
"message": "专区信息"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
#### 参数说明
|
|
|
| Param Name | Param Value | Desc |
|
|
|
| ---------- | ----------- | ----- |
|
|
|
| id | 7 | 专区id |
|
|
|
| special_name| 军事风格 | 专区名称 |
|
|
|
| cover_img | /2014/01/27/12/01d66be5333471b962cfebf8b00379d5f3.jpg | |
|
|
|
| create_time | 1390738775 | 创建时间 |
|
|
|
| status | 2 | 1:显示,2:隐藏 | |
|
|
\ No newline at end of file |
...
|
...
|
|