Recommendation
GET /api/v1/recommend
Note: The recommendation engine recommends potential friends to users based on whom they follow on twitter, users' on-chain transactions on the Ethereum blockchain, the NFTs they hold, and whom they are following at this moment.
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 |
---|---|---|
limit | int | Query limit (up to 100) |
cursor | string | Cursor data returned by last page. If it is empty, it means the caller is querying the first page. |
Request Example
Response Parameters
Field | Type | Remarks |
---|---|---|
code | String | the Return Code |
desc | String | the Return Message |
data | RecommendResponse | the Data |
The RecommendResponse field consists of the following subfields:
Field | Type | Remarks |
---|---|---|
cursor | String | the cursor |
list | List[RecommendUser] | list of followers |
The RecommendUser field consists of the following subfields:
Field | Type | Remarks |
---|---|---|
relationId | String | User's relationId |
name | String | User name |
avatar | String | User's avatar |
recommendReason | String | Reason for recommendation:Following on twitterCounterparty on ethereumHolder of ${nft name}Followed by ${followingUser's name} |
following | boolean | Following or not: true for following; false for not |
Response Body
Return Code
code | desc | Remarks |
---|---|---|
0 | success | the flag for a successful request |
Last updated