# 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
Class | Method | HTTP request | Description |
---|---|---|---|
AccountProvisionStatusApi | FetchProvisioningStatus | Get /v1/account/provision/status | |
ChannelsApi | CreateChannel | Post /v1/Channels | |
ChannelsApi | DeleteChannel | Delete /v1/Channels/{Sid} | |
ChannelsApi | FetchChannel | Get /v1/Channels/{Sid} | |
ChannelsApi | ListChannel | Get /v1/Channels | |
ConfigurationApi | FetchConfiguration | Get /v1/Configuration | |
ConfigurationApi | UpdateConfiguration | Post /v1/Configuration | |
FlexFlowsApi | CreateFlexFlow | Post /v1/FlexFlows | |
FlexFlowsApi | DeleteFlexFlow | Delete /v1/FlexFlows/{Sid} | |
FlexFlowsApi | FetchFlexFlow | Get /v1/FlexFlows/{Sid} | |
FlexFlowsApi | ListFlexFlow | Get /v1/FlexFlows | |
FlexFlowsApi | UpdateFlexFlow | Post /v1/FlexFlows/{Sid} | |
InsightsConversationsApi | ListInsightsConversations | Get /v1/Insights/Conversations | |
InsightsQualityManagementAssessmentsApi | CreateInsightsAssessments | Post /v1/Insights/QualityManagement/Assessments | |
InsightsQualityManagementAssessmentsApi | ListInsightsAssessments | Get /v1/Insights/QualityManagement/Assessments | |
InsightsQualityManagementAssessmentsApi | UpdateInsightsAssessments | Post /v1/Insights/QualityManagement/Assessments/{AssessmentSid} | |
InsightsQualityManagementAssessmentsCommentsApi | CreateInsightsAssessmentsComment | Post /v1/Insights/QualityManagement/Assessments/Comments | |
InsightsQualityManagementAssessmentsCommentsApi | ListInsightsAssessmentsComment | Get /v1/Insights/QualityManagement/Assessments/Comments | |
InsightsQualityManagementCategoriesApi | CreateInsightsQuestionnairesCategory | Post /v1/Insights/QualityManagement/Categories | |
InsightsQualityManagementCategoriesApi | DeleteInsightsQuestionnairesCategory | Delete /v1/Insights/QualityManagement/Categories/{CategorySid} | |
InsightsQualityManagementCategoriesApi | ListInsightsQuestionnairesCategory | Get /v1/Insights/QualityManagement/Categories | |
InsightsQualityManagementCategoriesApi | UpdateInsightsQuestionnairesCategory | Post /v1/Insights/QualityManagement/Categories/{CategorySid} | |
InsightsQualityManagementQuestionnairesApi | CreateInsightsQuestionnaires | Post /v1/Insights/QualityManagement/Questionnaires | |
InsightsQualityManagementQuestionnairesApi | DeleteInsightsQuestionnaires | Delete /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | |
InsightsQualityManagementQuestionnairesApi | FetchInsightsQuestionnaires | Get /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | |
InsightsQualityManagementQuestionnairesApi | ListInsightsQuestionnaires | Get /v1/Insights/QualityManagement/Questionnaires | |
InsightsQualityManagementQuestionnairesApi | UpdateInsightsQuestionnaires | Post /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | |
InsightsQualityManagementQuestionsApi | CreateInsightsQuestionnairesQuestion | Post /v1/Insights/QualityManagement/Questions | |
InsightsQualityManagementQuestionsApi | DeleteInsightsQuestionnairesQuestion | Delete /v1/Insights/QualityManagement/Questions/{QuestionSid} | |
InsightsQualityManagementQuestionsApi | ListInsightsQuestionnairesQuestion | Get /v1/Insights/QualityManagement/Questions | |
InsightsQualityManagementQuestionsApi | UpdateInsightsQuestionnairesQuestion | Post /v1/Insights/QualityManagement/Questions/{QuestionSid} | |
InsightsQualityManagementSettingsAnswerSetsApi | FetchInsightsSettingsAnswersets | Get /v1/Insights/QualityManagement/Settings/AnswerSets | |
InsightsQualityManagementSettingsCommentTagsApi | FetchInsightsSettingsComment | Get /v1/Insights/QualityManagement/Settings/CommentTags | |
InsightsSegmentsApi | ListInsightsSegments | Get /v1/Insights/Segments | |
InsightsSessionApi | CreateInsightsSession | Post /v1/Insights/Session | |
InsightsUserRolesApi | FetchInsightsUserRoles | Get /v1/Insights/UserRoles | |
InteractionsApi | CreateInteraction | Post /v1/Interactions | |
InteractionsApi | FetchInteraction | Get /v1/Interactions/{Sid} | |
InteractionsChannelsApi | FetchInteractionChannel | Get /v1/Interactions/{InteractionSid}/Channels/{Sid} | |
InteractionsChannelsApi | ListInteractionChannel | Get /v1/Interactions/{InteractionSid}/Channels | |
InteractionsChannelsApi | UpdateInteractionChannel | Post /v1/Interactions/{InteractionSid}/Channels/{Sid} | |
InteractionsChannelsInvitesApi | CreateInteractionChannelInvite | Post /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites | |
InteractionsChannelsInvitesApi | ListInteractionChannelInvite | Get /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Invites | |
InteractionsChannelsParticipantsApi | CreateInteractionChannelParticipant | Post /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants | |
InteractionsChannelsParticipantsApi | ListInteractionChannelParticipant | Get /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants | |
InteractionsChannelsParticipantsApi | UpdateInteractionChannelParticipant | Post /v1/Interactions/{InteractionSid}/Channels/{ChannelSid}/Participants/{Sid} | |
PluginServiceConfigurationsApi | CreatePluginConfiguration | Post /v1/PluginService/Configurations | |
PluginServiceConfigurationsApi | FetchPluginConfiguration | Get /v1/PluginService/Configurations/{Sid} | |
PluginServiceConfigurationsApi | ListPluginConfiguration | Get /v1/PluginService/Configurations | |
PluginServiceConfigurationsArchiveApi | UpdatePluginConfigurationArchive | Post /v1/PluginService/Configurations/{Sid}/Archive | |
PluginServiceConfigurationsPluginsApi | FetchConfiguredPlugin | Get /v1/PluginService/Configurations/{ConfigurationSid}/Plugins/{PluginSid} | |
PluginServiceConfigurationsPluginsApi | ListConfiguredPlugin | Get /v1/PluginService/Configurations/{ConfigurationSid}/Plugins | |
PluginServicePluginsApi | CreatePlugin | Post /v1/PluginService/Plugins | |
PluginServicePluginsApi | FetchPlugin | Get /v1/PluginService/Plugins/{Sid} | |
PluginServicePluginsApi | ListPlugin | Get /v1/PluginService/Plugins | |
PluginServicePluginsApi | UpdatePlugin | Post /v1/PluginService/Plugins/{Sid} | |
PluginServicePluginsArchiveApi | UpdatePluginArchive | Post /v1/PluginService/Plugins/{Sid}/Archive | |
PluginServicePluginsVersionsApi | CreatePluginVersion | Post /v1/PluginService/Plugins/{PluginSid}/Versions | |
PluginServicePluginsVersionsApi | FetchPluginVersion | Get /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid} | |
PluginServicePluginsVersionsApi | ListPluginVersion | Get /v1/PluginService/Plugins/{PluginSid}/Versions | |
PluginServicePluginsVersionsArchiveApi | UpdatePluginVersionArchive | Post /v1/PluginService/Plugins/{PluginSid}/Versions/{Sid}/Archive | |
PluginServiceReleasesApi | CreatePluginRelease | Post /v1/PluginService/Releases | |
PluginServiceReleasesApi | FetchPluginRelease | Get /v1/PluginService/Releases/{Sid} | |
PluginServiceReleasesApi | ListPluginRelease | Get /v1/PluginService/Releases | |
WebChannelsApi | CreateWebChannel | Post /v1/WebChannels | |
WebChannelsApi | DeleteWebChannel | Delete /v1/WebChannels/{Sid} | |
WebChannelsApi | FetchWebChannel | Get /v1/WebChannels/{Sid} | |
WebChannelsApi | ListWebChannel | Get /v1/WebChannels | |
WebChannelsApi | UpdateWebChannel | Post /v1/WebChannels/{Sid} |
Documentation For Models
- ListInteractionChannelResponse
- FlexV1InsightsSettingsAnswersets
- FlexV1InsightsSession
- ListInsightsQuestionnairesQuestionResponse
- FlexV1InteractionChannel
- ListChannelResponse
- FlexV1InteractionChannelParticipant
- ListPluginConfigurationResponse
- ListInsightsQuestionnairesCategoryResponse
- ListInsightsQuestionnairesResponse
- FlexV1InsightsQuestionnaires
- FlexV1ConfiguredPlugin
- ListInsightsConversationsResponse
- FlexV1Interaction
- FlexV1InsightsQuestionnairesQuestion
- ListFlexFlowResponse
- ListConfiguredPluginResponse
- FlexV1InsightsAssessmentsComment
- FlexV1InteractionChannelInvite
- FlexV1InsightsUserRoles
- ListPluginResponse
- ListPluginReleaseResponse
- FlexV1Channel
- ListInsightsAssessmentsResponse
- FlexV1PluginRelease
- ListInsightsSegmentsResponse
- FlexV1InsightsSettingsComment
- FlexV1WebChannel
- FlexV1PluginConfigurationArchive
- FlexV1PluginVersion
- FlexV1InsightsSegments
- FlexV1PluginConfiguration
- FlexV1PluginArchive
- ListInteractionChannelParticipantResponse
- FlexV1FlexFlow
- ListInsightsAssessmentsCommentResponse
- ListWebChannelResponse
- FlexV1Configuration
- FlexV1InsightsAssessments
- FlexV1InsightsQuestionnairesCategory
- FlexV1InsightsConversations
- ListPluginVersionResponse
- FlexV1ProvisioningStatus
- FlexV1Plugin
- FlexV1PluginVersionArchive
- ListChannelResponseMeta
- ListInteractionChannelInviteResponse
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'.