MG+ K2 Single Wallet API Integration Quick Guide
Breadcrumbs

创建玩家

呼叫此API在MG+上以创建玩家。


POST https://api-demo.k2net.io/api/v1/agents/Test_Agent/players


Request Headers

JSON
Authorization: “Bearer eyJhbNTI1ODcxN…”
Content-Type: “application/x-www-form-urlencoded”


Request Body

JSON
playerID: "IMTEST"


Response Headers

JSON
Content-Type: “application/json; charset=utf-8”


Response Body

JSON
{"playerId":"IMTEST","createdDateUTC":"2022-06-14T08:27:11.564","isLocked":false,"uri":"https://api-demo.k2net.io/api/v1/agents/Test_Agent/Players/IMTEST"}


image-20240401-065339.png
Flowchart depicting the 201 response.