package
1.22.3
Repository: https://github.com/twilio/twilio-go.git
Documentation: pkg.go.dev

# README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://flex-api.twilio.com

ClassMethodHTTP requestDescription
AccountProvisionStatusApiFetchProvisioningStatusGet /v1/account/provision/status
ChannelsApiCreateChannelPost /v1/Channels
ChannelsApiDeleteChannelDelete /v1/Channels/{Sid}
ChannelsApiFetchChannelGet /v1/Channels/{Sid}
ChannelsApiListChannelGet /v1/Channels
ConfigurationApiFetchConfigurationGet /v1/Configuration
ConfigurationApiUpdateConfigurationPost /v1/Configuration
FlexFlowsApiCreateFlexFlowPost /v1/FlexFlows
FlexFlowsApiDeleteFlexFlowDelete /v1/FlexFlows/{Sid}
FlexFlowsApiFetchFlexFlowGet /v1/FlexFlows/{Sid}
FlexFlowsApiListFlexFlowGet /v1/FlexFlows
FlexFlowsApiUpdateFlexFlowPost /v1/FlexFlows/{Sid}
InsightsConversationsApiListInsightsConversationsGet /v1/Insights/Conversations
InsightsQualityManagementAssessmentsApiCreateInsightsAssessmentsPost /v1/Insights/QualityManagement/Assessments
InsightsQualityManagementAssessmentsApiListInsightsAssessmentsGet /v1/Insights/QualityManagement/Assessments
InsightsQualityManagementAssessmentsApiUpdateInsightsAssessmentsPost /v1/Insights/QualityManagement/Assessments/{AssessmentSid}
InsightsQualityManagementAssessmentsCommentsApiCreateInsightsAssessmentsCommentPost /v1/Insights/QualityManagement/Assessments/Comments
InsightsQualityManagementAssessmentsCommentsApiListInsightsAssessmentsCommentGet /v1/Insights/QualityManagement/Assessments/Comments
InsightsQualityManagementCategoriesApiCreateInsightsQuestionnairesCategoryPost /v1/Insights/QualityManagement/Categories
InsightsQualityManagementCategoriesApiDeleteInsightsQuestionnairesCategoryDelete /v1/Insights/QualityManagement/Categories/{CategorySid}
InsightsQualityManagementCategoriesApiListInsightsQuestionnairesCategoryGet /v1/Insights/QualityManagement/Categories
InsightsQualityManagementCategoriesApiUpdateInsightsQuestionnairesCategoryPost /v1/Insights/QualityManagement/Categories/{CategorySid}
InsightsQualityManagementQuestionnairesApiCreateInsightsQuestionnairesPost /v1/Insights/QualityManagement/Questionnaires
InsightsQualityManagementQuestionnairesApiDeleteInsightsQuestionnairesDelete /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}
InsightsQualityManagementQuestionnairesApiFetchInsightsQuestionnairesGet /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}
InsightsQualityManagementQuestionnairesApiListInsightsQuestionnairesGet /v1/Insights/QualityManagement/Questionnaires
InsightsQualityManagementQuestionnairesApiUpdateInsightsQuestionnairesPost /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid}
InsightsQualityManagementQuestionsApiCreateInsightsQuestionnairesQuestionPost /v1/Insights/QualityManagement/Questions
InsightsQualityManagementQuestionsApiDeleteInsightsQuestionnairesQuestionDelete /v1/Insights/QualityManagement/Questions/{QuestionSid}
InsightsQualityManagementQuestionsApiListInsightsQuestionnairesQuestionGet /v1/Insights/QualityManagement/Questions
InsightsQualityManagementQuestionsApiUpdateInsightsQuestionnairesQuestionPost /v1/Insights/QualityManagement/Questions/{QuestionSid}
InsightsQualityManagementSettingsAnswerSetsApiFetchInsightsSettingsAnswersetsGet /v1/Insights/QualityManagement/Settings/AnswerSets
InsightsQualityManagementSettingsCommentTagsApiFetchInsightsSettingsCommentGet /v1/Insights/QualityManagement/Settings/CommentTags
InsightsSegmentsApiListInsightsSegmentsGet /v1/Insights/Segments
InsightsSessionApiCreateInsightsSessionPost /v1/Insights/Session
InsightsUserRolesApiFetchInsightsUserRolesGet /v1/Insights/UserRoles
InteractionsApiCreateInteractionPost /v1/Interactions
InteractionsApiFetchInteractionGet /v1/Interactions/{Sid}
InteractionsChannelsApiFetchInteractionChannelGet /v1/Interactions/{InteractionSid}/Channels/{Sid}
InteractionsChannelsApiListInteractionChannelGet /v1/Interactions/{InteractionSid}/Channels
InteractionsChannelsApiUpdateInteractionChannelPost /v1/Interactions/{InteractionSid}/Channels/{Sid}
InteractionsChannelsInvitesApiCreateInteractionChannelInvitePost /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites
InteractionsChannelsInvitesApiListInteractionChannelInviteGet /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites
InteractionsChannelsParticipantsApiCreateInteractionChannelParticipantPost /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants
InteractionsChannelsParticipantsApiListInteractionChannelParticipantGet /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants
InteractionsChannelsParticipantsApiUpdateInteractionChannelParticipantPost /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants/{Sid}
PluginServiceConfigurationsApiCreatePluginConfigurationPost /v1/PluginService/Configurations
PluginServiceConfigurationsApiFetchPluginConfigurationGet /v1/PluginService/Configurations/{Sid}
PluginServiceConfigurationsApiListPluginConfigurationGet /v1/PluginService/Configurations
PluginServiceConfigurationsArchiveApiUpdatePluginConfigurationArchivePost /v1/PluginService/Configurations/{Sid}/Archive
PluginServiceConfigurationsPluginsApiFetchConfiguredPluginGet /v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid}
PluginServiceConfigurationsPluginsApiListConfiguredPluginGet /v1/PluginService/Configurations/{ConfigurationSid}/Plugins
PluginServicePluginsApiCreatePluginPost /v1/PluginService/Plugins
PluginServicePluginsApiFetchPluginGet /v1/PluginService/Plugins/{Sid}
PluginServicePluginsApiListPluginGet /v1/PluginService/Plugins
PluginServicePluginsApiUpdatePluginPost /v1/PluginService/Plugins/{Sid}
PluginServicePluginsArchiveApiUpdatePluginArchivePost /v1/PluginService/Plugins/{Sid}/Archive
PluginServicePluginsVersionsApiCreatePluginVersionPost /v1/PluginService/Plugins/{PluginSid}/Versions
PluginServicePluginsVersionsApiFetchPluginVersionGet /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}
PluginServicePluginsVersionsApiListPluginVersionGet /v1/PluginService/Plugins/{PluginSid}/Versions
PluginServicePluginsVersionsArchiveApiUpdatePluginVersionArchivePost /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive
PluginServiceReleasesApiCreatePluginReleasePost /v1/PluginService/Releases
PluginServiceReleasesApiFetchPluginReleaseGet /v1/PluginService/Releases/{Sid}
PluginServiceReleasesApiListPluginReleaseGet /v1/PluginService/Releases
WebChannelsApiCreateWebChannelPost /v1/WebChannels
WebChannelsApiDeleteWebChannelDelete /v1/WebChannels/{Sid}
WebChannelsApiFetchWebChannelGet /v1/WebChannels/{Sid}
WebChannelsApiListWebChannelGet /v1/WebChannels
WebChannelsApiUpdateWebChannelPost /v1/WebChannels/{Sid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Optional parameters for the method 'CreateChannel'.
Optional parameters for the method 'CreateFlexFlow'.
Optional parameters for the method 'CreateInsightsAssessmentsComment'.
Optional parameters for the method 'CreateInsightsAssessments'.
Optional parameters for the method 'CreateInsightsQuestionnairesCategory'.
Optional parameters for the method 'CreateInsightsQuestionnaires'.
Optional parameters for the method 'CreateInsightsQuestionnairesQuestion'.
Optional parameters for the method 'CreateInsightsSession'.
Optional parameters for the method 'CreateInteractionChannelInvite'.
Optional parameters for the method 'CreateInteractionChannelParticipant'.
Optional parameters for the method 'CreateInteraction'.
Optional parameters for the method 'CreatePluginConfiguration'.
Optional parameters for the method 'CreatePlugin'.
Optional parameters for the method 'CreatePluginRelease'.
Optional parameters for the method 'CreatePluginVersion'.
Optional parameters for the method 'CreateWebChannel'.
Optional parameters for the method 'DeleteInsightsQuestionnairesCategory'.
Optional parameters for the method 'DeleteInsightsQuestionnaires'.
Optional parameters for the method 'DeleteInsightsQuestionnairesQuestion'.
Optional parameters for the method 'FetchConfiguration'.
Optional parameters for the method 'FetchConfiguredPlugin'.
Optional parameters for the method 'FetchInsightsQuestionnaires'.
Optional parameters for the method 'FetchInsightsSettingsAnswersets'.
Optional parameters for the method 'FetchInsightsSettingsComment'.
Optional parameters for the method 'FetchInsightsUserRoles'.
Optional parameters for the method 'FetchPluginConfiguration'.
Optional parameters for the method 'FetchPlugin'.
Optional parameters for the method 'FetchPluginRelease'.
Optional parameters for the method 'FetchPluginVersion'.
FlexV1Channel struct for FlexV1Channel.
FlexV1Configuration struct for FlexV1Configuration.
FlexV1ConfiguredPlugin struct for FlexV1ConfiguredPlugin.
FlexV1FlexFlow struct for FlexV1FlexFlow.
FlexV1InsightsAssessments struct for FlexV1InsightsAssessments.
FlexV1InsightsAssessmentsComment struct for FlexV1InsightsAssessmentsComment.
FlexV1InsightsConversations struct for FlexV1InsightsConversations.
FlexV1InsightsQuestionnaires struct for FlexV1InsightsQuestionnaires.
FlexV1InsightsQuestionnairesCategory struct for FlexV1InsightsQuestionnairesCategory.
FlexV1InsightsQuestionnairesQuestion struct for FlexV1InsightsQuestionnairesQuestion.
FlexV1InsightsSegments struct for FlexV1InsightsSegments.
FlexV1InsightsSession struct for FlexV1InsightsSession.
FlexV1InsightsSettingsAnswersets struct for FlexV1InsightsSettingsAnswersets.
FlexV1InsightsSettingsComment struct for FlexV1InsightsSettingsComment.
FlexV1InsightsUserRoles struct for FlexV1InsightsUserRoles.
FlexV1Interaction struct for FlexV1Interaction.
FlexV1InteractionChannel struct for FlexV1InteractionChannel.
FlexV1InteractionChannelInvite struct for FlexV1InteractionChannelInvite.
FlexV1InteractionChannelParticipant struct for FlexV1InteractionChannelParticipant.
FlexV1Plugin struct for FlexV1Plugin.
FlexV1PluginArchive struct for FlexV1PluginArchive.
FlexV1PluginConfiguration struct for FlexV1PluginConfiguration.
FlexV1PluginConfigurationArchive struct for FlexV1PluginConfigurationArchive.
FlexV1PluginRelease struct for FlexV1PluginRelease.
FlexV1PluginVersion struct for FlexV1PluginVersion.
FlexV1PluginVersionArchive struct for FlexV1PluginVersionArchive.
FlexV1ProvisioningStatus struct for FlexV1ProvisioningStatus.
FlexV1WebChannel struct for FlexV1WebChannel.
Optional parameters for the method 'ListChannel'.
ListChannelResponse struct for ListChannelResponse.
ListChannelResponseMeta struct for ListChannelResponseMeta.
Optional parameters for the method 'ListConfiguredPlugin'.
ListConfiguredPluginResponse struct for ListConfiguredPluginResponse.
Optional parameters for the method 'ListFlexFlow'.
ListFlexFlowResponse struct for ListFlexFlowResponse.
Optional parameters for the method 'ListInsightsAssessmentsComment'.
ListInsightsAssessmentsCommentResponse struct for ListInsightsAssessmentsCommentResponse.
Optional parameters for the method 'ListInsightsAssessments'.
ListInsightsAssessmentsResponse struct for ListInsightsAssessmentsResponse.
Optional parameters for the method 'ListInsightsConversations'.
ListInsightsConversationsResponse struct for ListInsightsConversationsResponse.
Optional parameters for the method 'ListInsightsQuestionnairesCategory'.
ListInsightsQuestionnairesCategoryResponse struct for ListInsightsQuestionnairesCategoryResponse.
Optional parameters for the method 'ListInsightsQuestionnaires'.
Optional parameters for the method 'ListInsightsQuestionnairesQuestion'.
ListInsightsQuestionnairesQuestionResponse struct for ListInsightsQuestionnairesQuestionResponse.
ListInsightsQuestionnairesResponse struct for ListInsightsQuestionnairesResponse.
Optional parameters for the method 'ListInsightsSegments'.
ListInsightsSegmentsResponse struct for ListInsightsSegmentsResponse.
Optional parameters for the method 'ListInteractionChannelInvite'.
ListInteractionChannelInviteResponse struct for ListInteractionChannelInviteResponse.
Optional parameters for the method 'ListInteractionChannel'.
Optional parameters for the method 'ListInteractionChannelParticipant'.
ListInteractionChannelParticipantResponse struct for ListInteractionChannelParticipantResponse.
ListInteractionChannelResponse struct for ListInteractionChannelResponse.
Optional parameters for the method 'ListPluginConfiguration'.
ListPluginConfigurationResponse struct for ListPluginConfigurationResponse.
Optional parameters for the method 'ListPlugin'.
Optional parameters for the method 'ListPluginRelease'.
ListPluginReleaseResponse struct for ListPluginReleaseResponse.
ListPluginResponse struct for ListPluginResponse.
Optional parameters for the method 'ListPluginVersion'.
ListPluginVersionResponse struct for ListPluginVersionResponse.
Optional parameters for the method 'ListWebChannel'.
ListWebChannelResponse struct for ListWebChannelResponse.
Optional parameters for the method 'UpdateConfiguration'.
Optional parameters for the method 'UpdateFlexFlow'.
Optional parameters for the method 'UpdateInsightsAssessments'.
Optional parameters for the method 'UpdateInsightsQuestionnairesCategory'.
Optional parameters for the method 'UpdateInsightsQuestionnaires'.
Optional parameters for the method 'UpdateInsightsQuestionnairesQuestion'.
Optional parameters for the method 'UpdateInteractionChannel'.
Optional parameters for the method 'UpdateInteractionChannelParticipant'.
Optional parameters for the method 'UpdatePluginArchive'.
Optional parameters for the method 'UpdatePluginConfigurationArchive'.
Optional parameters for the method 'UpdatePlugin'.
Optional parameters for the method 'UpdatePluginVersionArchive'.
Optional parameters for the method 'UpdateWebChannel'.