> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # ListMemberFollowing # Package: activity # Namespace: MemberFollowers # Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/members-followers/list-member-following.md ## Permission Scopes: Read Member Connections: SCOPE.DC-MEMBERS.READ-FOLLOWERS ## Introduction Retrieves a list of members who are followed by the given member. --- ## REST API ### Schema ``` Method: listMemberFollowing Description: Retrieves a list of members who are followed by the given member. URL: https://www.wixapis.com/members/v3/followers/{memberId}/following Method: GET # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: memberId Method parameters: param name: memberId | type: none | required: true param name: paging | type: CursorPaging - name: limit | type: integer | description: Number of items to return. See [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md). - name: cursor | type: string | description: Cursor returned from last query response. Return type: ListMemberFollowingResponse - name: memberIds | type: array | description: Retrieved list of members who are followed by the given member. - name: pagingMetadata | type: PagingMetadataV2 | description: Details on the paged set of results returned. - name: count | type: integer | description: Number of items starting from given cursor. - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. - name: next | type: string | description: Cursor string pointing to the next page in the list of results. - name: prev | type: string | description: Cursor pointing to the previous page in the list of results. ``` ### Examples ### List Member Following ```curl curl -X GET \ 'https://www.wixapis.com/members/v3/followers/24d1fada-b1fb-44e3-ab31-d48b243b9d34/following' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.activity.MemberFollowers.listMemberFollowing(memberId, options) Description: Retrieves a list of members who are followed by the given member. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: memberId Method parameters: param name: memberId | type: string | description: GUID of the member whose followers to list. | required: true param name: options | type: ListMemberFollowingOptions none - name: paging | type: CursorPaging | description: Pagination options. For more information, see [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md). - name: limit | type: integer | description: Number of items to return. See [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md). - name: cursor | type: string | description: Cursor returned from last query response. Return type: PROMISE - name: memberIds | type: array | description: Retrieved list of members who are followed by the given member. - name: metadata | type: PagingMetadataV2 | description: Details on the paged set of results returned. - name: count | type: integer | description: Number of items starting from given cursor. - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. - name: next | type: string | description: Cursor string pointing to the next page in the list of results. - name: prev | type: string | description: Cursor pointing to the previous page in the list of results. ``` ### Examples ### listMemberFollowing ```javascript import { memberFollowers } from '@wix/members'; async function listMemberFollowing(memberId,options) { const response = await memberFollowers.listMemberFollowing(memberId,options); }; ``` ### listMemberFollowing (with elevated permissions) ```javascript import { memberFollowers } from '@wix/members'; import { auth } from '@wix/essentials'; async function myListMemberFollowingMethod(memberId,options) { const elevatedListMemberFollowing = auth.elevate(memberFollowers.listMemberFollowing); const response = await elevatedListMemberFollowing(memberId,options); } ``` ### listMemberFollowing (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { memberFollowers } from '@wix/members'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { memberFollowers }, // Include the auth strategy and host as relevant }); async function listMemberFollowing(memberId,options) { const response = await myWixClient.memberFollowers.listMemberFollowing(memberId,options); }; ``` ---