空间H5游戏-后台接口
/v3/campus/get_school_id_by_name
pf=qzone
pf=wanba_ts
获取学校对应的校园空间
URL
https://api.urlshare.cn/v3/campus/get_school_id_by_name
私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
school_name | 是 | string | 学校名称 |
返回参数说明
ret_code 0--正常, -100--参数错误
ret_msg 出错信息描述
school_list 归属学校列表
- school_openid 学校openid
- school_name 学校名称
- school_badge 校徽
- school_cover 学校背景图
- fans_num 粉丝数量
- is_followed 是否已关注
正确返回示例
{
"ret": 0,
"msg": "success",
"data": {
"ret_code": "0",
"ret_msg": "succ",
"school_list": [
{
"school_openid":"xxx1",
"school_name":"xxx大学1",
"school_badge" : "*****",
"school_cover" : "*****",
"fans_num" : 1,
"is_followed" : 0,
},
{
"school_openid":"xxx2",
"school_name":"xxx大学2",
"school_badge" : "*****",
"school_cover" : "*****",
"fans_num" : 0,
"is_followed" : 0,
}
],
}
}