engagevoice

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 21 Imported by: 0

README

Go API client for engagevoice

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./engagevoice"

Documentation for API Endpoints

All URIs are relative to https://portal.vacd.biz/api/v1

Class Method HTTP request Description
AgentsApi GetAgentGroups Get /admin/accounts/{accountId}/agentGroups Get Agent Groups
AgentsApi GetAgents Get /admin/accounts/{accountId}/agentGroups/{agentGroupId}/agents Get Group Agents
AuthApi GetTokens Get /admin/token Get Tokens
CampaignLeadsApi GetLeadStates Get /admin/accounts/{accountId}/campaignLeads/leadStates Get Lead States
CampaignLeadsApi GetSystemDispositions Get /admin/accounts/{accountId}/campaignLeads/systemDispositions Get Systems Dispositions
CampaignLeadsApi SearchLeads Post /admin/accounts/{accountId}/campaignLeads/leadSearch Search Leads
CampaignsApi PatchCampaignLead Patch /admin/accounts/{accountId}/campaignLeads/{leadId} Patch Campaign Lead
CampaignsApi UpdateCampaignLead Put /admin/accounts/{accountId}/campaignLeads/{leadId} Update Campaign Lead
CampaignsApi UploadLeads Post /admin/accounts/{accountId}/campaigns/{campaignId}/leadLoader/direct Upload Leads
CountriesApi GetAvailableCountries Get /admin/accounts/{accountId}/countries/available Get Available Countries
DialGroupsApi ClearCampaignCache Post /admin/accounts/{accountId}/dialGroups/{dialGroupId}/campaigns/{campaignId}/clearCache Clear Campaign Cache
DialGroupsApi GetCampaigns Get /admin/accounts/{accountId}/dialGroups/{dialGroupId}/campaigns Get Campaigns
DialGroupsApi GetDialGroups Get /admin/accounts/{accountId}/dialGroups Get Dial Groups
UsersApi GetUsers Get /admin/users Get Users

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

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

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

func (*APIClient) HTTPClient

func (apiClient *APIClient) HTTPClient() *http.Client

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

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

func (*AuthApiService) GetTokens

func (a *AuthApiService) GetTokens(ctx context.Context) ([]string, *http.Response, error)

AuthApiService Get Tokens Retrieves all API Tokens for the authenticated user

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []string

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 ComparableSearchField struct {
	// Values can be `>`, `<` and `=`
	Operator string `json:"operator,omitempty"`
	Value    string `json:"value,omitempty"`
}

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 DateTimeComparableSearchField

type DateTimeComparableSearchField struct {
	// Values can be `>`, `<` and `=`
	Operator string    `json:"operator,omitempty"`
	Value    time.Time `json:"value,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 Error

type Error struct {
	Details        string `json:"details,omitempty"`
	GeneralMessage string `json:"generalMessage,omitempty"`
	RequestUri     string `json:"requestUri,omitempty"`
	Timestamp      int64  `json:"timestamp,omitempty"`
}

type ExtendedLeadData

type ExtendedLeadData struct {
	Important  string `json:"important,omitempty"`
	Interested bool   `json:"interested,omitempty"`
}

type Generic

type Generic struct {
	Description string `json:"description,omitempty"`
	Id          int64  `json:"id,omitempty"`
}

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 PatchCampaignLeadOpts struct {
	ListId            optional.Int32
	TimezoneOption    optional.String
	DuplicateHandling optional.String
}

type SearchLeadsOpts

type SearchLeadsOpts struct {
	Count   optional.Int32
	Page    optional.Int32
	MaxRows optional.Int32
}

type SuppressedType

type SuppressedType struct {
	Name string `json:"name,omitempty"`
}

type Timezone

type Timezone struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
}

type UpdateCampaignLeadOpts

type UpdateCampaignLeadOpts struct {
	ListId            optional.Int32
	TimezoneOption    optional.String
	DuplicateHandling optional.String
}

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

func (*UsersApiService) GetUsers

func (a *UsersApiService) GetUsers(ctx context.Context) ([]User, *http.Response, error)

UsersApiService Get Users Returns a listing of all users that a user has access to

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return []User

Jump to

Keyboard shortcuts

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