Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type Agent
- type AgentGroup
- type AgentsApiService
- type AuthApiService
- type BasicAuth
- type Campaign
- type CampaignLead
- type CampaignLeadSearchCriteria
- type CampaignLeadSearchResultsView
- type CampaignLeadsApiService
- func (a *CampaignLeadsApiService) GetLeadStates(ctx context.Context, accountId string) ([]string, *http.Response, error)
- func (a *CampaignLeadsApiService) GetSystemDispositions(ctx context.Context, accountId string) ([]string, *http.Response, error)
- func (a *CampaignLeadsApiService) SearchLeads(ctx context.Context, accountId string, ...) ([]CampaignLeadSearchResultsView, *http.Response, error)
- type CampaignsApiService
- func (a *CampaignsApiService) PatchCampaignLead(ctx context.Context, accountId string, leadId int32, campaignId int32, ...) (CampaignLead, *http.Response, error)
- func (a *CampaignsApiService) UpdateCampaignLead(ctx context.Context, accountId string, leadId int32, campaignId int32, ...) (CampaignLead, *http.Response, error)
- func (a *CampaignsApiService) UploadLeads(ctx context.Context, accountId string, campaignId string, ...) (UploadLeadsResponse, *http.Response, error)
- type ComparableSearchField
- type Configuration
- type CountriesApiService
- type Country
- type DateTimeComparableSearchField
- type DialGroup
- type DialGroupsApiService
- func (a *DialGroupsApiService) ClearCampaignCache(ctx context.Context, accountId int64, dialGroupId int64, campaignId int64, ...) (*http.Response, error)
- func (a *DialGroupsApiService) GetCampaigns(ctx context.Context, accountId string, dialGroupId string) ([]Campaign, *http.Response, error)
- func (a *DialGroupsApiService) GetDialGroups(ctx context.Context, accountId string) ([]DialGroup, *http.Response, error)
- type Error
- type ExtendedLeadData
- type Generic
- type GenericOpenAPIError
- type Lead
- type PatchCampaignLeadOpts
- type SearchLeadsOpts
- type SuppressedType
- type Timezone
- type UpdateCampaignLeadOpts
- type UploadLeadsRequest
- type UploadLeadsResponse
- type User
- type UsersApiService
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { AgentsApi *AgentsApiService AuthApi *AuthApiService CampaignLeadsApi *CampaignLeadsApiService CampaignsApi *CampaignsApiService CountriesApi *CountriesApiService DialGroupsApi *DialGroupsApiService UsersApi *UsersApiService // contains filtered or unexported fields }
APIClient manages communication with the RingCentral Engage Voice API API v1.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
Change base path to allow switching to mocks
func (*APIClient) HTTPClient ¶
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type Agent ¶
type Agent struct { AgentId int32 `json:"agentId,omitempty"` AgentRank int32 `json:"agentRank,omitempty"` AllowAgentReports bool `json:"allowAgentReports,omitempty"` AllowAgentStats bool `json:"allowAgentStats,omitempty"` AllowAutoAnswer bool `json:"allowAutoAnswer,omitempty"` AllowBlended bool `json:"allowBlended,omitempty"` AllowCallControl bool `json:"allowCallControl,omitempty"` AllowCampStats bool `json:"allowCampStats,omitempty"` AllowChat bool `json:"allowChat,omitempty"` AllowChatStats bool `json:"allowChatStats,omitempty"` AllowChatVoiceConcurrent bool `json:"allowChatVoiceConcurrent,omitempty"` AllowCrossGateRequeue bool `json:"allowCrossGateRequeue,omitempty"` AllowEndcallforeveryone bool `json:"allowEndcallforeveryone,omitempty"` AllowExternalChat bool `json:"allowExternalChat,omitempty"` AllowFromIpAddresses string `json:"allowFromIpAddresses,omitempty"` AllowGateStats bool `json:"allowGateStats,omitempty"` AllowHangup bool `json:"allowHangup,omitempty"` AllowHistoricalDialing bool `json:"allowHistoricalDialing,omitempty"` AllowHold bool `json:"allowHold,omitempty"` AllowInbound bool `json:"allowInbound,omitempty"` AllowInboundIntlTransfer bool `json:"allowInboundIntlTransfer,omitempty"` AllowLeadInserts bool `json:"allowLeadInserts,omitempty"` AllowLoginControl bool `json:"allowLoginControl,omitempty"` AllowLoginUpdates bool `json:"allowLoginUpdates,omitempty"` AllowManualCalls bool `json:"allowManualCalls,omitempty"` AllowManualIntlCalls bool `json:"allowManualIntlCalls,omitempty"` AllowManualIntlTransfer bool `json:"allowManualIntlTransfer,omitempty"` AllowManualOutboundGates bool `json:"allowManualOutboundGates,omitempty"` AllowManualPass bool `json:"allowManualPass,omitempty"` AllowOffHook bool `json:"allowOffHook,omitempty"` AllowOutbound bool `json:"allowOutbound,omitempty"` AllowRequeue bool `json:"allowRequeue,omitempty"` AllowSelfAgentStats bool `json:"allowSelfAgentStats,omitempty"` AllowTransfer bool `json:"allowTransfer,omitempty"` AltDefaultLoginDest string `json:"altDefaultLoginDest,omitempty"` DefaultAutoAnswerOn bool `json:"defaultAutoAnswerOn,omitempty"` DefaultLoginDest string `json:"defaultLoginDest,omitempty"` DirectAgentExtension string `json:"directAgentExtension,omitempty"` DisableSupervisorMonitoring bool `json:"disableSupervisorMonitoring,omitempty"` Email string `json:"email,omitempty"` EnableSoftphone bool `json:"enableSoftphone,omitempty"` ExternalAgentId string `json:"externalAgentId,omitempty"` FirstName string `json:"firstName,omitempty"` GatesControlAgentVisibility bool `json:"gatesControlAgentVisibility,omitempty"` GhostRnaAction string `json:"ghostRnaAction,omitempty"` InitLoginBaseState string `json:"initLoginBaseState,omitempty"` InitLoginBaseStateId int32 `json:"initLoginBaseStateId,omitempty"` IsActive bool `json:"isActive,omitempty"` LastLoginDate time.Time `json:"lastLoginDate,omitempty"` LastName string `json:"lastName,omitempty"` LoadBalanceEnabled bool `json:"loadBalanceEnabled,omitempty"` Location string `json:"location,omitempty"` ManualOutboundDefaultCallerId string `json:"manualOutboundDefaultCallerId,omitempty"` MaxChats int32 `json:"maxChats,omitempty"` MultiAccountAgent bool `json:"multiAccountAgent,omitempty"` ParentAgentId int32 `json:"parentAgentId,omitempty"` Password string `json:"password,omitempty"` PhoneLoginPin string `json:"phoneLoginPin,omitempty"` RcUserId int64 `json:"rcUserId,omitempty"` ShowLeadHistory bool `json:"showLeadHistory,omitempty"` SoftphoneId int32 `json:"softphoneId,omitempty"` Team string `json:"team,omitempty"` TransientAgent bool `json:"transientAgent,omitempty"` TransientDelete bool `json:"transientDelete,omitempty"` TransientDeleteDate time.Time `json:"transientDeleteDate,omitempty"` UserManagedByRC bool `json:"userManagedByRC,omitempty"` Username string `json:"username,omitempty"` }
type AgentGroup ¶
type AgentGroup struct { AgentGroupId int64 `json:"agentGroupId,omitempty"` GroupName string `json:"groupName,omitempty"` IsDefault bool `json:"isDefault,omitempty"` }
WIP: `permissions` is an array that needs definition
type AgentsApiService ¶
type AgentsApiService service
func (*AgentsApiService) GetAgentGroups ¶
func (a *AgentsApiService) GetAgentGroups(ctx context.Context, accountId string) ([]AgentGroup, *http.Response, error)
AgentsApiService Get Agent Groups Returns a listing of agent groups for an account
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
@return []AgentGroup
func (*AgentsApiService) GetAgents ¶
func (a *AgentsApiService) GetAgents(ctx context.Context, accountId string, agentGroupId string) ([]Agent, *http.Response, error)
AgentsApiService Get Group Agents Returns a listing of agents for an agent group
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
- @param agentGroupId
@return []Agent
type AuthApiService ¶
type AuthApiService service
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Campaign ¶
type Campaign struct { CampaignDesc string `json:"campaignDesc,omitempty"` CampaignId int64 `json:"campaignId,omitempty"` CampaignName string `json:"campaignName,omitempty"` DialGroup Generic `json:"dialGroup,omitempty"` IsActive int64 `json:"isActive,omitempty"` Permissions []map[string]interface{} `json:"permissions,omitempty"` Script Generic `json:"script,omitempty"` }
type CampaignLead ¶
type CampaignLead struct { Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` AgentDispostion string `json:"agentDispostion,omitempty"` AuxData1 string `json:"auxData1,omitempty"` AuxData2 string `json:"auxData2,omitempty"` AuxData3 string `json:"auxData3,omitempty"` AuxData4 string `json:"auxData4,omitempty"` AuxData5 string `json:"auxData5,omitempty"` AuxExternalUrl string `json:"auxExternalUrl,omitempty"` AuxGreeting string `json:"auxGreeting,omitempty"` AuxPhone string `json:"auxPhone,omitempty"` CallerId string `json:"callerId,omitempty"` City string `json:"city,omitempty"` DupeKeyOverride int64 `json:"dupeKeyOverride,omitempty"` Email string `json:"email,omitempty"` ExternId string `json:"externId,omitempty"` ExtraData string `json:"extraData,omitempty"` FirstName string `json:"firstName,omitempty"` GateKeeper string `json:"gateKeeper,omitempty"` Id int64 `json:"id,omitempty"` LastName string `json:"lastName,omitempty"` LastPassDispo string `json:"lastPassDispo,omitempty"` LeadId int64 `json:"leadId,omitempty"` LeadPasses int32 `json:"leadPasses,omitempty"` LeadPhone string `json:"leadPhone,omitempty"` LeadState string `json:"leadState,omitempty"` LeadTimezone string `json:"leadTimezone,omitempty"` LiveAnswerMessage string `json:"liveAnswerMessage,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LoadedDts string `json:"loadedDts,omitempty"` MachAnswerMessage string `json:"machAnswerMessage,omitempty"` MaxPasses int32 `json:"maxPasses,omitempty"` MidName string `json:"midName,omitempty"` Name string `json:"name,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. NextDialTime string `json:"nextDialTime,omitempty"` SortCol string `json:"sortCol,omitempty"` SpeedToLeadAgentConn int32 `json:"speedToLeadAgentConn,omitempty"` SpeedToLeadFirstPass int32 `json:"speedToLeadFirstPass,omitempty"` State string `json:"state,omitempty"` Suffix string `json:"suffix,omitempty"` Suppressed bool `json:"suppressed,omitempty"` Title string `json:"title,omitempty"` Zip string `json:"zip,omitempty"` }
type CampaignLeadSearchCriteria ¶
type CampaignLeadSearchCriteria struct { Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` AgentDispositions []string `json:"agentDispositions,omitempty"` AgentId int32 `json:"agentId,omitempty"` AuxData1 string `json:"auxData1,omitempty"` AuxData2 string `json:"auxData2,omitempty"` AuxData3 string `json:"auxData3,omitempty"` AuxData4 string `json:"auxData4,omitempty"` AuxData5 string `json:"auxData5,omitempty"` CallerId string `json:"callerId,omitempty"` CampaignIds []int32 `json:"campaignIds,omitempty"` City string `json:"city,omitempty"` EmailAddress string `json:"emailAddress,omitempty"` ExternIds []string `json:"externIds,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` LastPassTimeCriteria DateTimeComparableSearchField `json:"lastPassTimeCriteria,omitempty"` LeadIds []int32 `json:"leadIds,omitempty"` LeadPassesCriteria ComparableSearchField `json:"leadPassesCriteria,omitempty"` LeadPhoneNum string `json:"leadPhoneNum,omitempty"` LeadPhoneNumbers []string `json:"leadPhoneNumbers,omitempty"` LeadTimezones Timezone `json:"leadTimezones,omitempty"` ListIds []int32 `json:"listIds,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LoadedDtsEnd string `json:"loadedDtsEnd,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LoadedDtsStart string `json:"loadedDtsStart,omitempty"` NextDialTimeCriteria DateTimeComparableSearchField `json:"nextDialTimeCriteria,omitempty"` OrphanedLeadsOnly bool `json:"orphanedLeadsOnly,omitempty"` PendingAgentId int32 `json:"pendingAgentId,omitempty"` PhysicalStates []string `json:"physicalStates,omitempty"` Zip string `json:"zip,omitempty"` }
type CampaignLeadSearchResultsView ¶
type CampaignLeadSearchResultsView struct { Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` AgentDispostion string `json:"agentDispostion,omitempty"` AuxData1 string `json:"auxData1,omitempty"` AuxData2 string `json:"auxData2,omitempty"` AuxData3 string `json:"auxData3,omitempty"` AuxData4 string `json:"auxData4,omitempty"` AuxData5 string `json:"auxData5,omitempty"` AuxExternalUrl string `json:"auxExternalUrl,omitempty"` AuxGreeting string `json:"auxGreeting,omitempty"` AuxPhone string `json:"auxPhone,omitempty"` CallerId string `json:"callerId,omitempty"` CampaignId int32 `json:"campaignId,omitempty"` CampaignLead CampaignLead `json:"campaignLead,omitempty"` CampaignName string `json:"campaignName,omitempty"` City string `json:"city,omitempty"` DialGroupId int32 `json:"dialGroupId,omitempty"` DupeKeyOverride int64 `json:"dupeKeyOverride,omitempty"` Email string `json:"email,omitempty"` ExternId string `json:"externId,omitempty"` ExtraData string `json:"extraData,omitempty"` FirstName string `json:"firstName,omitempty"` GateKeeper string `json:"gateKeeper,omitempty"` Id string `json:"id,omitempty"` LastName string `json:"lastName,omitempty"` LastPassAgentName string `json:"lastPassAgentName,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LastPassDate string `json:"lastPassDate,omitempty"` LastPassDispo string `json:"lastPassDispo,omitempty"` LastPassDisposition string `json:"lastPassDisposition,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LastPassDts string `json:"lastPassDts,omitempty"` LeadId int64 `json:"leadId,omitempty"` LeadPasses int32 `json:"leadPasses,omitempty"` LeadPhone string `json:"leadPhone,omitempty"` LeadState string `json:"leadState,omitempty"` LeadTimezone string `json:"leadTimezone,omitempty"` ListDesc string `json:"listDesc,omitempty"` ListId int32 `json:"listId,omitempty"` LiveAnswerMessage string `json:"liveAnswerMessage,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. LoadedDts string `json:"loadedDts,omitempty"` MachAnswerMessage string `json:"machAnswerMessage,omitempty"` MaxPasses int32 `json:"maxPasses,omitempty"` MidName string `json:"midName,omitempty"` Name string `json:"name,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. NextDialTime string `json:"nextDialTime,omitempty"` PendingAgentName string `json:"pendingAgentName,omitempty"` SortCol string `json:"sortCol,omitempty"` SpeedToLeadAgentConn int32 `json:"speedToLeadAgentConn,omitempty"` SpeedToLeadFirstPass int32 `json:"speedToLeadFirstPass,omitempty"` State string `json:"state,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. StateDts string `json:"stateDts,omitempty"` Suffix string `json:"suffix,omitempty"` Suppressed bool `json:"suppressed,omitempty"` Title string `json:"title,omitempty"` // Date-time in Java format. Example: `2019-01-01T01:01:01.000+0000`. Note this is not compatible with RFC-3339 which is used by OpenAPI 3.0 Spec because it doesn't have a `:` between hours and minutes. UploadDate string `json:"uploadDate,omitempty"` UploadedBy string `json:"uploadedBy,omitempty"` Zip string `json:"zip,omitempty"` }
type CampaignLeadsApiService ¶
type CampaignLeadsApiService service
func (*CampaignLeadsApiService) GetLeadStates ¶
func (a *CampaignLeadsApiService) GetLeadStates(ctx context.Context, accountId string) ([]string, *http.Response, error)
CampaignLeadsApiService Get Lead States Returns a listing of all lead states for an account Permissions: READ on Account
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
@return []string
func (*CampaignLeadsApiService) GetSystemDispositions ¶
func (a *CampaignLeadsApiService) GetSystemDispositions(ctx context.Context, accountId string) ([]string, *http.Response, error)
CampaignLeadsApiService Get Systems Dispositions Returns a listing of all system dispositions for an account Permissions: READ on Account
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
@return []string
func (*CampaignLeadsApiService) SearchLeads ¶
func (a *CampaignLeadsApiService) SearchLeads(ctx context.Context, accountId string, campaignLeadSearchCriteria CampaignLeadSearchCriteria, localVarOptionals *SearchLeadsOpts) ([]CampaignLeadSearchResultsView, *http.Response, error)
type CampaignsApiService ¶
type CampaignsApiService service
func (*CampaignsApiService) PatchCampaignLead ¶
func (a *CampaignsApiService) PatchCampaignLead(ctx context.Context, accountId string, leadId int32, campaignId int32, campaignLead CampaignLead, localVarOptionals *PatchCampaignLeadOpts) (CampaignLead, *http.Response, error)
func (*CampaignsApiService) UpdateCampaignLead ¶
func (a *CampaignsApiService) UpdateCampaignLead(ctx context.Context, accountId string, leadId int32, campaignId int32, campaignLead CampaignLead, localVarOptionals *UpdateCampaignLeadOpts) (CampaignLead, *http.Response, error)
func (*CampaignsApiService) UploadLeads ¶
func (a *CampaignsApiService) UploadLeads(ctx context.Context, accountId string, campaignId string, uploadLeadsRequest UploadLeadsRequest) (UploadLeadsResponse, *http.Response, error)
CampaignsApiService Upload Leads Uploads a single lead or list of leads to a new or existing list
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
- @param campaignId
- @param uploadLeadsRequest
@return UploadLeadsResponse
type ComparableSearchField ¶
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type CountriesApiService ¶
type CountriesApiService service
func (*CountriesApiService) GetAvailableCountries ¶
func (a *CountriesApiService) GetAvailableCountries(ctx context.Context, accountId string) ([]Country, *http.Response, error)
CountriesApiService Get Available Countries Get a list of available countries
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
@return []Country
type Country ¶
type Country struct { CountryCode string `json:"countryCode"` // Country code i ISO 3166-1 alpha-3 format CountryId string `json:"countryId,omitempty"` CountryName string `json:"countryName,omitempty"` MaxAniLength int32 `json:"maxAniLength,omitempty"` MaxUtcOffset int32 `json:"maxUtcOffset,omitempty"` MinAniLength int32 `json:"minAniLength,omitempty"` MinUtcOffset int32 `json:"minUtcOffset,omitempty"` }
type DialGroup ¶
type DialGroup struct { AgentDialGroupMembers map[string]interface{} `json:"agentDialGroupMembers,omitempty"` AgentsReady int32 `json:"agentsReady,omitempty"` BillingKey string `json:"billingKey,omitempty"` DialGroupDesc string `json:"dialGroupDesc,omitempty"` DialGroupId int64 `json:"dialGroupId,omitempty"` DialGroupName string `json:"dialGroupName,omitempty"` // Can be `PREDICTIVE` DialMode string `json:"dialMode,omitempty"` EnableAgentFilter bool `json:"enableAgentFilter,omitempty"` // Can be `DISABLED` HciEnabled string `json:"hciEnabled,omitempty"` IsActive bool `json:"isActive,omitempty"` MaxPorts int32 `json:"maxPorts,omitempty"` OutdialServerGroupId int32 `json:"outdialServerGroupId,omitempty"` Permissions []map[string]interface{} `json:"permissions,omitempty"` RealTimeAgentData bool `json:"realTimeAgentData,omitempty"` }
type DialGroupsApiService ¶
type DialGroupsApiService service
func (*DialGroupsApiService) ClearCampaignCache ¶
func (a *DialGroupsApiService) ClearCampaignCache(ctx context.Context, accountId int64, dialGroupId int64, campaignId int64, body map[string]interface{}) (*http.Response, error)
DialGroupsApiService Clear Campaign Cache lears the cache for a campaign Permissions: READ on Campaign (Permission Override)
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
- @param dialGroupId
- @param campaignId
- @param body An `application/json` Content-Type header is required. Submit an empty body to trigger the header.
func (*DialGroupsApiService) GetCampaigns ¶
func (a *DialGroupsApiService) GetCampaigns(ctx context.Context, accountId string, dialGroupId string) ([]Campaign, *http.Response, error)
DialGroupsApiService Get Campaigns Returns a listing of campaigns for a dial group
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
- @param dialGroupId
@return []Campaign
func (*DialGroupsApiService) GetDialGroups ¶
func (a *DialGroupsApiService) GetDialGroups(ctx context.Context, accountId string) ([]DialGroup, *http.Response, error)
DialGroupsApiService Get Dial Groups Returns a listing of dial groups for an account
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param accountId
@return []DialGroup
type ExtendedLeadData ¶
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type Lead ¶
type Lead struct { Address1 string `json:"address1,omitempty"` Address2 string `json:"address2,omitempty"` AuxData1 string `json:"auxData1,omitempty"` AuxData2 string `json:"auxData2,omitempty"` AuxData3 string `json:"auxData3,omitempty"` AuxData4 string `json:"auxData4,omitempty"` AuxData5 string `json:"auxData5,omitempty"` AuxPhone string `json:"auxPhone,omitempty"` City string `json:"city,omitempty"` Email string `json:"email,omitempty"` ExtendedLeadData ExtendedLeadData `json:"extendedLeadData,omitempty"` ExternId int64 `json:"externId"` FirstName string `json:"firstName,omitempty"` GateKeeper string `json:"gateKeeper,omitempty"` LastName string `json:"lastName,omitempty"` // multiple values can be submitted with a pipe delimiter between phone numbers LeadPhone string `json:"leadPhone,omitempty"` MidName string `json:"midName,omitempty"` State string `json:"state,omitempty"` Suffix string `json:"suffix,omitempty"` Title string `json:"title,omitempty"` Zip string `json:"zip,omitempty"` }
type PatchCampaignLeadOpts ¶
type SearchLeadsOpts ¶
type SuppressedType ¶
type SuppressedType struct {
Name string `json:"name,omitempty"`
}
type UpdateCampaignLeadOpts ¶
type UploadLeadsRequest ¶
type UploadLeadsRequest struct { Description string `json:"description,omitempty"` // Setting this to `IMMEDIATE` allows you to insert a lead to the top of the dialer cache for immediate dialing if you want a normal insert then do not add this parameter. DialPriority string `json:"dialPriority,omitempty"` DuplicateHandling string `json:"duplicateHandling,omitempty"` ListState string `json:"listState,omitempty"` TimeZoneOption string `json:"timeZoneOption,omitempty"` UploadLeads []CampaignLead `json:"uploadLeads,omitempty"` }
type UploadLeadsResponse ¶
type UploadLeadsResponse struct { DeletedCount int32 `json:"deletedCount"` DncReturnedCount int32 `json:"dncReturnedCount"` DncUploadCount int32 `json:"dncUploadCount"` HasDeletedLeads bool `json:"hasDeletedLeads"` InternalDncCount int32 `json:"internalDncCount"` LeadsAccepted int32 `json:"leadsAccepted"` LeadsConverted int32 `json:"leadsConverted"` LeadsInserted int32 `json:"leadsInserted"` LeadsSupplied int32 `json:"leadsSupplied"` ListState string `json:"listState"` // Values can be `Your uploaded lead list has successfully completed processing` or `Your uploaded lead list file processing has failed` Message string `json:"message"` // Values can be `OK` or `Failed` ProcessingResult string `json:"processingResult"` // Values can be `DEFAULT_NOT_A_FAILURE` or `GENERAL_FAILURE` ProcessingStatus string `json:"processingStatus"` QuotaCount int32 `json:"quotaCount"` TimeZoneOption string `json:"timeZoneOption"` UploadFileName string `json:"uploadFileName"` WhitelistCount int32 `json:"whitelistCount"` }
type User ¶
type User struct { Enabled bool `json:"enabled,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` ParentPath string `json:"parentPath,omitempty"` UserId int64 `json:"userId"` UserName string `json:"userName,omitempty"` }
Children field is still needed
type UsersApiService ¶
type UsersApiService service
Source Files ¶
- api_agents.go
- api_auth.go
- api_campaign_leads.go
- api_campaigns.go
- api_countries.go
- api_dial_groups.go
- api_users.go
- client.go
- configuration.go
- model_agent.go
- model_agent_group.go
- model_campaign.go
- model_campaign_lead.go
- model_campaign_lead_search_criteria.go
- model_campaign_lead_search_results_view.go
- model_comparable_search_field.go
- model_country.go
- model_date_time_comparable_search_field.go
- model_dial_group.go
- model_error.go
- model_extended_lead_data.go
- model_generic.go
- model_lead.go
- model_suppressed_type.go
- model_timezone.go
- model_upload_leads_request.go
- model_upload_leads_response.go
- model_user.go
- response.go