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.
-
Find your API URL. This can be found in MG+ Backoffice, or given to you by your Account Manager.
-
Create a request.
-
Replace the URL with your API URL, DemoAgent with your Agent Code, and testPlayer with your playerId.
-
In the request example, this is the api-demo.k2net.io, DemoAgent, and testPlayer portions of the endpoint.
-
-
Set the Authorization token to be your STS Token.
-
In the request example, this is the (STS Token) portion of the request header.
-
-
For the request body:
-
Replace the contentType with “Launchpad”.
-
Replace the contentCode with “ViewOnly”.
-
-
|
Request Example |
|---|
|
Request Headers
Request Body
|
-
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
|