MG+ K2 Common Wallet API Integration Quick Guide
Breadcrumbs

MG+ Promotions – MG+ Rewards Site (View-Only)

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.

  1. Find your API URL. This can be found in MG+ Backoffice, or given to you by your Account Manager.

    image-20240327-075225.png
  2. Create a request.

    1. Replace the URL with your API URL, DemoAgent with your Agent Code, and testPlayer with your playerId.

      1. In the request example, this is the api-demo.k2net.io, DemoAgent, and testPlayer portions of the endpoint.

    2. Set the Authorization token to be your STS Token.

      1. In the request example, this is the (STS Token) portion of the request header.

    3. For the request body:

      1. Replace the contentType with “Launchpad”.

      2. Replace the contentCode with “ViewOnly”.

Request Example

POST https://api-demo.k2net.io/api/v1/agents/DemoAgent/players/testPlayer/sessions


Request Headers

Content-Type: application/x-www-form-urlencoded
Authorization: (STS Token)


Request Body

{
  langCode: "en-us"
  platform: "desktop"
  contentCode: "ViewOnly"
  contentType: "Launchpad"
}


  1. You should receive a game launch URL as a response in the url and gameURL (they are the same).

Response Example

201 Response Body Example

{
  "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..."
}


image-20230619-083958.png
Result