UMIVERSE SDK
  • UMIVERSE SDK Doc
    • Overview
    • Configure Secret Key and API Domain
    • Sync Account
      • OAuth login
        • Preparations for OAuth
        • Use Authorization_Code to get UMI_UID
        • Decrypt Authorization Code
          • AES Decrypt
    • Dive Points
      • Increase DivePoint
        • API
      • Mission System
        • Request task panel view in H5 game
    • Game Recharge
      • Initiate Recharge Request
      • Handle Recharge Completion
  • Signature
    • Typescript
    • PHP
    • Java
    • C++
  • SDK DEMO
  • Legacy
    • API Key/Secret
    • SignUp & SignIn
    • Get UMI UID
    • Authentication
    • Umiverse Features
      • Mint
      • Send a server-generated item to Umi account
      • Get all items that the player can put up for sale
      • Send an item to a player
      • Deduct an item from a player
    • Redirect
  • Developer Console
    • Add Game Information
Powered by GitBook
On this page
  1. Legacy

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
}
```
PreviousSignUp & SignInNextAuthentication

Last updated 2 years ago