# 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://intelligence.twilio.com
Class | Method | HTTP request | Description |
---|---|---|---|
OperatorTypesApi | FetchOperatorType | Get /v2/OperatorTypes/{Sid} | |
OperatorTypesApi | ListOperatorType | Get /v2/OperatorTypes | |
OperatorsApi | FetchOperator | Get /v2/Operators/{Sid} | |
OperatorsApi | ListOperator | Get /v2/Operators | |
OperatorsCustomApi | CreateCustomOperator | Post /v2/Operators/Custom | |
OperatorsCustomApi | DeleteCustomOperator | Delete /v2/Operators/Custom/{Sid} | |
OperatorsCustomApi | FetchCustomOperator | Get /v2/Operators/Custom/{Sid} | |
OperatorsCustomApi | ListCustomOperator | Get /v2/Operators/Custom | |
OperatorsCustomApi | UpdateCustomOperator | Post /v2/Operators/Custom/{Sid} | |
OperatorsPreBuiltApi | FetchPrebuiltOperator | Get /v2/Operators/PreBuilt/{Sid} | |
OperatorsPreBuiltApi | ListPrebuiltOperator | Get /v2/Operators/PreBuilt | |
ServicesApi | CreateService | Post /v2/Services | |
ServicesApi | DeleteService | Delete /v2/Services/{Sid} | |
ServicesApi | FetchService | Get /v2/Services/{Sid} | |
ServicesApi | ListService | Get /v2/Services | |
ServicesApi | UpdateService | Post /v2/Services/{Sid} | |
ServicesOperatorsApi | CreateOperatorAttachment | Post /v2/Services/{ServiceSid}/Operators/{OperatorSid} | |
ServicesOperatorsApi | DeleteOperatorAttachment | Delete /v2/Services/{ServiceSid}/Operators/{OperatorSid} | |
ServicesOperatorsApi | FetchOperatorAttachments | Get /v2/Services/{ServiceSid}/Operators | |
TranscriptsApi | CreateTranscript | Post /v2/Transcripts | |
TranscriptsApi | DeleteTranscript | Delete /v2/Transcripts/{Sid} | |
TranscriptsApi | FetchTranscript | Get /v2/Transcripts/{Sid} | |
TranscriptsApi | ListTranscript | Get /v2/Transcripts | |
TranscriptsMediaApi | FetchMedia | Get /v2/Transcripts/{Sid}/Media | |
TranscriptsOperatorResultsApi | FetchOperatorResult | Get /v2/Transcripts/{TranscriptSid}/OperatorResults/{OperatorSid} | |
TranscriptsOperatorResultsApi | ListOperatorResult | Get /v2/Transcripts/{TranscriptSid}/OperatorResults | |
TranscriptsSentencesApi | ListSentence | Get /v2/Transcripts/{TranscriptSid}/Sentences |
Documentation For Models
- ListCustomOperatorResponse
- IntelligenceV2OperatorAttachments
- IntelligenceV2OperatorAttachment
- IntelligenceV2Transcript
- ListTranscriptResponse
- IntelligenceV2Sentence
- ListSentenceResponse
- IntelligenceV2Operator
- ListServiceResponse
- IntelligenceV2CustomOperator
- ListOperatorTypeResponse
- IntelligenceV2PrebuiltOperator
- IntelligenceV2OperatorResult
- IntelligenceV2OperatorType
- ListCustomOperatorResponseMeta
- IntelligenceV2Service
- ListOperatorResultResponse
- IntelligenceV2Media
- ListOperatorResponse
- ListPrebuiltOperatorResponse
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 'CreateCustomOperator'.
Optional parameters for the method 'CreateService'.
Optional parameters for the method 'CreateTranscript'.
Optional parameters for the method 'FetchMedia'.
Optional parameters for the method 'FetchOperatorResult'.
IntelligenceV2CustomOperator struct for IntelligenceV2CustomOperator.
IntelligenceV2Media struct for IntelligenceV2Media.
IntelligenceV2Operator struct for IntelligenceV2Operator.
IntelligenceV2OperatorAttachment struct for IntelligenceV2OperatorAttachment.
IntelligenceV2OperatorAttachments struct for IntelligenceV2OperatorAttachments.
IntelligenceV2OperatorResult struct for IntelligenceV2OperatorResult.
IntelligenceV2OperatorType struct for IntelligenceV2OperatorType.
IntelligenceV2PrebuiltOperator struct for IntelligenceV2PrebuiltOperator.
IntelligenceV2Sentence struct for IntelligenceV2Sentence.
IntelligenceV2Service struct for IntelligenceV2Service.
IntelligenceV2Transcript struct for IntelligenceV2Transcript.
Optional parameters for the method 'ListCustomOperator'.
ListCustomOperatorResponse struct for ListCustomOperatorResponse.
ListCustomOperatorResponseMeta struct for ListCustomOperatorResponseMeta.
Optional parameters for the method 'ListOperator'.
ListOperatorResponse struct for ListOperatorResponse.
Optional parameters for the method 'ListOperatorResult'.
ListOperatorResultResponse struct for ListOperatorResultResponse.
Optional parameters for the method 'ListOperatorType'.
ListOperatorTypeResponse struct for ListOperatorTypeResponse.
Optional parameters for the method 'ListPrebuiltOperator'.
ListPrebuiltOperatorResponse struct for ListPrebuiltOperatorResponse.
Optional parameters for the method 'ListSentence'.
ListSentenceResponse struct for ListSentenceResponse.
Optional parameters for the method 'ListService'.
ListServiceResponse struct for ListServiceResponse.
Optional parameters for the method 'ListTranscript'.
ListTranscriptResponse struct for ListTranscriptResponse.
Optional parameters for the method 'UpdateCustomOperator'.
Optional parameters for the method 'UpdateService'.