取关

POST /api/v1/unfollow

  • 说明: 取消关注,成功后他将从关注列表里边移除,同时调用者也会从对方的粉丝列表里移除

  • Header

Field
Type
Remarks

ApiKey

String

从管理员获取的ApiKey

Authorization

String

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

  • Request Parameters

Field
Type
Remarks

address

String

对方的relationId or address

  • Request Example

curl POST 'https://api.relationlabs.ai/api/v1/unfollow' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: Bearer eyJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJiOTE5N1Y1OGJmYTY0NDRlYmU2ODA1OTc2MmViNzdlZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MDgyNDM0MSwic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYxNDI5MTQxfQ.Y_1NR0N3NgQCzaR1owS6Ga4AbOIfvH7ucZJJ9-HUK_FrXBtG_WjTa3XNDfmHZIwCFDOzAjSHNcRdDaR0NZGUIw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address":"1edvh-qqaaa-aaaaj-abina-cai"
}'
  • 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

接口调用成功

Last updated