用户信息

GET /api/v1/userInfo

  • 说明: 返回用户个人信息,参数为空即查询当前访问的用户

  • Header

  • Request Parameters

  • Request Example

curl  GET 'https://api.relationlabs.ai/api/v1/userInfo?address=0x9bd286ef4e3d9ec1af6c6ae9da2f0b3617deab13' \
--header 'ApiKey: <ApiKey>'
  • Response Parameters

The UserInfo field consists of the following subfields:

The FollowCount field consists of the following subfields:

The AddressWithChain field consists of the following subfields:

  • Response Body

{
    "code": "0",
    "desc": "success",
    "data": {
        "relationId": "d4swz-zaaaa-aaaaj-at5fa-cai",
        "name": "test_user",
        "avatar": "https://3fypb-gqaaa-aaaag-aaedq-cai.ic1.io/nft/eth/relation-test-club/16.png",
        "createdAt": "2022-08-18 16:54:15",
        "followCount": {
            "followingCount": 10,
            "followerCount": 30
        },
        "addressWithChain": [
            {
                "address": "0x1152e0eebd5d2b98da5d1ed7d1ce066c20a4e430",
                "chainName": "eth"
            }
        ]
    }
}
  • Return Code

Last updated