public Team inviteTeamMember ( String idOrEmail ) throws HelloSignException { String key = ( idOrEmail != null && idOrEmail . contains ( "@" ) ) ? Account . ACCOUNT_EMAIL_ADDRESS : Account . ACCOUNT_ID ; return new Team ( httpClient . withAuth ( auth ) . withPostField ( key , idOrEmail ) . post ( BASE_URI + TEAM_ADD_MEMBER_URI ) . asJson ( ) ) ; }
Adds the user to the current user s team .