Documentation
¶
Index ¶
- type ApiService
- func (c *ApiService) CreateService(params *CreateServiceParams) (*IntelligenceV2Service, error)
- func (c *ApiService) CreateTranscript(params *CreateTranscriptParams) (*IntelligenceV2Transcript, error)
- func (c *ApiService) DeleteService(Sid string) error
- func (c *ApiService) DeleteTranscript(Sid string) error
- func (c *ApiService) FetchMedia(Sid string, params *FetchMediaParams) (*IntelligenceV2Media, error)
- func (c *ApiService) FetchOperatorResult(TranscriptSid string, OperatorSid string, params *FetchOperatorResultParams) (*IntelligenceV2OperatorResult, error)
- func (c *ApiService) FetchService(Sid string) (*IntelligenceV2Service, error)
- func (c *ApiService) FetchTranscript(Sid string, params *FetchTranscriptParams) (*IntelligenceV2Transcript, error)
- func (c *ApiService) ListOperatorResult(TranscriptSid string, params *ListOperatorResultParams) ([]IntelligenceV2OperatorResult, error)
- func (c *ApiService) ListSentence(TranscriptSid string, params *ListSentenceParams) ([]IntelligenceV2Sentence, error)
- func (c *ApiService) ListService(params *ListServiceParams) ([]IntelligenceV2Service, error)
- func (c *ApiService) ListTranscript(params *ListTranscriptParams) ([]IntelligenceV2Transcript, error)
- func (c *ApiService) PageOperatorResult(TranscriptSid string, params *ListOperatorResultParams, ...) (*ListOperatorResultResponse, error)
- func (c *ApiService) PageSentence(TranscriptSid string, params *ListSentenceParams, pageToken, pageNumber string) (*ListSentenceResponse, error)
- func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
- func (c *ApiService) PageTranscript(params *ListTranscriptParams, pageToken, pageNumber string) (*ListTranscriptResponse, error)
- func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOperatorResultParams) (chan IntelligenceV2OperatorResult, chan error)
- func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentenceParams) (chan IntelligenceV2Sentence, chan error)
- func (c *ApiService) StreamService(params *ListServiceParams) (chan IntelligenceV2Service, chan error)
- func (c *ApiService) StreamTranscript(params *ListTranscriptParams) (chan IntelligenceV2Transcript, chan error)
- func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IntelligenceV2Service, error)
- type CreateServiceParams
- func (params *CreateServiceParams) SetAutoRedaction(AutoRedaction bool) *CreateServiceParams
- func (params *CreateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *CreateServiceParams
- func (params *CreateServiceParams) SetDataLogging(DataLogging bool) *CreateServiceParams
- func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
- func (params *CreateServiceParams) SetLanguageCode(LanguageCode string) *CreateServiceParams
- func (params *CreateServiceParams) SetMediaRedaction(MediaRedaction bool) *CreateServiceParams
- func (params *CreateServiceParams) SetUniqueName(UniqueName string) *CreateServiceParams
- func (params *CreateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *CreateServiceParams
- func (params *CreateServiceParams) SetWebhookUrl(WebhookUrl string) *CreateServiceParams
- type CreateTranscriptParams
- func (params *CreateTranscriptParams) SetChannel(Channel interface{}) *CreateTranscriptParams
- func (params *CreateTranscriptParams) SetCustomerKey(CustomerKey string) *CreateTranscriptParams
- func (params *CreateTranscriptParams) SetMediaStartTime(MediaStartTime time.Time) *CreateTranscriptParams
- func (params *CreateTranscriptParams) SetServiceSid(ServiceSid string) *CreateTranscriptParams
- type FetchMediaParams
- type FetchOperatorResultParams
- type FetchTranscriptParams
- type IntelligenceV2Media
- type IntelligenceV2OperatorResult
- type IntelligenceV2Sentence
- type IntelligenceV2Service
- type IntelligenceV2Transcript
- type ListOperatorResultParams
- type ListOperatorResultResponse
- type ListOperatorResultResponseMeta
- type ListSentenceParams
- type ListSentenceResponse
- type ListServiceParams
- type ListServiceResponse
- type ListTranscriptParams
- func (params *ListTranscriptParams) SetAfterDateCreated(AfterDateCreated string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetAfterStartTime(AfterStartTime string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetBeforeDateCreated(BeforeDateCreated string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetBeforeStartTime(BeforeStartTime string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetLanguageCode(LanguageCode string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetLimit(Limit int) *ListTranscriptParams
- func (params *ListTranscriptParams) SetPageSize(PageSize int) *ListTranscriptParams
- func (params *ListTranscriptParams) SetServiceSid(ServiceSid string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetSourceSid(SourceSid string) *ListTranscriptParams
- func (params *ListTranscriptParams) SetStatus(Status string) *ListTranscriptParams
- type ListTranscriptResponse
- type UpdateServiceParams
- func (params *UpdateServiceParams) SetAutoRedaction(AutoRedaction bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetDataLogging(DataLogging bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetIfMatch(IfMatch string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetLanguageCode(LanguageCode string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetMediaRedaction(MediaRedaction bool) *UpdateServiceParams
- func (params *UpdateServiceParams) SetUniqueName(UniqueName string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *UpdateServiceParams
- func (params *UpdateServiceParams) SetWebhookUrl(WebhookUrl string) *UpdateServiceParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService
func NewApiServiceWithClient ¶
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService
func (*ApiService) CreateService ¶
func (c *ApiService) CreateService(params *CreateServiceParams) (*IntelligenceV2Service, error)
Create a new Service for the given Account
func (*ApiService) CreateTranscript ¶
func (c *ApiService) CreateTranscript(params *CreateTranscriptParams) (*IntelligenceV2Transcript, error)
Create a new Transcript for the service
func (*ApiService) DeleteService ¶
func (c *ApiService) DeleteService(Sid string) error
Delete a specific Service.
func (*ApiService) DeleteTranscript ¶
func (c *ApiService) DeleteTranscript(Sid string) error
Delete a specific Transcript.
func (*ApiService) FetchMedia ¶
func (c *ApiService) FetchMedia(Sid string, params *FetchMediaParams) (*IntelligenceV2Media, error)
Get download URLs for media if possible
func (*ApiService) FetchOperatorResult ¶
func (c *ApiService) FetchOperatorResult(TranscriptSid string, OperatorSid string, params *FetchOperatorResultParams) (*IntelligenceV2OperatorResult, error)
Fetch a specific Operator Result for the given Transcript.
func (*ApiService) FetchService ¶
func (c *ApiService) FetchService(Sid string) (*IntelligenceV2Service, error)
Fetch a specific Service.
func (*ApiService) FetchTranscript ¶
func (c *ApiService) FetchTranscript(Sid string, params *FetchTranscriptParams) (*IntelligenceV2Transcript, error)
Fetch a specific Transcript.
func (*ApiService) ListOperatorResult ¶
func (c *ApiService) ListOperatorResult(TranscriptSid string, params *ListOperatorResultParams) ([]IntelligenceV2OperatorResult, error)
Lists OperatorResult records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListSentence ¶
func (c *ApiService) ListSentence(TranscriptSid string, params *ListSentenceParams) ([]IntelligenceV2Sentence, error)
Lists Sentence records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListService ¶
func (c *ApiService) ListService(params *ListServiceParams) ([]IntelligenceV2Service, error)
Lists Service records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) ListTranscript ¶
func (c *ApiService) ListTranscript(params *ListTranscriptParams) ([]IntelligenceV2Transcript, error)
Lists Transcript records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.
func (*ApiService) PageOperatorResult ¶
func (c *ApiService) PageOperatorResult(TranscriptSid string, params *ListOperatorResultParams, pageToken, pageNumber string) (*ListOperatorResultResponse, error)
Retrieve a single page of OperatorResult records from the API. Request is executed immediately.
func (*ApiService) PageSentence ¶
func (c *ApiService) PageSentence(TranscriptSid string, params *ListSentenceParams, pageToken, pageNumber string) (*ListSentenceResponse, error)
Retrieve a single page of Sentence records from the API. Request is executed immediately.
func (*ApiService) PageService ¶
func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)
Retrieve a single page of Service records from the API. Request is executed immediately.
func (*ApiService) PageTranscript ¶
func (c *ApiService) PageTranscript(params *ListTranscriptParams, pageToken, pageNumber string) (*ListTranscriptResponse, error)
Retrieve a single page of Transcript records from the API. Request is executed immediately.
func (*ApiService) StreamOperatorResult ¶
func (c *ApiService) StreamOperatorResult(TranscriptSid string, params *ListOperatorResultParams) (chan IntelligenceV2OperatorResult, chan error)
Streams OperatorResult records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamSentence ¶
func (c *ApiService) StreamSentence(TranscriptSid string, params *ListSentenceParams) (chan IntelligenceV2Sentence, chan error)
Streams Sentence records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamService ¶
func (c *ApiService) StreamService(params *ListServiceParams) (chan IntelligenceV2Service, chan error)
Streams Service records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) StreamTranscript ¶
func (c *ApiService) StreamTranscript(params *ListTranscriptParams) (chan IntelligenceV2Transcript, chan error)
Streams Transcript records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.
func (*ApiService) UpdateService ¶
func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IntelligenceV2Service, error)
Update a specific Service.
type CreateServiceParams ¶
type CreateServiceParams struct {
// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
UniqueName *string `json:"UniqueName,omitempty"`
// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
AutoTranscribe *bool `json:"AutoTranscribe,omitempty"`
// Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
DataLogging *bool `json:"DataLogging,omitempty"`
// A human readable description of this resource, up to 64 characters.
FriendlyName *string `json:"FriendlyName,omitempty"`
// The default language code of the audio.
LanguageCode *string `json:"LanguageCode,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
AutoRedaction *bool `json:"AutoRedaction,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
MediaRedaction *bool `json:"MediaRedaction,omitempty"`
// The URL Twilio will request when executing the Webhook.
WebhookUrl *string `json:"WebhookUrl,omitempty"`
//
WebhookHttpMethod *string `json:"WebhookHttpMethod,omitempty"`
}
Optional parameters for the method 'CreateService'
func (*CreateServiceParams) SetAutoRedaction ¶
func (params *CreateServiceParams) SetAutoRedaction(AutoRedaction bool) *CreateServiceParams
func (*CreateServiceParams) SetAutoTranscribe ¶
func (params *CreateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *CreateServiceParams
func (*CreateServiceParams) SetDataLogging ¶
func (params *CreateServiceParams) SetDataLogging(DataLogging bool) *CreateServiceParams
func (*CreateServiceParams) SetFriendlyName ¶
func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams
func (*CreateServiceParams) SetLanguageCode ¶
func (params *CreateServiceParams) SetLanguageCode(LanguageCode string) *CreateServiceParams
func (*CreateServiceParams) SetMediaRedaction ¶
func (params *CreateServiceParams) SetMediaRedaction(MediaRedaction bool) *CreateServiceParams
func (*CreateServiceParams) SetUniqueName ¶
func (params *CreateServiceParams) SetUniqueName(UniqueName string) *CreateServiceParams
func (*CreateServiceParams) SetWebhookHttpMethod ¶
func (params *CreateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *CreateServiceParams
func (*CreateServiceParams) SetWebhookUrl ¶
func (params *CreateServiceParams) SetWebhookUrl(WebhookUrl string) *CreateServiceParams
type CreateTranscriptParams ¶
type CreateTranscriptParams struct {
// The unique SID identifier of the Service.
ServiceSid *string `json:"ServiceSid,omitempty"`
// JSON object describing Media Channel including Source and Participants
Channel *interface{} `json:"Channel,omitempty"`
// Used to store client provided metadata. Maximum of 64 double-byte UTF8 characters.
CustomerKey *string `json:"CustomerKey,omitempty"`
// The date that this Transcript's media was started, given in ISO 8601 format.
MediaStartTime *time.Time `json:"MediaStartTime,omitempty"`
}
Optional parameters for the method 'CreateTranscript'
func (*CreateTranscriptParams) SetChannel ¶
func (params *CreateTranscriptParams) SetChannel(Channel interface{}) *CreateTranscriptParams
func (*CreateTranscriptParams) SetCustomerKey ¶
func (params *CreateTranscriptParams) SetCustomerKey(CustomerKey string) *CreateTranscriptParams
func (*CreateTranscriptParams) SetMediaStartTime ¶
func (params *CreateTranscriptParams) SetMediaStartTime(MediaStartTime time.Time) *CreateTranscriptParams
func (*CreateTranscriptParams) SetServiceSid ¶
func (params *CreateTranscriptParams) SetServiceSid(ServiceSid string) *CreateTranscriptParams
type FetchMediaParams ¶
type FetchMediaParams struct {
// Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
Redacted *bool `json:"Redacted,omitempty"`
}
Optional parameters for the method 'FetchMedia'
func (*FetchMediaParams) SetRedacted ¶
func (params *FetchMediaParams) SetRedacted(Redacted bool) *FetchMediaParams
type FetchOperatorResultParams ¶
type FetchOperatorResultParams struct {
// Grant access to PII redacted/unredacted Language Understanding operator. The default is True.
Redacted *bool `json:"Redacted,omitempty"`
}
Optional parameters for the method 'FetchOperatorResult'
func (*FetchOperatorResultParams) SetRedacted ¶
func (params *FetchOperatorResultParams) SetRedacted(Redacted bool) *FetchOperatorResultParams
type FetchTranscriptParams ¶
type FetchTranscriptParams struct {
// Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
Redacted *bool `json:"Redacted,omitempty"`
}
Optional parameters for the method 'FetchTranscript'
func (*FetchTranscriptParams) SetRedacted ¶
func (params *FetchTranscriptParams) SetRedacted(Redacted bool) *FetchTranscriptParams
type IntelligenceV2Media ¶
type IntelligenceV2Media struct {
// The unique SID identifier of the Account.
AccountSid *string `json:"account_sid,omitempty"`
// Downloadable URL for media, if stored in Twilio AI.
MediaUrl *string `json:"media_url,omitempty"`
// The unique SID identifier of the Service.
ServiceSid *string `json:"service_sid,omitempty"`
// The unique SID identifier of the Transcript.
Sid *string `json:"sid,omitempty"`
// The URL of this resource.
Url *string `json:"url,omitempty"`
}
IntelligenceV2Media struct for IntelligenceV2Media
type IntelligenceV2OperatorResult ¶
type IntelligenceV2OperatorResult struct {
OperatorType *string `json:"operator_type,omitempty"`
// The name of the applied Language Understanding.
Name *string `json:"name,omitempty"`
// A 34 character string that identifies this Language Understanding operator sid.
OperatorSid *string `json:"operator_sid,omitempty"`
// Boolean to tell if extract Language Understanding Processing model matches results.
ExtractMatch *bool `json:"extract_match,omitempty"`
// Percentage of 'matching' class needed to consider a sentence matches
MatchProbability *float32 `json:"match_probability,omitempty"`
// Normalized output of extraction stage which matches Label.
NormalizedResult *string `json:"normalized_result,omitempty"`
// List of mapped utterance object which matches sentences.
UtteranceResults *[]interface{} `json:"utterance_results,omitempty"`
// Boolean to tell if Utterance matches results.
UtteranceMatch *bool `json:"utterance_match,omitempty"`
// The 'matching' class. This might be available on conversation classify model outputs.
PredictedLabel *string `json:"predicted_label,omitempty"`
// Percentage of 'matching' class needed to consider a sentence matches.
PredictedProbability *float32 `json:"predicted_probability,omitempty"`
// The labels probabilities. This might be available on conversation classify model outputs.
LabelProbabilities *interface{} `json:"label_probabilities,omitempty"`
// List of text extraction results. This might be available on classify-extract model outputs.
ExtractResults *interface{} `json:"extract_results,omitempty"`
// A 34 character string that uniquely identifies this Transcript.
TranscriptSid *string `json:"transcript_sid,omitempty"`
// The URL of this resource.
Url *string `json:"url,omitempty"`
}
IntelligenceV2OperatorResult struct for IntelligenceV2OperatorResult
func (*IntelligenceV2OperatorResult) UnmarshalJSON ¶
func (response *IntelligenceV2OperatorResult) UnmarshalJSON(bytes []byte) (err error)
type IntelligenceV2Sentence ¶
type IntelligenceV2Sentence struct {
// The channel number.
MediaChannel *int `json:"media_channel,omitempty"`
// The index of the sentence in the transcript.
SentenceIndex *int `json:"sentence_index,omitempty"`
// Offset from the beginning of the transcript when this sentence starts.
StartTime *float32 `json:"start_time,omitempty"`
// Offset from the beginning of the transcript when this sentence ends.
EndTime *float32 `json:"end_time,omitempty"`
// Transcript text.
Transcript *string `json:"transcript,omitempty"`
// A 34 character string that uniquely identifies this Sentence.
Sid *string `json:"sid,omitempty"`
Confidence *float32 `json:"confidence,omitempty"`
}
IntelligenceV2Sentence struct for IntelligenceV2Sentence
func (*IntelligenceV2Sentence) UnmarshalJSON ¶
func (response *IntelligenceV2Sentence) UnmarshalJSON(bytes []byte) (err error)
type IntelligenceV2Service ¶
type IntelligenceV2Service struct {
// The unique SID identifier of the Account the Service belongs to.
AccountSid *string `json:"account_sid,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
AutoRedaction *bool `json:"auto_redaction,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
MediaRedaction *bool `json:"media_redaction,omitempty"`
// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
AutoTranscribe *bool `json:"auto_transcribe,omitempty"`
// Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
DataLogging *bool `json:"data_logging,omitempty"`
// The date that this Service was created, given in ISO 8601 format.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date that this Service was updated, given in ISO 8601 format.
DateUpdated *time.Time `json:"date_updated,omitempty"`
// A human readable description of this resource, up to 64 characters.
FriendlyName *string `json:"friendly_name,omitempty"`
// The default language code of the audio.
LanguageCode *string `json:"language_code,omitempty"`
// A 34 character string that uniquely identifies this Service.
Sid *string `json:"sid,omitempty"`
// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
UniqueName *string `json:"unique_name,omitempty"`
// The URL of this resource.
Url *string `json:"url,omitempty"`
// The URL Twilio will request when executing the Webhook.
WebhookUrl *string `json:"webhook_url,omitempty"`
WebhookHttpMethod *string `json:"webhook_http_method,omitempty"`
// The version number of this Service.
Version *int `json:"version,omitempty"`
}
IntelligenceV2Service struct for IntelligenceV2Service
type IntelligenceV2Transcript ¶
type IntelligenceV2Transcript struct {
// The unique SID identifier of the Account.
AccountSid *string `json:"account_sid,omitempty"`
// The unique SID identifier of the Service.
ServiceSid *string `json:"service_sid,omitempty"`
// A 34 character string that uniquely identifies this Transcript.
Sid *string `json:"sid,omitempty"`
// The date that this Transcript was created, given in ISO 8601 format.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date that this Transcript was updated, given in ISO 8601 format.
DateUpdated *time.Time `json:"date_updated,omitempty"`
Status *string `json:"status,omitempty"`
// Media Channel describing Transcript Source and Participant Mapping
Channel *interface{} `json:"channel,omitempty"`
// Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
DataLogging *bool `json:"data_logging,omitempty"`
// The default language code of the audio.
LanguageCode *string `json:"language_code,omitempty"`
CustomerKey *string `json:"customer_key,omitempty"`
// The date that this Transcript's media was started, given in ISO 8601 format.
MediaStartTime *time.Time `json:"media_start_time,omitempty"`
// The duration of this Transcript's source
Duration *int `json:"duration,omitempty"`
// The URL of this resource.
Url *string `json:"url,omitempty"`
// If the transcript has been redacted, a redacted alternative of the transcript will be available.
Redaction *bool `json:"redaction,omitempty"`
Links *map[string]interface{} `json:"links,omitempty"`
}
IntelligenceV2Transcript struct for IntelligenceV2Transcript
type ListOperatorResultParams ¶
type ListOperatorResultParams struct {
// Grant access to PII redacted/unredacted Language Understanding operator. The default is True.
Redacted *bool `json:"Redacted,omitempty"`
// How many resources to return in each list page. The default is 50, and the maximum is 1000.
PageSize *int `json:"PageSize,omitempty"`
// Max number of records to return.
Limit *int `json:"limit,omitempty"`
}
Optional parameters for the method 'ListOperatorResult'
func (*ListOperatorResultParams) SetLimit ¶
func (params *ListOperatorResultParams) SetLimit(Limit int) *ListOperatorResultParams
func (*ListOperatorResultParams) SetPageSize ¶
func (params *ListOperatorResultParams) SetPageSize(PageSize int) *ListOperatorResultParams
func (*ListOperatorResultParams) SetRedacted ¶
func (params *ListOperatorResultParams) SetRedacted(Redacted bool) *ListOperatorResultParams
type ListOperatorResultResponse ¶
type ListOperatorResultResponse struct {
OperatorResults []IntelligenceV2OperatorResult `json:"operator_results,omitempty"`
Meta ListOperatorResultResponseMeta `json:"meta,omitempty"`
}
ListOperatorResultResponse struct for ListOperatorResultResponse
type ListOperatorResultResponseMeta ¶
type ListOperatorResultResponseMeta struct {
FirstPageUrl string `json:"first_page_url,omitempty"`
NextPageUrl *string `json:"next_page_url,omitempty"`
Page int `json:"page,omitempty"`
PageSize int `json:"page_size,omitempty"`
PreviousPageUrl *string `json:"previous_page_url,omitempty"`
Url string `json:"url,omitempty"`
Key string `json:"key,omitempty"`
}
ListOperatorResultResponseMeta struct for ListOperatorResultResponseMeta
type ListSentenceParams ¶
type ListSentenceParams struct {
// Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences.
Redacted *bool `json:"Redacted,omitempty"`
// How many resources to return in each list page. The default is 50, and the maximum is 1000.
PageSize *int `json:"PageSize,omitempty"`
// Max number of records to return.
Limit *int `json:"limit,omitempty"`
}
Optional parameters for the method 'ListSentence'
func (*ListSentenceParams) SetLimit ¶
func (params *ListSentenceParams) SetLimit(Limit int) *ListSentenceParams
func (*ListSentenceParams) SetPageSize ¶
func (params *ListSentenceParams) SetPageSize(PageSize int) *ListSentenceParams
func (*ListSentenceParams) SetRedacted ¶
func (params *ListSentenceParams) SetRedacted(Redacted bool) *ListSentenceParams
type ListSentenceResponse ¶
type ListSentenceResponse struct {
Sentences []IntelligenceV2Sentence `json:"sentences,omitempty"`
Meta ListOperatorResultResponseMeta `json:"meta,omitempty"`
}
ListSentenceResponse struct for ListSentenceResponse
type ListServiceParams ¶
type ListServiceParams struct {
// How many resources to return in each list page. The default is 50, and the maximum is 1000.
PageSize *int `json:"PageSize,omitempty"`
// Max number of records to return.
Limit *int `json:"limit,omitempty"`
}
Optional parameters for the method 'ListService'
func (*ListServiceParams) SetLimit ¶
func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams
func (*ListServiceParams) SetPageSize ¶
func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams
type ListServiceResponse ¶
type ListServiceResponse struct {
Services []IntelligenceV2Service `json:"services,omitempty"`
Meta ListOperatorResultResponseMeta `json:"meta,omitempty"`
}
ListServiceResponse struct for ListServiceResponse
type ListTranscriptParams ¶
type ListTranscriptParams struct {
// The unique SID identifier of the Service.
ServiceSid *string `json:"ServiceSid,omitempty"`
// Filter by before StartTime.
BeforeStartTime *string `json:"BeforeStartTime,omitempty"`
// Filter by after StartTime.
AfterStartTime *string `json:"AfterStartTime,omitempty"`
// Filter by before DateCreated.
BeforeDateCreated *string `json:"BeforeDateCreated,omitempty"`
// Filter by after DateCreated.
AfterDateCreated *string `json:"AfterDateCreated,omitempty"`
// Filter by status.
Status *string `json:"Status,omitempty"`
// Filter by Language Code.
LanguageCode *string `json:"LanguageCode,omitempty"`
// Filter by SourceSid.
SourceSid *string `json:"SourceSid,omitempty"`
// How many resources to return in each list page. The default is 50, and the maximum is 1000.
PageSize *int `json:"PageSize,omitempty"`
// Max number of records to return.
Limit *int `json:"limit,omitempty"`
}
Optional parameters for the method 'ListTranscript'
func (*ListTranscriptParams) SetAfterDateCreated ¶
func (params *ListTranscriptParams) SetAfterDateCreated(AfterDateCreated string) *ListTranscriptParams
func (*ListTranscriptParams) SetAfterStartTime ¶
func (params *ListTranscriptParams) SetAfterStartTime(AfterStartTime string) *ListTranscriptParams
func (*ListTranscriptParams) SetBeforeDateCreated ¶
func (params *ListTranscriptParams) SetBeforeDateCreated(BeforeDateCreated string) *ListTranscriptParams
func (*ListTranscriptParams) SetBeforeStartTime ¶
func (params *ListTranscriptParams) SetBeforeStartTime(BeforeStartTime string) *ListTranscriptParams
func (*ListTranscriptParams) SetLanguageCode ¶
func (params *ListTranscriptParams) SetLanguageCode(LanguageCode string) *ListTranscriptParams
func (*ListTranscriptParams) SetLimit ¶
func (params *ListTranscriptParams) SetLimit(Limit int) *ListTranscriptParams
func (*ListTranscriptParams) SetPageSize ¶
func (params *ListTranscriptParams) SetPageSize(PageSize int) *ListTranscriptParams
func (*ListTranscriptParams) SetServiceSid ¶
func (params *ListTranscriptParams) SetServiceSid(ServiceSid string) *ListTranscriptParams
func (*ListTranscriptParams) SetSourceSid ¶
func (params *ListTranscriptParams) SetSourceSid(SourceSid string) *ListTranscriptParams
func (*ListTranscriptParams) SetStatus ¶
func (params *ListTranscriptParams) SetStatus(Status string) *ListTranscriptParams
type ListTranscriptResponse ¶
type ListTranscriptResponse struct {
Transcripts []IntelligenceV2Transcript `json:"transcripts,omitempty"`
Meta ListOperatorResultResponseMeta `json:"meta,omitempty"`
}
ListTranscriptResponse struct for ListTranscriptResponse
type UpdateServiceParams ¶
type UpdateServiceParams struct {
// The If-Match HTTP request header
IfMatch *string `json:"If-Match,omitempty"`
// Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.
AutoTranscribe *bool `json:"AutoTranscribe,omitempty"`
// Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
DataLogging *bool `json:"DataLogging,omitempty"`
// A human readable description of this resource, up to 64 characters.
FriendlyName *string `json:"FriendlyName,omitempty"`
// The default language code of the audio.
LanguageCode *string `json:"LanguageCode,omitempty"`
// Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.
UniqueName *string `json:"UniqueName,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.
AutoRedaction *bool `json:"AutoRedaction,omitempty"`
// Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.
MediaRedaction *bool `json:"MediaRedaction,omitempty"`
// The URL Twilio will request when executing the Webhook.
WebhookUrl *string `json:"WebhookUrl,omitempty"`
//
WebhookHttpMethod *string `json:"WebhookHttpMethod,omitempty"`
}
Optional parameters for the method 'UpdateService'
func (*UpdateServiceParams) SetAutoRedaction ¶
func (params *UpdateServiceParams) SetAutoRedaction(AutoRedaction bool) *UpdateServiceParams
func (*UpdateServiceParams) SetAutoTranscribe ¶
func (params *UpdateServiceParams) SetAutoTranscribe(AutoTranscribe bool) *UpdateServiceParams
func (*UpdateServiceParams) SetDataLogging ¶
func (params *UpdateServiceParams) SetDataLogging(DataLogging bool) *UpdateServiceParams
func (*UpdateServiceParams) SetFriendlyName ¶
func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams
func (*UpdateServiceParams) SetIfMatch ¶
func (params *UpdateServiceParams) SetIfMatch(IfMatch string) *UpdateServiceParams
func (*UpdateServiceParams) SetLanguageCode ¶
func (params *UpdateServiceParams) SetLanguageCode(LanguageCode string) *UpdateServiceParams
func (*UpdateServiceParams) SetMediaRedaction ¶
func (params *UpdateServiceParams) SetMediaRedaction(MediaRedaction bool) *UpdateServiceParams
func (*UpdateServiceParams) SetUniqueName ¶
func (params *UpdateServiceParams) SetUniqueName(UniqueName string) *UpdateServiceParams
func (*UpdateServiceParams) SetWebhookHttpMethod ¶
func (params *UpdateServiceParams) SetWebhookHttpMethod(WebhookHttpMethod string) *UpdateServiceParams
func (*UpdateServiceParams) SetWebhookUrl ¶
func (params *UpdateServiceParams) SetWebhookUrl(WebhookUrl string) *UpdateServiceParams
Source Files
¶
- api_service.go
- model_intelligence_v2_media.go
- model_intelligence_v2_operator_result.go
- model_intelligence_v2_sentence.go
- model_intelligence_v2_service.go
- model_intelligence_v2_transcript.go
- model_list_operator_result_response.go
- model_list_operator_result_response_meta.go
- model_list_sentence_response.go
- model_list_service_response.go
- model_list_transcript_response.go
- services.go
- transcripts.go
- transcripts_media.go
- transcripts_operator_results.go
- transcripts_sentences.go