Documentation ¶
Index ¶
Constants ¶
const ( US = "api.boldchat.com" EMEA = "api-eu.boldchat.com" )
const definitions of the BoldChat API endpoints for the 2 regions available
US for North America EMEA for Europe, Middle East, or Africa
const ( LIBNAME = "BoldChat" MAJVERSION = 0 MINVERSION = 1 RELVERSION = 0 )
Constants that defines self-awareness LIBNAME is the name MAJVERSION is the major version number MINVERSION is the minor version number RELVERSION is the release version number
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the BoldChat object that is used for all operations
func (*Client) EditOperator ¶
EditOperator is the 'editOperator' API Call requires an Operator object Any Operator value that can be changed will be sent if the value in the object is not empty The LoginID value MUST be set correctly or an error is thrown returns an error if applicable reference: https://developer.bold360.com/help/EN/Bold360API/Bold360API/c_provisioning_operator_editOperator.html
func (*Client) GetOperator ¶
GetOperator is the 'getOperator' API Call requires the OperatorID returns the Operator or an error reference: https://developer.bold360.com/help/EN/Bold360API/Bold360API/c_data_extraction_single_item_getOperator.html
func (*Client) GetOperatorByEmail ¶
GetOperatorByEmail is a convenience function to get an operator by their email address Calls the 'getOperators' function call, and returns the matching user or an error
func (*Client) GetOperatorByName ¶
GetOperatorByName is a convenience function to get an operator by their Name Calls the 'getOperators' function call, and returns the matching user or an error
func (*Client) GetOperators ¶
GetOperators is the 'getOperators' API Call returns the full list of operators found or an error reference: https://developer.bold360.com/help/EN/Bold360API/Bold360API/c_data_extraction_list_data_getOperators.html
type Operator ¶
type Operator struct { Name string `json:"Name"` OperatorName string `json:"OperatorName"` Email string `json:"Email"` LoginID string `json:"LoginID"` ChatName string `json:"ChatName"` SSONameID string `json:"SSONameID"` EmailName string `json:"EmailName"` PermissionGroupID string `json:"PermissionGroupID"` Disabled string `json:"Disabled"` Departments []*OperatorDepartment `json:"Departments"` TwitterService *OperatorService `json:"TwitterService"` EmailService *OperatorService `json:"EmailService"` ChatService *OperatorService `json:"ChatService"` SmsService *OperatorService `json:"SmsService"` }
Operator is the data type matching the Operator JSON object according to the BoldChat API
type OperatorDepartment ¶
type OperatorDepartment struct { AssignmentPriority int `json:"AssignmentPriority"` Priority int `json:"Priority"` DepartmentID string `json:"DepartmentID"` }
OperatorDepartment is the struct for the Departments in the Operators JSON Object
func (OperatorDepartment) String ¶
func (ud OperatorDepartment) String() string
String is a helper function to print
type OperatorService ¶
OperatorService is the struct for the Services in the Operators JSON Object
func (OperatorService) String ¶
func (us OperatorService) String() string
String is a helper function to print