25. 收藏的游戏
25.1 获取收藏的游戏(通用)
用于商户获取收藏的游戏列表
方法 : [Post]
路径 : {{domain}}/ext/getFavourites/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"username": "{{agentUsername}}ninemb01",
"key": "{{key}}",
"web": "{{whiteLabel}}"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 使用的代理 |
key | String | tnyENKDWvOkBXpvm6UZVa | 代理的密钥 |
username | String | test001 | 需要查看的用户名 |
web | String | sportbook101 | 使用的网站 |
响应
{
"code": 0,
"msg": "success",
"data": [
{
"id": "61e661646c514c28b00c0ba1",
"provider": "AMBS",
"providerForCollaction": "AMBS",
"dataForProvider": {
"gameID": "GOVDISCO"
},
"gameName": {
"en": "Government Disco",
"th": "สภาดิสโก้",
"cn": "政府迪斯科",
"la": "",
"id": "",
"vn": "",
"my": "",
"mm": "",
"kh": "",
"tw": ""
},
"gameStatus": "ACTIVE",
"loseStatus": "NORMAL",
"gameCategory": "SLOT",
"gameType": [
"SLOT",
"BUY_FREE_SPINS",
"MEGAWAYS"
],
"supportCurrency": null,
"image": [
{
"style": "COMMON",
"vertical": {
"en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669783.webp",
"th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669787.webp",
"cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669791.webp",
"la": "",
"id": "",
"vn": "",
"my": "",
"mm": "",
"kh": "",
"tw": ""
},
"horizontal": {
"en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669805.webp",
"th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669799.webp",
"cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669808.webp",
"la": "",
"id": "",
"vn": "",
"my": "",
"mm": "",
"kh": "",
"tw": ""
},
"banner": {
"en": "",
"th": "",
"cn": "",
"la": "",
"id": "",
"vn": "",
"my": "",
"mm": "",
"kh": "",
"tw": ""
}
}
],
"updateTime": "2022-08-13T01:03:08.584Z",
"updateBy": "by admin",
"position": 4,
"recommend": false,
"recommendPosition": 0,
"popular": true,
"popularPosition": 2,
"fundWallet": false
}
]
}
键名 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API 响应代码。 |
msg | String | success | 响应代码的描述。 |
data | Object | { "id": "61e661646c514c28b00c0ba1", "provider": "AMBS", "providerForCollaction": "AMBS", "dataForProvider": { "gameID": "GOVDISCO" }, "gameName": { "en": "Government Disco", "th": "สภาดิสโก้", "cn": "政府迪斯科", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "gameStatus": "ACTIVE", "loseStatus": "NORMAL", "gameCategory": "SLOT", "gameType": [ "SLOT", "BUY_FREE_SPINS", "MEGAWAYS" ], "supportCurrency": null, "image": [ { "style": "COMMON", "vertical": { "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669783.webp", "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669787.webp", "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/L/AMBS_Government%20Disco_1642669791.webp", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "horizontal": { "en": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669805.webp", "th": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669799.webp", "cn": "https://ambimgcdn.co/img/sportsbook/webp 2/sportsbook/game/AMBS/S/AMBS_Government%20Disco_1642669808.webp", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" }, "banner": { "en": "", "th": "", "cn": "", "la": "", "id": "", "vn": "", "my": "", "mm": "", "kh": "", "tw": "" } } ], "updateTime": "2022-08-13T01:03:08.584Z", "updateBy": "by admin", "position": 4, "recommend": false, "recommendPosition": 0, "popular": true, "popularPosition": 2, "fundWallet": false } | 收藏的游戏数据 |
错误代码
值 | 信息 |
---|---|
0 | 成功 |
100001 | 缺少 'agent Username' 字段。 |
100002 | 'agentUsername' 必须为字符串。 |
100003 | 缺少 'key' 字段。 |
100004 | 'Key' 必须为字符串。 |
100012 | 未找到密钥。 |
100013 | 未找到代理。 |
25.2 添加收藏游戏(通用)
用于商户添加收藏游戏列表
方法 : [Post]
路径 : {{domain}}/ext/addFavourites/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"username": "{{agentUsername}}ninemb01",
"key": "{{key}}",
"web": "{{whiteLabel}}",
"gameId": "6177a6a402d9f528ced33334"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 使用的代理 |
key | String | tnyENKDWvOkBXpvm6UZVa | 代理的密钥 |
username | String | testagninemb01 | 需要添加收藏游戏的用户名 |
gameId | String | 6177a6a402d9f528ced33334 | 需要添加到收藏的游戏ID |
web | String | sportbook101 | 使用的网站 |
响应
{
"code": 0,
"msg": "success",
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API 响应代码 |
msg | String | success | 代码的描述 |
错误代码
值 | 信息 |
---|---|
0 | 成功 |
100001 | 缺少 'agent Username' 字段。 |
100002 | 'agentUsername' 必须为字符串。 |
100003 | 缺少 'key' 字段。 |
100004 | 'Key' 必须为字符串。 |
100012 | 未找到密钥。 |
100013 | 未找到代理。 |
25.3 删除收藏游戏(通用)
用于商户删除收藏游戏列表
方法 : [Post]
路径 : {{domain}}/ext/delFavourites/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"username": "{{agentUsername}}ninemb01",
"key": "{{key}}",
"web": "{{whiteLabel}}",
"gameId": "6177a6a402d9f528ced33334"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 使用的代理 |
key | String | tnyENKDWvOkBXpvm6UZVa | 代理的密钥 |
gameId | String | 6177a6a402d9f528ced33334 | 需要删除的游戏ID |
username | String | testagninemb01 | 需要删除收藏游戏的用户名 |
web | String | sportbook101 | 使用的网站 |
响应
{
"code": 0,
"msg": "success",
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API 响应代码 |
msg | String | success | 代码的描述 |
错误代码
值 | 信息 |
---|---|
0 | 成功 |
100001 | 缺少 'agent Username' 字段。 |
100002 | 'agentUsername' 必须为字符串。 |
100003 | 缺少 'key' 字段。 |
100004 | 'Key' 必须为字符串。 |
100012 | 未找到密钥。 |
100013 | 未找到代理。 |