virn
6 years agoAdept
Follow a User using API
Hi All,
I am thinking of creating a follow button on a custom page that displays multiple users. Is there a way to follow a user through an API?
Thanks in advance.
virn,
You can use the below V1 API to follow any user.
/users/id/${user.id}/addressbook/contacts/friends/add?contacts.user=/users/id/43
Where the user to add to the friends list. The user can be specified as a relative REST API path, such as id/43 to specify the user by id or login/username to specify the user by username, or by an absolute path beginning with a forward slash, like /users/id/43.