This API method provides a quick and easy way to mine value from player activities.
By calling the Sessions API with the specific parameters as listed, the URL returned will open the MG+ Rewards site as the player sees it in the Player Zone.
The specific parameters are
-
contentType = “Launchpad”
-
contentCode = “ViewOnly”
POST https://api-demo.k2net.io/api/v1/agents/Test_Agent/players/IMTEST/sessions
Request Headers
JSON
Content-Type: “application/x-www-form-urlencoded”
Authorization: “Bearer eyJhbNTI1ODcxN”
Request Body
JSON
langCode: "en-us"
platform: "desktop"
contentCode: "ViewOnly"
contentType: "Launchpad"
Response Headers
JSON
Content-Type: “application/json; charset=utf-8”
Response Body
JSON
{
"url":"https://mgw.basebit.net/#/recmnd?lang=en-us&platform=Desktop&token=eyJhbGc...",
"gameURL":"https://mgw.basebit.net/#/recmnd?lang=en-us&platform=Desktop&token=eyJhbGc..."
}