|
@@ -47,12 +47,16 @@
|
|
|
{
|
|
|
"gid": "be001",
|
|
|
"name": "Dragon Stash",
|
|
|
- "gametype": "1"
|
|
|
+ "gametype": "1",
|
|
|
+ "hot": 1,
|
|
|
+ "new": 0
|
|
|
},
|
|
|
{
|
|
|
"gid": "be002",
|
|
|
"name": "Jungle Fruit",
|
|
|
- "gametype": "1"
|
|
|
+ "gametype": "1",
|
|
|
+ "hot": 1,
|
|
|
+ "new": 1
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -68,6 +72,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
+## Login
|
|
|
+
|
|
|
+### Descripti on
|
|
|
+>Invoke this method with your “Key” (returned by GetKey API) to launch game.
|
|
|
+
|
|
|
+>Game return description: After the game is closed, the return address (return_url= the parameter of the return address), if not filled in, the game has no return button.
|
|
|
+
|
|
|
+
|
|
|
+## Method URL
|
|
|
+```
|
|
|
+http://{BesoftFront}/?key=3F6AE577A2E2255EF4BACF02C9F8BB1154A9C6AD2F19701
|
|
|
+568BA675BDA3C46BCA64D243007F87C86119329271708&gid=be001&lang=en&return_url=https://returnyoururl.com
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+> New interface: If you need to close the current window directly, please use the window.open mode to open, and do not need to pass the return_url
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+> New interface: If the parameter return_url is added, please encode the parameter in URLEncoding mode
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+> Embedded interface: If it is embedded, please listen for this message notification (closeMessage), the game manufacturer closes the game's call interface
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+{
|
|
|
+ window.parent.postMessage("closeMessage", "*")
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+## Request Parameter
|
|
|
+
|
|
|
+| Name | Type | Required | Description |
|
|
|
+| -------- | -------- | -------- | -------- |
|
|
|
+| acc | String(30) | Y | User ID |
|
|
|
+| key |string(86) | Y |1.Key value returned by “GetKey” , 2.Please do URLEncoding on it while using the HTTP GET method) |
|
|
|
+| aid | string(20) | Y | Agent Id |
|
|
|
+| nick | string (50) | Y | User name Only Support 16 Unicode characters |
|
|
|
+| gid| Integer | Y| input gameId as default launch game ; if blank, go to lobby. |
|
|
|
+| lang| string | Y| default is cn , cn : simplified Chinese , en : english |
|
|
|
+| return_url | string | N | return_url=Game off return address,Please encode the parameters in URLEncoding mode |
|
|
|
+
|
|
|
+## Return Result
|
|
|
+
|
|
|
+### Successful Result
|
|
|
+
|
|
|
+>Redirect Browser to game hall page
|
|
|
+
|
|
|
+### Failed Result
|
|
|
+
|
|
|
+>The game interface displays the corresponding error message.
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
## Method for piecing together the address of the game entrance icon request
|
|
|
> gameicourl+/+ gid+"_game_icon_"+Size+"_"+"Language encoding"+.png"
|
|
|
|