def get_sent_thread_invitation(self, thread_id, invitation_id):
        # Send request
        response = ThreadsIdInvitationsIdHandler(actor=self.actor).get(thread_id=thread_id, invitation_id=invitation_id)

        # Parse model
        model = ThreadInvitationModel(external_model=response.json())

        return model
    def invite_users_to_thread(self, thread_id, user_ids):
        # Send request
        response = ThreadsIdInviteHandler(actor=self.actor).post(thread_id=thread_id, user_ids=user_ids)

        # Parse models
        models = [ThreadInvitationModel(external_model=external_model) for external_model in response.json()]

        return models
    def accept_or_reject_thread_invitation(self, invitation_id, accept):
        # Send request
        response = ThreadsInvitationsIdHandler(actor=self.actor).post(invitation_id=invitation_id, accept=accept)

        # Parse model
        model = ThreadInvitationModel(external_model=response.json())

        return model
    def get_sent_thread_invitations(self, thread_id):
        # Send request
        response = ThreadsIdInvitationsHandler(actor=self.actor).get(thread_id=thread_id)

        # Parse models
        models = [ThreadInvitationModel(external_model=external_model)
                  for external_model in response.json()["items"]]

        return models