代理通过两步操作可以打开任何平台的游戏,分别是从GM-Ag获取游戏令牌(token)、生成并打开游戏链接。
...
如果参数错误或系统错误,游戏被重定向到代理指定的‘backUrl’网址。同时,错误码(error)和错误信息(message)将附在重定向URL的末尾,用以说明错误原因。
例如, 当请求中的 ‘backUrl’ 为:
https://www.operator-back-url.com,
失败响应的重定向链接为:
https://www.operator-back-url.com?error={{code}}&message={{error_message}}。
请求例子
Code Block |
---|
https://{{gmag_game_launch_url}}/launcher?gameCode=bfb&token=xxxx&platform=web& language=en&playerId=1234&brandId=101&mode=0&backUrl=backUrl&cashierUrl=cashierUrl |
...
请求
Info |
---|
请求使用的 content type 为 application/json |
参数名 | 类型 | 必选 | 参数说明 |
---|---|---|---|
gameCode | String(32) | 是 | 代表游戏的编码。 |
token | String(255) | 是 | 启动游戏的令牌,用于验证玩家的身份是否合法。 |
platform | String(16) | 是 | 打开游戏的设备平台 (web, mobile, download) 。 |
language | String(8) | 是 | 游戏屏幕显示语言。 |
tableAlias | String(32) | 否 | 用于真人游戏,指定游戏打开的桌牌号码,而不是只进入大厅。 |
playerId | String(20) | 是 | 玩家的唯一标识。 |
brandId | Int | 是 | 代理的唯一标识。 |
mode | Int | 否 | 指定玩家打开方式:真钱、免费试玩。默认为真钱。0 = 免费试玩, 1 = 真钱, 2 = 游客(适用于体育类平台,ibc, betby) |
backUrl | String(1024) | 否 | 打开游戏失败时,重定向的大厅链接。(在发送之前需要对URL进行转译) |
cashierUrl | String(1024) | 否 | 代理网站的玩家存款页面。(在发送之前需要对URL进行转译) |
currency | String(4) | 是 | 新增参数(12/12/2023) |
hash | String(34) | 否 | 新增参数(12/03/2025) 该属性用于防止玩家手动更改游戏代码进入游戏. hash 生成规则MD5(brandId+playerId+gameCode+SecretKey) 如果hash 不匹配则返回 禁止切换游戏 错误提示 |
Info |
---|
响应
Info |
---|
响应使用的 content type 为 text/plain;charset=UTF-8. |
成功的响应
返回进入游戏的链接文本
失败的响应
如果 backUrl 参数不为空那么返回到该地址否则使用默认地址 并加入error 和 message 参数.
...