add get_friends functionality to api and cli"