Developer Hub
Relation ProtocolRelation ONE APIRelation Graph API
English
English
  • Overview
    • RelationONE
  • Developer Guide
    • Glossary
    • Service Address
    • Rate Limits
    • JS-SDK
    • Quick Start
  • Introducing Relation ONE IM
  • API
    • Introduction
    • Signature
    • Auth
    • Profile
      • Bind Address
      • Unbind Address
      • User Info
      • List Address
      • Web2 Account
    • Follows
      • Follow
      • Unfollow
      • Follower
      • Following
      • Web3 Follower
      • Web3 Following
    • Recommendation
    • Groups
      • Create
      • Join
      • Remove Members
      • Leave
      • Disband
      • Transfer Owner
      • Info
      • Members
      • Is Admin
      • Get Announcement
      • Update Announcement
    • Chats
      • Pin
      • Mute
      • List
      • Hide
    • Message
      • Send
      • Read
      • Hide
      • List
      • Unread Count
  • JS-SDK
    • Relation-Auth
      • Quick Start
      • Method
    • IM-JS-SDK
      • Quick Start
      • Static Method
      • Events
      • Method
      • Parse Message
    • Plugin-JS-SDK
      • Quick Start
  • Appendix
    • Error Code
    • Contract Address
Powered by GitBook
On this page
  1. API
  2. Follows

Follower

GET /api/v1/follower

  • Note: It is for querying the user's list of followers.

  • Header

Field
Type
Remarks

ApiKey

String

Authorization

String

Bearer ${unifiedAuthToken} , in which the unifiedAuthToken is the result returned by /api/v1/auth

  • Request Parameters

Field
Type
Remarks

address

String

relationId or address

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

curl  GET 'https://api.relationlabs.ai/api/v1/follower?address=5x4wh-yiaaa-aaaaj-abidq-cai&cursor=1234&limit=10' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: Bearer eyJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJiOTE5N1Y1OGJmYTY0NDRlYmU2ODA1OTc2MmViNzdlZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MDgyNDM0MSwic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYxNDI5MTQxfQ.Y_1NR0N3NgQCzaR1owS6Ga4AbOIfvH7ucZJJ9-HUK_FrXBtG_WjTa3XNDfmHZIwCFDOzAjSHNcRdDaR0NZGUIw'
  • Response Parameters

Field
Type
Remarks

code

String

the Return Code

desc

String

the Return Message

data

FollowerResponse

the Data

The FollowerResponse field consists of the following subfields:

Field
Type
Remarks

cursor

String

the cursor

list

List[Follower]

list of followers

The Follower field consists of the following subfields:

Field
Type
Remarks

relationId

String

user's relationId

name

String

User name

avatar

String

User's avatar

  • Response Body

{
    "code": "0",
    "desc": "success",
    "data": {
        "cursor": "987a6dc3e3a34c759f3a3607f002d69d",
        "list": [
            {
                "relationId": "1pvde-wiaaa-aaaaj-abihq-cai",
                "name": "test_user",
                "avatar": "https://3fypb-gqaaa-aaaag-aaedq-cai.ic1.io/avatar/17b46f1160e14e1d91e32d3b59d8d6aa"
            }
        ]
    }
}
  • Return Code

code
desc
Remarks

0

success

the flag for a successful request

PreviousUnfollowNextFollowing

Last updated 2 years ago

acquired from the admin

ApiKey