3.1 Launch Lobby (取得进入游戏大厅网址)

Description (说明)

This API call is used to let player login and launch HRG lobby
本功能用于让玩家登入与开启 HRG 游戏大厅。

URL (网址)

https://{host}/api/launch_lobby

Request Method

POST

Request Parameters (请求参数)

Field
(栏位)
Type
(型态)
Required
(必要)
Description
(说明)
agentIdStringYAgent ID <= 50 characters
代理帐号
userIdStringYUser ID <= 50 characters
玩家帐号
langStringNLanguage fixed 2 characters
语言

default: EN
预设: EN

Please refer to 5.3 Languages for details.
详情请参考 5.3 语言
soundBooleanNEnable Sound
启用声音

default: true
预设: true
homePageUrlStringNSpecify the url to return to the operator's home page. <= 3000 characters
指定返回营运商主页的 URL

need to set http:// or https://
需要设置 http:// or https://
settingsArray of SettingNSetting
设定

Setting 设定

Field
(栏位)
Type
(型态)
Required
(必要)
Description
(说明)
gameTypeStringYGame Type <= 10 characters
游戏类型

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏

Supported Game Type 支援游戏类型
  • LIVE (视讯)
gameCodeStringYGame Code <= 20 characters
游戏代码

Please refer to 5.1 Game for details.
详情请参考 5.1 游戏
gameSettingGameSettingYGame Setting
游戏设定
enableBooleanNDisplay game icon in lobby (If this parameter is not sent,then use the setting of website)

defalue: true

if the setting of website is not open, then this setting is false

大厅显示游戏图标 (未带值,依支线设定)

预设:开启

若支线未开放该游戏时,该参数视为关闭

true 开启、false 关闭

GameSetting 游戏设定

Field
(栏位)
Type
(型态)
Required
(必要)
Description
(说明)
betLimitsArray of NumberNUpdate the player's bet limit array size <= 6
更新玩家的下注限红

up to six groups of bet limit id can be set
最多可设定六组 Bet Limit ID

Example 范例:[900001,900002,900003]

Please refer to 3.9 Query Bet Limit for details.
详情请参考 3.9 查询下注限红
allowNoCommBetBooleanNAllow betting with no commission (If this parameter is not sent,then use the setting of website)

if the setting of website is off, then this setting is off

允许开启免佣下注(未带值,依支线设定)

若支线设定为关闭时,该参数视为关闭

true 开启、false 关闭

Supported Game 支援游戏
  • BACCARAT (百家乐)
allowHedgeBettingBooleanNAllow headge betting (If this parameter is not sent, then use the setting of website)

if the setting of website is off, then this setting is off

允许开启对赌下注(未带值,依支线设定)

若支线设定为关闭时,该参数视为关闭

true 开启、false 关闭
{
  "agentId": "hrgag",
  "userId": "hrgpl0001",
  "lang": "EN",
  "sound": true,
  "homePageUrl": "https://www.google.com",
  "settings": [
    {
      "gameType": "LIVE",
      "gameCode": "BACCARAT",
      "gameSetting": {
        "betLimits": [900001, 900002, 900003, 900004, 900005],
        "allowNoCommBet": true,
        "allowHedgeBetting": false
      }
    },
    {
      "gameType": "LIVE",
      "gameCode": "ROULETTE",
      "gameSetting": {
        "betLimits": [900001, 900002, 900003, 900004, 900005],
        "allowHedgeBetting": false
      }
    },
    {
      "gameType": "LIVE",
      "gameCode": "DRAGON_TIGER",
      "gameSetting": {
        "betLimits": [900001, 900002, 900003, 900004, 900005],
        "allowHedgeBetting": false
      }
    }
  ]
}

Return Result (返回结果)

Field
(栏位)
Type
(型态)
Description
(说明)
codeStringStatus Code fixed 4 characters
状态码

Please refer to 5.4 Status Code for details.
详情请参考 5.4 状态代码
dataObject
urlStringHRG Lobby URL
游戏大厅链结
{
  "code": "0000",
  "data": {
    "url": "https://{gamelobby}/?lang=EN&x=Q2cA1qPvyUo26TzfM_dUgWTV5wDQ1gbAt8AgyEYgFAfOO1iopp1DEEwppfwW92akPCbsbp-Cmk95KXGiNEntz1nG2aRUcGnfex4UlCBTWdhhXchsyws5B1Xwt4QeP10d1t6JCqE77peH5IyHcdu41w=="
  }
}

Sample Request For Each Language (各语言请求范例)

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\",\"userId\":\"hrgpl0001\"}");
Request request = new Request.Builder()
  .url("https://{host}/api/launch_bobby")
  .method("POST", body)
  .addHeader("Authorization", "Basic TWpNQ0JSM1NFYnBrYXdSNTpNak1DQlIzU0VicGthd1I1")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();