Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Protocol Follow

Rick Mak edited this page Apr 7, 2017 · 1 revision

Overview

follow:fetch

Overview

Returns the list of following users or followed users.

Parameters

  • access_token (string, required)

  • type (string, required)

    Follow type of the relation.

  • filter (string, required)

    One of the following:

    • following: Returns a list of users who the specified user is following.

    • followed: Returns a list of users who is following the specified user.

    • mutual: Returns a list of user who is following the current user and the current user is following back.

  • user_id (string, optional)

    Follow list of the other user to be returned. This parameter is considered only for following and followed filter.

Returns

  • result (array of objects)

    The user records who meet the specified follow criteria.

follow:save

Request to add another user to the follow list of the current user.

Parameters

  • access_token (string, required)

  • type (string, required)

    Follow relation type.

  • target_user (string, required)

    The identifier of the user to follow.

follow:delete

Remove another user from the follow list of the current user.

Parameters

  • access_token (string, required)

  • type (string, required)

    Follow relation type.

  • target_user (string, required)

    The identifier of the user to unfollow.