ccs

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 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) CreateTicket

func (client *Client) CreateTicket(request *CreateTicketRequest) (response *CreateTicketResponse, err error)

CreateTicket invokes the ccs.CreateTicket API synchronously api document: https://help.aliyun.com/api/ccs/createticket.html

func (*Client) CreateTicketWithCallback

func (client *Client) CreateTicketWithCallback(request *CreateTicketRequest, callback func(response *CreateTicketResponse, err error)) <-chan int

CreateTicketWithCallback invokes the ccs.CreateTicket API asynchronously api document: https://help.aliyun.com/api/ccs/createticket.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) CreateTicketWithChan

func (client *Client) CreateTicketWithChan(request *CreateTicketRequest) (<-chan *CreateTicketResponse, <-chan error)

CreateTicketWithChan invokes the ccs.CreateTicket API asynchronously api document: https://help.aliyun.com/api/ccs/createticket.html asynchronous document: https://help.aliyun.com/document_detail/66220.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) ProceedTicket

func (client *Client) ProceedTicket(request *ProceedTicketRequest) (response *ProceedTicketResponse, err error)

ProceedTicket invokes the ccs.ProceedTicket API synchronously api document: https://help.aliyun.com/api/ccs/proceedticket.html

func (*Client) ProceedTicketWithCallback

func (client *Client) ProceedTicketWithCallback(request *ProceedTicketRequest, callback func(response *ProceedTicketResponse, err error)) <-chan int

ProceedTicketWithCallback invokes the ccs.ProceedTicket API asynchronously api document: https://help.aliyun.com/api/ccs/proceedticket.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ProceedTicketWithChan

func (client *Client) ProceedTicketWithChan(request *ProceedTicketRequest) (<-chan *ProceedTicketResponse, <-chan error)

ProceedTicketWithChan invokes the ccs.ProceedTicket API asynchronously api document: https://help.aliyun.com/api/ccs/proceedticket.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

func (*Client) QueryTicket

func (client *Client) QueryTicket(request *QueryTicketRequest) (response *QueryTicketResponse, err error)

QueryTicket invokes the ccs.QueryTicket API synchronously api document: https://help.aliyun.com/api/ccs/queryticket.html

func (*Client) QueryTicketWithCallback

func (client *Client) QueryTicketWithCallback(request *QueryTicketRequest, callback func(response *QueryTicketResponse, err error)) <-chan int

QueryTicketWithCallback invokes the ccs.QueryTicket API asynchronously api document: https://help.aliyun.com/api/ccs/queryticket.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) QueryTicketWithChan

func (client *Client) QueryTicketWithChan(request *QueryTicketRequest) (<-chan *QueryTicketResponse, <-chan error)

QueryTicketWithChan invokes the ccs.QueryTicket API asynchronously api document: https://help.aliyun.com/api/ccs/queryticket.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type CreateTicketRequest

type CreateTicketRequest struct {
	*requests.RpcRequest
	CreatorId     string `position:"Query" name:"CreatorId"`
	Description   string `position:"Query" name:"Description"`
	Type          string `position:"Query" name:"Type"`
	CcsInstanceId string `position:"Query" name:"CcsInstanceId"`
	CustomFields  string `position:"Query" name:"CustomFields"`
}

CreateTicketRequest is the request struct for api CreateTicket

func CreateCreateTicketRequest

func CreateCreateTicketRequest() (request *CreateTicketRequest)

CreateCreateTicketRequest creates a request to invoke CreateTicket API

type CreateTicketResponse

type CreateTicketResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Id        string `json:"Id" xml:"Id"`
}

CreateTicketResponse is the response struct for api CreateTicket

func CreateCreateTicketResponse

func CreateCreateTicketResponse() (response *CreateTicketResponse)

CreateCreateTicketResponse creates a response to parse from CreateTicket response

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 ProceedTicketRequest

type ProceedTicketRequest struct {
	*requests.RpcRequest
	Memo          string `position:"Query" name:"Memo"`
	Id            string `position:"Query" name:"Id"`
	CcsInstanceId string `position:"Query" name:"CcsInstanceId"`
	Operation     string `position:"Query" name:"Operation"`
	OperatorId    string `position:"Query" name:"OperatorId"`
}

ProceedTicketRequest is the request struct for api ProceedTicket

func CreateProceedTicketRequest

func CreateProceedTicketRequest() (request *ProceedTicketRequest)

CreateProceedTicketRequest creates a request to invoke ProceedTicket API

type ProceedTicketResponse

type ProceedTicketResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ProceedTicketResponse is the response struct for api ProceedTicket

func CreateProceedTicketResponse

func CreateProceedTicketResponse() (response *ProceedTicketResponse)

CreateProceedTicketResponse creates a response to parse from ProceedTicket 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 QueryTicketRequest

type QueryTicketRequest struct {
	*requests.RpcRequest
	Stage         string           `position:"Query" name:"Stage"`
	PageSize      requests.Integer `position:"Query" name:"PageSize"`
	CreatorId     string           `position:"Query" name:"CreatorId"`
	EndTime       string           `position:"Query" name:"EndTime"`
	StartTime     string           `position:"Query" name:"StartTime"`
	PageNum       requests.Integer `position:"Query" name:"PageNum"`
	Type          string           `position:"Query" name:"Type"`
	CcsInstanceId string           `position:"Query" name:"CcsInstanceId"`
}

QueryTicketRequest is the request struct for api QueryTicket

func CreateQueryTicketRequest

func CreateQueryTicketRequest() (request *QueryTicketRequest)

CreateQueryTicketRequest creates a request to invoke QueryTicket API

type QueryTicketResponse

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

QueryTicketResponse is the response struct for api QueryTicket

func CreateQueryTicketResponse

func CreateQueryTicketResponse() (response *QueryTicketResponse)

CreateQueryTicketResponse creates a response to parse from QueryTicket response

type Records

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

Records is a nested struct in ccs response

type Ticket

type Ticket struct {
	Id           string `json:"Id" xml:"Id"`
	Type         string `json:"Type" xml:"Type"`
	Stage        string `json:"Stage" xml:"Stage"`
	Description  string `json:"Description" xml:"Description"`
	CreatorId    string `json:"CreatorId" xml:"CreatorId"`
	CreateTime   string `json:"CreateTime" xml:"CreateTime"`
	CustomFields string `json:"CustomFields" xml:"CustomFields"`
}

Ticket is a nested struct in ccs response

type Tickets

type Tickets struct {
	Ticket []Ticket `json:"Ticket" xml:"Ticket"`
}

Tickets 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