@api_resource(Team)<EOL><INDENT>def _add_remove_team_member(self, url, email_address=None, account_id=None):<DEDENT>
if not email_address and not account_id:<EOL><INDENT>raise HSException("<STR_LIT>")<EOL><DEDENT>data = {}<EOL>if account_id is not None:<EOL><INDENT>data = {<EOL>"<STR_LIT>": account_id<EOL>}<EOL><DEDENT>else:<EOL><INDENT>data = {<EOL>"<STR_LIT>": email_address<EOL>}<EOL><DEDENT>request = self._get_request()<EOL>response = request.post(url, data)<EOL>return response<EOL>
Add or Remove a team member

        We use this function for two different tasks because they have the same
        API call

        Args:

            email_address (str):    Email address of the Account to add/remove

            account_id (str):       ID of the Account to add/remove

        Returns:
            A Team object