-
Notifications
You must be signed in to change notification settings - Fork 84
Protocol Relation
This is proposed to replace Follow and Friend.
This is the end point for user-user relation. User-user relation is closely related Access Control at Ourd.
The relation here can be unary or binary. For example, follower
is unary
relation; while friend
is binary relation. For binary relation,
confirm_request
action is needed to establish
Returns the list of user mainatined a relation to current user.
-
access_token
(string, required) -
user_id
(string, optional)- Auto derived from access_token. Required for querying others' relations.
-
type
(string, required)Type of the relation. e.g.
following
-
direction
(string, optional)No effect for binary relation. One of the following:
-
active
(default): likefollowing
in normal relation -
passive
: likefollower
in normal follow relation -
mutual
: like mutual follow in normal follow relation
-
-
result
(array of user objects)The user records who meet the specified follow criteria.
Request to add another user to the follow list of the current user.
-
access_token
(string, required) -
type
(string, required)Type of the relation.
-
targets
(array of string, required)The identifier of the user to follow.
Remove another user from the follow list of the current user.
-
access_token
(string, required) -
type
(string, required)Type of the relation.
-
targets
(array of string, required)The identifier of the user to unfollow.
(TBD) Request to be a friend.
(TBD) Fetch a list of pending friend request.
(TBD) Confirm a friend request.
(TBD) Ignore a friend request.