Documentation
¶
Index ¶
- type CallRecord
- type Client
- func (c Client) Call(ctx context.Context, from, to string, options ...string) (sessionId string, err error)
- func (c Client) DownloadRecording(ctx context.Context, sessionId string) (recording []byte, err error)
- func (c Client) GetSeats(ctx context.Context) (seats []string, err error)
- func (c Client) Query(ctx context.Context, sessionIds ...string) (callRecords []CallRecord, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallRecord ¶
type CallRecord struct {
CallerNum string `json:"callerNum"`
RecordFileID string `json:"recordFileId"`
DisconnectTime int64 `json:"disconnectTime"`
TimeConsume int `json:"timeConsume"`
SessionID string `json:"sessionId"`
CallType string `json:"callType"`
RealName string `json:"realName"`
CompanyID int `json:"companyId"`
ProfileID int `json:"profileId"`
ConnectTime int64 `json:"connectTime"`
CreatedTime int64 `json:"createdTime"`
CalleeNum string `json:"calleeNum"`
Status string `json:"status"`
Ext1 string `json:"ext1"`
}
CallRecord represents a call record.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the bdsaas API.
func (Client) Call ¶
func (c Client) Call(ctx context.Context, from, to string, options ...string) (sessionId string, err error)
Call initiates a call from seat phone number to client phone number, with optional client IP address and notes, returns the session ID of the call.
func (Client) DownloadRecording ¶ added in v0.0.2
func (c Client) DownloadRecording(ctx context.Context, sessionId string) (recording []byte, err error)
DownloadRecording downloads the recording of a call by session ID.
Click to show internal directories.
Click to hide internal directories.