3.2 Launch Game (取得进入游戏网址)

Description (说明)

This API call is used to let player login and launch specific game
本功能用于让玩家登入与开启指定游戏。

URL (网址)

https://{host}/api/launch_game

Request Method

POST

Request Parameters (请求参数)

Field
(栏位)
Type
(型态)
Required
(必要)
Description
(说明)
agentIdStringYAgent ID <= 50 characters
代理帐号

userIdStringYUser ID <= 50 characters
玩家帐号
gameTypeStringYGame Type <= 10 characters
游戏类型

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

v23.10.3 update
gameCodeStringYGame Code <= 20 characters
游戏代码

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

v23.10.3 update
tableIdNumberNSpecify Table ID
(Specify the table number to enter.)

指定进入的桌号

Please refer to 5.8 Game Table Id for details.
详情请参考 5.8 游戏桌号对照表

v23.12.5.1 update
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://

Supported Game Type 支援游戏类型
  • LIVE (视讯)
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 查询下注限红
identity1StringNunique identifier 1
唯一识别码 1
identity2StringNunique identifier 2
唯一识别码 2
allowNoCommBetBooleanNAllow betting with no commission (If this parameter is not sent,then use the setting of website)

true: on、false: off

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)

true: on、false: off

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

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

true: 开启、false: 关闭

若支线设定为关闭时,该参数视为关闭
{
  "agentId": "hrgag",
  "userId": "hrgpl0001",
  "gameType": "LIVE",
  "gameCode": "BACCARAT",
  "lang": "EN",
  "sound": true,
  "homePageUrl": "https://www.google.com/",
  "betLimits": [
    900001,
    900002,
    900003
  ]
}

Return Result (返回结果)

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

Please refer to 5.4 Status Code for details.
详情请参考 5.4 状态代码
dataObject
urlStringGame URL
游戏链结
{
  "code": "0000",
  "data": {
    "url": "https://{gamepage}/?lang=EN&sound=true&gameType=LIVE&gameCode=BACCARAT&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, "{\"userId\":\"hrgpl0001\",\"lang\":\"EN\",\"sound\":true,\"gameType\":\"LIVE\",\"gameCode\":\"BACCARAT\",\"homePageUrl\":\"https://www.google.com/\",\"betLimits\":[900001,900002,900003]}");
Request request = new Request.Builder()
  .url("https://{host}/api/launch_game")
  .method("POST", body)
  .addHeader("Authorization", "Basic TWpNQ0JSM1NFYnBrYXdSNTpNak1DQlIzU0VicGthd1I1")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();