Web2 Account
GET /api/v1/web2/account
Note: It is for querying a user's associated Web2 accounts. (Twitter is supported now)
Header
Field
Type
Remarks
ApiKey
String
The ApiKey obtained from Admin.
Authorization
String
Bearer ${unifiedAuthToken} , in which the "unifiedAuthToken" is the result returned by /api/v1/auth
Request Parameters
Field
Type
Remarks
address
String
web3 address
Request Example
curl GET 'https://api.relationlabs.ai/api/v1/web2/account?address=0x5fda2abc07ce479e1edeb510d83ef499a532be31' \
--header 'ApiKey: 〈ApiKey>' \
--header 'Authorization: bearer eyJhbGciOiJ1FUzI1NiJ9.eyJqdGkiOiI5MmFlMjc5OWE5MDk0YzY0ODllZTYzOD1kyYmRkZmUxZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MjA5MTYxMywic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYyNjk2NDEzfQ.fQP4SO6dmptRUvWEp6GGRNTJrXhRL2g2Z07UzYLQF01nd74uNd3KYnlqv5-leOs0M1Fm5dy-EUhPZQ_272nnb5Q'
Response Parameters
Field
Type
Remarks
code
String
Return Code
desc
String
Return Informatiom
data
List[Web2Account]
Data
The Web2Account field consists of the following subfields:
Field
Type
Remarks
account
String
User's Web2 account
platform
String
Web2 platforms: 0-twitter
Response Body
{
"code": "0",
"desc": "success",
"data": [
{
"account": "rambo76909093",
"platform": 0
}
]
}
Return Code
code
desc
Remarks
0
success
The flag for a successful API call.
Last updated