15. 开始彩票游戏 (通用)
用于商家开始彩票游戏
方法 : [Post]
路径 : {{domain}}/ext/lottoStartGame/{{prefix}}/{{agentUsername}}
内容类型 : application/json
请求正文
{
"agentUsername": "{{agentUsername}}",
"key": "{{key}}",
"username": "{{agentUsername}}ninemb01",
"language": "en",
"gameType":"thailotto",
"web": "{{whiteLabel}}"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
agentUsername | String | testag | 商家用户名 |
key | String | tnyENKDWvOkBXpvm6UZVa | 商家密钥 |
username | String | testagninemb01 | 用户名 |
language | String | [en, th] | 语言选项 |
gameType | String | home, thailotto, laoslotto, hanoylotto, baaclotto, gsblotto, pingponglotto, laoslotto_set, yeekeelotto, malaylotto, hanoylotto_set, malaylotto_set, stockkorea, stockchina, stockdowjones, stocktaiwan, stockengland, stockindia, stockhangseng, stockegypt, stocknikkei, stocksingapore, stockthai, stockgerman, stockrussia, hanoylotto hanoylotto_set, hanoylottospecial, hanoylottospecial_set, hanoylottovip, hanoylottovip_set, malaylotto, malaylotto_set, zodiaclotto, pingponglotto2,pingponglotto3,pingponglotto6 | 彩票类型 [**若要进入主页,请设置 gameType = home] |
web | String | sportbook101 | 使用的网站 |
响应
{
"code": 0,
"data": {
"uri": "https://test.pirate168.com/token?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6IiJ9.eyJhZ2VudGlkIjo5MCwiZXhwIjoxNjUzODI2NTUwLCJpYXQiOjE2NTI5NjI1NTAsInJvbGUiOiJ0ZXN0YTBhYXV0bzA4NTk3NjU3NTBAc3BvcnRib29rIiwic3ViIjpmYWxzZX0.i7AZRkmQUob8jTWEWl7yYEb5ZlMyv-OtkBLMo2dosYM&header=off&header=off&lottotype=thailotto&lang=th"
},
"msg": "SUCCESS"
}
键 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Number | 0 | API响应代码 |
msg | String | success | 响应代码说明 |
url | String | https://test.pirate168.com/token?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6IiJ9.eyJhZ2VudGlkIjo5MCwiZXhwIjoxNjUzODI2NTUwLCJpYXQiOjE2NTI5NjI1NTAsInJvbGUiOiJ0ZXN0YTBhYXV0bzA4NTk3NjU3NTBAc3BvcnRib29rIiwic3ViIjpmYWxzZX0.i7AZRkmQUob8jTWEWl7yYEb5ZlMyv-OtkBLMo2dosYM&header=off&header=off&lottotype=thailotto&lang=th | 彩票游戏开始的URL |
错误代码
值 | 信息 |
---|---|
0 | 成功 |
100001 | 缺少 'agent Username' 字段 |
100002 | 'agent username' 必须是字符串 |
100003 | 缺少 'key' 字段 |
100004 | 'key' 必须是字符串 |
100005 | 缺少 'username' 字段 |
100006 | 'username' 必须是字符串 |
100009 | 用户名必须在 8 到 48 个字符之间 |
100012 | 找不到密钥 |
100013 | 找不到代理 |
100014 | 找不到会员 |
100026 | 缺少 'language' 字段 |
100037 | 缺少 'gameType' 字段 |
100029 | 该游戏目前无法提供,请联系您的代理。 |