NAV

Introduction

ConnexionSDK Open API v1.0.0

1 Integration Preparations

2 Basic Information

2.1 API basic information

2.2 IP restriction

2.3 Required parameters in request header

ps: ${APIKEY}is the API Key requested in rule 1, ${SIGNATURE} is the generated signature according to rule 2.4

2.4 Required parameter

Parameter Type Required Description
timestamp String Yes Second-level timestamp

2.5 Signature generating rules

We are providing API SDK in three languages:

3 Ports

3.1 Userlist requesting port

Description

Path

Method

Parameters

Parameter Type Required Description
currentPage Int Yes Current page
pageSize Int Yes Number of data on each page

Sample Input Parameter:

timestamp=1234567890&currentPage=1&pageSize=10

Output

Name Type Enum Description
total Int Total number of data
data Array Data array
> uid String In game user ID
> roleName String Character name
> roleType String Character type
> level String Level
> militaryCapability String Fighting capacity
> ranking String Fighting capacity ranking

Sample Response:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "uid": "12345",
            "roleName": "name",
            "roleType": "warrior",
            "level": "33",
            "militaryCapability": "23580",
            "ranking": "10"
        },
        ...
    ],
    "total": 1
}

3.2 User info requesting port

Description

Path

Method

Parameters

Parameter Type Required Description
uid String Yes In game user ID

Sample Input Parameter:

uid=1234523456&timestamp=1234567890

Output

Name Type Enum Description
data Object Data
> uid String In game userID
> roleName String Character name
> roleType String Character type
> level String Level
> militaryCapability String Fighting capacity
> ranking String Fighting capacity ranking
extraData Object Other data

Sample Response:

{
    "msg": "success",
    "code": 0,
    "data": {
            "uid": "12345",
            "roleName": "name",
            "roleType": "warrior",
            "level": "33",
            "militaryCapability": "23580",
            "ranking": "10",
            "extraData":  {

            }
    }
}

3.3 User fighting capacity ranking port

Description

Path

Method

Parameters

Parameter Type Required Description
topNum Int No Top ranking counts, default 100, max 100

Sample input parameters:

topNum=100&timestamp=1234567890

Output

Name Type Enum Description
data Array Data
> roleName String Character name
> value String Fighting capcity
> ranking String Rank

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "roleName": "12345",
            "value": "23580",
            "ranking": "10"
        },
        ...
    ]
}

3.4 User level ranking port

Description

Path

Method

Parameters

Parameter Type Required Description
topNum Int No Top ranking counts, default 100, max 100

Sample input parameters:

topNum=100&timestamp=1234567890

Output

Name Type Enum Description
data Array Data
> roleName String Character name
> value String Character level
> ranking String Rank

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "roleName": "12345",
            "value": "23580",
            "ranking": "10"
        },
        ...
    ]
}

3.5 User 1v1 pvp rating ranking port

Description

Path

Method

Parameters

Parameter Type Required Description
topNum Int No Top ranking counts, default 100, max 100

Sample input parameters:

topNum=100&timestamp=1234567890

Output

Name Type Enum Description
data Array Data
> roleName String Character name
> value String Character 1v1 pvp rating
> ranking String Rank

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "roleName": "12345",
            "value": "23580",
            "ranking": "10"
        },
        ...
    ]
}

3.6 User 3v3 pvp rating ranking port

Description

Path

Method

Parameters

Parameter Type Required Description
topNum Int No Top ranking counts, default 100, max 100

Sample input parameters:

topNum=100&timestamp=1234567890

Output

Name Type Enum Description
data Array Data
> roleName String Character name
> value String Character 3v3 pvp rating
> ranking String Rank

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "roleName": "12345",
            "value": "23580",
            "ranking": "10"
        },
        ...
    ]
}

3.7 User improved fighting capacity ranking port

Description

Path

Method

Parameters

Parameter Type Required Description
topNum Int No Top ranking counts, default 100, max 100

Sample input parameters:

topNum=100&timestamp=1234567890

Output

Name Type Enum Description
data Array Data
> roleName String Character name
> value String Value of fighting capacity improvement
> ranking String Rank

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": [
        {
            "roleName": "12345",
            "value": "23580",
            "ranking": "10"
        },
        ...
    ]
}

3.8 User onchain data search port

Description

Path

Method

Parameters

Parameter Type Required Description
address String Yes Wallet address

Sample input parameters:

address=0xF387a991234785B2D9d8f9826822BeCD367D5678&timestamp=1234567890

Output

Name Type Enum Description
data Object Data
> minted String Did the user mint the NFT (true/false)
> deposited String Did the user deposit the NFT (true/false)
extraData Object Other additional data

Sample output:

{
    "msg": "success",
    "code": 0,
    "data": {
            "minted": true,
            "deposited": true,
            "extraData":  {

            }
    }
}

4 Error Code

code msg
0 success
50001 Invalid api key
50002 Invalid signature
50003 invalid requesting method
50004 invalid parameters
50005 requesting ip not whitelisted
50006 invalid timestamp (have not submitted timestamp parameter or requesting time exceeds 5 second)
50007 system error (please contact openapi developers)
50008 Invalid request