关注

POST /api/v1/follow

  • 说明:关注一个用户,成功后他将出现在关注列表里,同时调用者将出现在对方的粉丝列表

  • Header

Field
Type
Remarks

ApiKey

String

Authorization

String

Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回

  • Request Parameters

Field
Type
Remarks

address

String

对方的relationId / address

  • Request Example

curl POST 'https://api.relationlabs.ai/api/v1/follow' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: Bearer eyJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJiOTE5N1Y1OGJmYTY0NDRlYmU2ODA1OTc2MmViNzdlZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MDgyNDM0MSwic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYxNDI5MTQxfQ.Y_1NR0N3NgQCzaR1owS6Ga4AbOIfvH7ucZJJ9-HUK_FrXBtG_WjTa3XNDfmHZIwCFDOzAjSHNcRdDaR0NZGUIw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address":"baf34-kiaaa-aaaak-acgja-cai1"
}'
  • Response Parameters

Field
Type
Remarks

code

String

返回码

desc

String

返回信息

data

Object

数据

  • Response Body

{
  "code": "0",
  "desc": "success",
  "data": null
}
  • Return Code

code
desc
Remarks

0

success

接口调用成功

11601

不可follow自己

11602

当前版本不支持该地址

Last updated