ccs

package
v0.0.0-...-dd20015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html

func (*Client) GetHotlineRecord

func (client *Client) GetHotlineRecord(request *GetHotlineRecordRequest) (response *GetHotlineRecordResponse, err error)

GetHotlineRecord invokes the ccs.GetHotlineRecord API synchronously api document: https://help.aliyun.com/api/ccs/gethotlinerecord.html

func (*Client) GetHotlineRecordWithCallback

func (client *Client) GetHotlineRecordWithCallback(request *GetHotlineRecordRequest, callback func(response *GetHotlineRecordResponse, err error)) <-chan int

GetHotlineRecordWithCallback invokes the ccs.GetHotlineRecord API asynchronously api document: https://help.aliyun.com/api/ccs/gethotlinerecord.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetHotlineRecordWithChan

func (client *Client) GetHotlineRecordWithChan(request *GetHotlineRecordRequest) (<-chan *GetHotlineRecordResponse, <-chan error)

GetHotlineRecordWithChan invokes the ccs.GetHotlineRecord API asynchronously api document: https://help.aliyun.com/api/ccs/gethotlinerecord.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryHotlineRecord

func (client *Client) QueryHotlineRecord(request *QueryHotlineRecordRequest) (response *QueryHotlineRecordResponse, err error)

QueryHotlineRecord invokes the ccs.QueryHotlineRecord API synchronously api document: https://help.aliyun.com/api/ccs/queryhotlinerecord.html

func (*Client) QueryHotlineRecordWithCallback

func (client *Client) QueryHotlineRecordWithCallback(request *QueryHotlineRecordRequest, callback func(response *QueryHotlineRecordResponse, err error)) <-chan int

QueryHotlineRecordWithCallback invokes the ccs.QueryHotlineRecord API asynchronously api document: https://help.aliyun.com/api/ccs/queryhotlinerecord.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryHotlineRecordWithChan

func (client *Client) QueryHotlineRecordWithChan(request *QueryHotlineRecordRequest) (<-chan *QueryHotlineRecordResponse, <-chan error)

QueryHotlineRecordWithChan invokes the ccs.QueryHotlineRecord API asynchronously api document: https://help.aliyun.com/api/ccs/queryhotlinerecord.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type GetHotlineRecordRequest

type GetHotlineRecordRequest struct {
	*requests.RpcRequest
	Id            string `position:"Query" name:"Id"`
	CcsInstanceId string `position:"Query" name:"CcsInstanceId"`
}

GetHotlineRecordRequest is the request struct for api GetHotlineRecord

func CreateGetHotlineRecordRequest

func CreateGetHotlineRecordRequest() (request *GetHotlineRecordRequest)

CreateGetHotlineRecordRequest creates a request to invoke GetHotlineRecord API

type GetHotlineRecordResponse

type GetHotlineRecordResponse struct {
	*responses.BaseResponse
	RequestId       string `json:"RequestId" xml:"RequestId"`
	Id              string `json:"Id" xml:"Id"`
	CallType        string `json:"CallType" xml:"CallType"`
	VisitorId       string `json:"VisitorId" xml:"VisitorId"`
	VisitorPhone    string `json:"VisitorPhone" xml:"VisitorPhone"`
	VisitorProvince string `json:"VisitorProvince" xml:"VisitorProvince"`
	SceneId         string `json:"SceneId" xml:"SceneId"`
	AgentId         string `json:"AgentId" xml:"AgentId"`
	AgentName       string `json:"AgentName" xml:"AgentName"`
	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
	FinishTime      string `json:"FinishTime" xml:"FinishTime"`
	Status          string `json:"Status" xml:"Status"`
	Memo            string `json:"Memo" xml:"Memo"`
	HangupType      string `json:"HangupType" xml:"HangupType"`
	Satisfaction    string `json:"Satisfaction" xml:"Satisfaction"`
	OutboundTaskId  string `json:"OutboundTaskId" xml:"OutboundTaskId"`
	Categories      string `json:"Categories" xml:"Categories"`
	CcsInstanceId   string `json:"CcsInstanceId" xml:"CcsInstanceId"`
	TalkDuration    int    `json:"TalkDuration" xml:"TalkDuration"`
	GroupId         string `json:"GroupId" xml:"GroupId"`
	GroupName       string `json:"GroupName" xml:"GroupName"`
}

GetHotlineRecordResponse is the response struct for api GetHotlineRecord

func CreateGetHotlineRecordResponse

func CreateGetHotlineRecordResponse() (response *GetHotlineRecordResponse)

CreateGetHotlineRecordResponse creates a response to parse from GetHotlineRecord response

type HotlineRecord

type HotlineRecord struct {
	Id              string `json:"Id" xml:"Id"`
	VisitorId       string `json:"VisitorId" xml:"VisitorId"`
	VisitorPhone    string `json:"VisitorPhone" xml:"VisitorPhone"`
	VisitorProvince string `json:"VisitorProvince" xml:"VisitorProvince"`
	CallType        string `json:"CallType" xml:"CallType"`
	AgentId         string `json:"AgentId" xml:"AgentId"`
	AgentName       string `json:"AgentName" xml:"AgentName"`
	GroupId         string `json:"GroupId" xml:"GroupId"`
	GroupName       string `json:"GroupName" xml:"GroupName"`
	CreateTime      string `json:"CreateTime" xml:"CreateTime"`
	FinishTime      string `json:"FinishTime" xml:"FinishTime"`
	Status          string `json:"Status" xml:"Status"`
	Memo            string `json:"Memo" xml:"Memo"`
	HangupType      string `json:"HangupType" xml:"HangupType"`
	Satisfaction    string `json:"Satisfaction" xml:"Satisfaction"`
	OutboundTaskId  string `json:"OutboundTaskId" xml:"OutboundTaskId"`
	Categories      string `json:"Categories" xml:"Categories"`
	CcsInstanceId   string `json:"CcsInstanceId" xml:"CcsInstanceId"`
	TalkDuration    int    `json:"TalkDuration" xml:"TalkDuration"`
}

HotlineRecord is a nested struct in ccs response

type QueryHotlineRecordRequest

type QueryHotlineRecordRequest struct {
	*requests.RpcRequest
	AgentId         string           `position:"Query" name:"AgentId"`
	MaxTalkDuration requests.Integer `position:"Query" name:"MaxTalkDuration"`
	GroupId         string           `position:"Query" name:"GroupId"`
	EndTime         string           `position:"Query" name:"EndTime"`
	StartTime       string           `position:"Query" name:"StartTime"`
	PageNum         requests.Integer `position:"Query" name:"PageNum"`
	Satisfaction    string           `position:"Query" name:"Satisfaction"`
	MinTalkDuratoin requests.Integer `position:"Query" name:"MinTalkDuratoin"`
	CategoryIds     string           `position:"Query" name:"CategoryIds"`
	VisitorProvince string           `position:"Query" name:"VisitorProvince"`
	PageSize        requests.Integer `position:"Query" name:"PageSize"`
	CallType        string           `position:"Query" name:"CallType"`
	CcsInstanceId   string           `position:"Query" name:"CcsInstanceId"`
	VisitorPhone    string           `position:"Query" name:"VisitorPhone"`
	VisitorId       string           `position:"Query" name:"VisitorId"`
	Status          string           `position:"Query" name:"Status"`
}

QueryHotlineRecordRequest is the request struct for api QueryHotlineRecord

func CreateQueryHotlineRecordRequest

func CreateQueryHotlineRecordRequest() (request *QueryHotlineRecordRequest)

CreateQueryHotlineRecordRequest creates a request to invoke QueryHotlineRecord API

type QueryHotlineRecordResponse

type QueryHotlineRecordResponse struct {
	*responses.BaseResponse
	RequestId  string  `json:"RequestId" xml:"RequestId"`
	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
	PageNum    int     `json:"PageNum" xml:"PageNum"`
	PageSize   int     `json:"PageSize" xml:"PageSize"`
	Records    Records `json:"Records" xml:"Records"`
}

QueryHotlineRecordResponse is the response struct for api QueryHotlineRecord

func CreateQueryHotlineRecordResponse

func CreateQueryHotlineRecordResponse() (response *QueryHotlineRecordResponse)

CreateQueryHotlineRecordResponse creates a response to parse from QueryHotlineRecord response

type Records

type Records struct {
	HotlineRecord []HotlineRecord `json:"HotlineRecord" xml:"HotlineRecord"`
}

Records is a nested struct in ccs response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL