Follow
POST /api/v1/follow
Note: It is for following a user. A successful request would add the target user to the caller's list of following. Meanwhile, the caller would be added to the target user's list of followers as well.
Header
Field | Type | Remarks |
---|---|---|
ApiKey | String | ApiKey acquired from the admin |
Authorization | String | Bearer ${unifiedAuthToken} , in which the unifiedAuthToken is the result returned by /api/v1/auth |
Request Parameters
Field | Type | Remarks |
---|---|---|
address | String | The target user's relationId / address |
Request Example
Response Parameters
Field | Type | Remarks |
---|---|---|
code | String | the Return Code |
desc | String | the Return Message |
data | Object | the Data |
Response Body
Return Code
code | desc | Remarks |
---|---|---|
0 | success | the flag for a successful request |
11601 | Users cannot follow themselves. | |
11602 | The address is not supported by the current version |
Last updated