- 用户端
- 平台游戏
- API-V1:平台游戏
- API-V1:游玩数据
- API-V1:账号授权
- API-V1:游戏成就
- API-V1:测试
- 管理后台:授权账号管理
- 管理后台:推荐相关接口
- 应用宝游戏推荐管理
- API-V1:模拟器游戏接口层
- 试玩模块
- 应用宝
- 平台游戏
- 薄荷运营后台
- NN管理后台服务
- NN发行接入薄荷接口
游戏同步(爬虫)
测试环境
http://test1-opapi.nn.com/gamehub
测试环境
http://test1-opapi.nn.com/gamehub
POST
http://test1-opapi.nn.com/gamehub
最后修改时间:2025-06-07 05:02:56
责任人:bxguo
database: 8
host: 172.31.4.12
password: LbCn_jMT8NGp8x2NyL9
port: 7000
存储已抓取的游戏数据 key: gamehub:grabGame:{appid}
待处理的appid队列list key : gamehub:obtain
database: 8
host: 172.31.16.3
password: LbCn_jMT8NGp8x2NyL9
port: 7000
存储已抓取的游戏数据 key: gamehub:grabGame:{appid}
待处理的appid队列list key : gamehub:obtain
生产环境:
请求参数
Header 参数
reqChannel
integer
可选
默认值:
3
appid
string
可选
token
string
可选
x-access-token
string
管理后台token
默认值:
{{x-access-token}}
Body 参数application/json
steamGameId
string
steam游戏id
gameConfigVO
object (MallGameConfigVO)
配置信息
gameId
integer <int64>
可选
游戏ID
steamGameId
string
steam游戏id
gameName
string
游戏名称
gameSort
integer
排序值
gameSubTitle
string
游戏副标题
gameExtraName
string
游戏别名
gameLabelDesc
string
游戏标签描述
gamePublishDate
string
游戏发行日期
gamePublishPlate
string
发行平台
gameOperate
string
运营商
gameDevelop
string
开发商
headImg
string
头像图
gameIcon
string
游戏图
backImg
string
官网图(竖)
bannerImgs
string
可选
gameVideo
string
游戏视频
gameDesc
string
游戏简介
recommendConfig
string
推荐配置
minimumConfig
string
最低配置
ageRating
string
年龄分级
supportLangauge
string
支持语言
gameCharacteristics
string
游戏特性
score
string
评分
rating
string
好评率
goodCommentsNum
string
好评人数
badCommentsNum
string
差评人数
createTime
string
创建时间
evaluationDTOS
array[object (MallGameEvaluationDTO) {10}]
评论信息
dbId
integer
dbId
nickName
string
头像fake
content
string
评价
createTime
string
时间
userUrl
string
头像
duration
string
时长
starNum
string
点赞
publishTime
string
发布时间
status
integer
状态
mallGameId
integer <int64>
商店游戏ID
示例
{
"steamGameId": "string",
"gameConfigVO": {
"gameId": 0,
"steamGameId": "string",
"gameName": "string",
"gameSort": 0,
"gameSubTitle": "string",
"gameExtraName": "string",
"gameLabelDesc": "string",
"gamePublishDate": "string",
"gamePublishPlate": "string",
"gameOperate": "string",
"gameDevelop": "string",
"headImg": "string",
"gameIcon": "string",
"backImg": "string",
"bannerImgs": "string",
"gameVideo": "string",
"gameDesc": "string",
"recommendConfig": "string",
"minimumConfig": "string",
"ageRating": "string",
"supportLangauge": "string",
"gameCharacteristics": "string",
"score": "string",
"rating": "string",
"goodCommentsNum": "string",
"badCommentsNum": "string",
"createTime": "string"
},
"evaluationDTOS": [
{
"dbId": 0,
"nickName": "string",
"content": "string",
"createTime": "string",
"userUrl": "string",
"duration": "string",
"starNum": "string",
"publishTime": "string",
"status": 0,
"mallGameId": 0
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://test1-opapi.nn.com/gamehub/api/v1/platform/gameConfigSync' \
--header 'reqChannel: 3' \
--header 'appid;' \
--header 'token;' \
--header 'x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NTEwMTA5MzMsInVzZXJuYW1lIjoiYWRtaW4ifQ.3BIsSwbWedvRhd-GZmhWitrIPQwubGOP1BYuTBoZ458' \
--header 'Content-Type: application/json' \
--data-raw '{
"steamGameId": "string",
"gameConfigVO": {
"gameId": 0,
"steamGameId": "string",
"gameName": "string",
"gameSort": 0,
"gameSubTitle": "string",
"gameExtraName": "string",
"gameLabelDesc": "string",
"gamePublishDate": "string",
"gamePublishPlate": "string",
"gameOperate": "string",
"gameDevelop": "string",
"headImg": "string",
"gameIcon": "string",
"backImg": "string",
"bannerImgs": "string",
"gameVideo": "string",
"gameDesc": "string",
"recommendConfig": "string",
"minimumConfig": "string",
"ageRating": "string",
"supportLangauge": "string",
"gameCharacteristics": "string",
"score": "string",
"rating": "string",
"goodCommentsNum": "string",
"badCommentsNum": "string",
"createTime": "string"
},
"evaluationDTOS": [
{
"dbId": 0,
"nickName": "string",
"content": "string",
"createTime": "string",
"userUrl": "string",
"duration": "string",
"starNum": "string",
"publishTime": "string",
"status": 0,
"mallGameId": 0
}
]
}'
返回响应
🟢200成功
application/json
Body
retCode
string
响应码
retMsg
string
响应信息
retData
null
响应内容
retTime
string
响应时间
默认值:
DateUtils.now()
示例
{
"retCode": "",
"retMsg": "",
"retData": null,
"retTime": ""
}
修改于 2025-06-07 05:02:56