Implement api.sendInvitations.