Get list of users which are members of a team a user in

I am developing an application using mattermost rest api. And I wanted to a contact list for a user. In my context a contact list means a list of users that are already a member of teams that the user is in. Can any one help me to achieve this?