Twilio.Flex.V1.Insight.QualityManagement.InsightsQuestionnairesService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for InsightsQuestionnaires API operations.

Operations: list, create, fetch, update, delete

Summary

Functions

To create a Questionnaire

To delete the questionnaire

To get the Questionnaire Detail

To get all questionnaires with questions

Stream: To get all questionnaires with questions (lazy auto-pagination).

Functions

create(client, params \\ %{}, opts \\ [])

To create a Questionnaire

Operation: CreateInsightsQuestionnaires | Tags: FlexV1InsightsQuestionnaires

Required Parameters

ParameterTypeDescription
NamestringThe name of this questionnaire

Optional Parameters

ParameterTypeDescription
ActivebooleanThe flag to enable or disable questionnaire
DescriptionstringThe description of this questionnaire
QuestionSidsarrayThe list of questions sids under a questionnaire

delete(client, sid, opts \\ [])

@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}

To delete the questionnaire

Operation: DeleteInsightsQuestionnaires | Tags: FlexV1InsightsQuestionnaires

fetch(client, sid, opts \\ [])

To get the Questionnaire Detail

Operation: FetchInsightsQuestionnaires | Tags: FlexV1InsightsQuestionnaires

list(client, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

To get all questionnaires with questions

Operation: ListInsightsQuestionnaires | Tags: FlexV1InsightsQuestionnaires

Query Parameters

ParameterTypeDescription
IncludeInactivebooleanFlag indicating whether to include inactive questionnaires or not

stream(client, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()

Stream: To get all questionnaires with questions (lazy auto-pagination).

update(client, sid, params \\ %{}, opts \\ [])

To update the questionnaire

Operation: UpdateInsightsQuestionnaires | Tags: FlexV1InsightsQuestionnaires

Required Parameters

ParameterTypeDescription
ActivebooleanThe flag to enable or disable questionnaire

Optional Parameters

ParameterTypeDescription
DescriptionstringThe description of this questionnaire
NamestringThe name of this questionnaire
QuestionSidsarrayThe list of questions sids under a questionnaire