Get UMI UID

Use this interface to judge whether the user has successfully bound the umiverse platform

HTTP Request

URL:

/sync/getumiid

Request Parameters

Parameter
Type
Required
Description

game_uid

String

Yes

uid in your game

Response Parameters

Parameter
Type
Required
Description

code

Number

Yes

Success:200 Require Login/Register: 404

message

String

Yes

Error message

data

Object

No

null

If it returns 200: it means that the umiverse platform has been bound, no need to log in and register, and directly get the umiUid field in the data

If it returns 404: it means that the umiverse platform has not been bound, you need to use the data in the data field in the returned result as the token parameter for jump login registration

如果返回200:表示已经绑定过umiverse平台,无需登录注册,直接获取data中的umiUid字段

如果返回404:表示未绑定过umiverse平台,则需用返回结果中的data字段的数据作为跳转登录注册的token参数

example

//success
```postman_json
{
    "code": 200,
    "message": "success",
    "data": {
        "id": 1,
        "umiUid": 3,
        "consoleAccountId": 2,
        "gameUid": "kevin",
        "createTime": "2022-12-16T17:46:48.000Z"
    }
}
```

//need login/register
```postman_json
{
    "code": 404,
    "message": "game uid not register in umi",
    "data": "6bebc833c1a7ae16e8d9911397d1dee6" //login / register `s token
}
```

Last updated