bulk

package
v0.0.0-...-0aae09f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountField

type AccountField Field

type AccountFieldSearchResponse

type AccountFieldSearchResponse struct {
	Count        int            `json:"count,omitempty"`
	HasMore      bool           `json:"hasMore,omitempty"`
	Items        []AccountField `json:"items,omitempty"`
	Limit        int            `json:"limit,omitempty"`
	Offset       int            `json:"offset,omitempty"`
	TotalResults int64          `json:"totalResults,omitempty"`
}

type AccountInfo

type AccountInfo struct {
	Site Site `json:"site,omitempty"`
	Urls Urls `json:"urls,omitempty"`
}

func GetAccountInfo

func GetAccountInfo(username, password string) (*AccountInfo, error)

type AccountsService

type AccountsService service

func (*AccountsService) CreateExport

func (s *AccountsService) CreateExport(ctx context.Context, export *Export) (*Export, error)

func (*AccountsService) DeleteExport

func (s *AccountsService) DeleteExport(ctx context.Context, id int) (*http.Response, error)

func (*AccountsService) DeleteExportData

func (s *AccountsService) DeleteExportData(ctx context.Context, id int) (*http.Response, error)

func (*AccountsService) GetFields

type ActivityExportSearchResponse

type ActivityExportSearchResponse struct {
	Count        int      `json:"count,omitempty"`
	HasMore      bool     `json:"hasMore,omitempty"`
	Items        []Export `json:"items,omitempty"`
	Limit        int      `json:"limit,omitempty"`
	Offset       int      `json:"offset,omitempty"`
	TotalResults int64    `json:"totalResults,omitempty"`
}

type ActivityField

type ActivityField struct {
	// The list of activity types that the field exists on
	ActivityTypes []string `json:"activityTypes,omitempty"`

	Field
}

type ActivityFieldListQueryOptions

type ActivityFieldListQueryOptions struct {
	// The activity type to filter results
	ActivityType string `url:"activityType,omitempty"`

	QueryOptions
}

type ActivityFieldSearchResponse

type ActivityFieldSearchResponse struct {
	Count        int             `json:"count,omitempty"`
	HasMore      bool            `json:"hasMore,omitempty"`
	Items        []ActivityField `json:"items,omitempty"`
	Limit        int             `json:"limit,omitempty"`
	Offset       int             `json:"offset,omitempty"`
	TotalResults int64           `json:"totalResults,omitempty"`
}

type Apis

type Apis struct {
	Soap Soap `json:"soap,omitempty"`
	Rest Rest `json:"rest,omitempty"`
}

type BulkClient

type BulkClient struct {

	// Services used for talking with different parts of Eloqua API
	Activities *ActivitiesService
	Accounts   *AccountsService
	Cdos       *CdosService
	Contacts   *ContactsService
	Syncs      *SyncsService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(bulkURL string, httpClient *http.Client) *BulkClient

func (*BulkClient) Do

func (c *BulkClient) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error)

Do sends an API request and returns the API response

func (*BulkClient) NewRequest

func (c *BulkClient) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)

type Cdo

type Cdo struct {
	Name                 string `json:name`
	DisplayNameFieldUri  string `json:displayNameFieldUri`
	EmailAddressFieldUri string `json:emailAddressFieldUri`
	UniqueFieldUri       string `json:uniqueFieldUri`
	Uri                  string `json:uri`
	CreatedBy            string `json:createdBy`
	CreatedAt            string `json:createdAt`
	UpdatedBy            string `json:createdBy`
	UpdatedAt            string `json:updatedAt`
}

type CdoField

type CdoField Field

type CdoFieldSearchResponse

type CdoFieldSearchResponse struct {
	Count        int        `json:"count,omitempty"`
	HasMore      bool       `json:"hasMore,omitempty"`
	Items        []CdoField `json:"items,omitempty"`
	Limit        int        `json:"limit,omitempty"`
	Offset       int        `json:"offset,omitempty"`
	TotalResults int64      `json:"totalResults,omitempty"`
}

type CdoSearchResponse

type CdoSearchResponse struct {
	Count        int   `json:"count,omitempty"`
	HasMore      bool  `json:"hasMore,omitempty"`
	Items        []Cdo `json:"items,omitempty"`
	Limit        int   `json:"limit,omitempty"`
	Offset       int   `json:"offset,omitempty"`
	TotalResults int64 `json:"totalResults,omitempty"`
}

type ContactField

type ContactField Field

type ContactFieldSearchResponse

type ContactFieldSearchResponse struct {
	Count        int            `json:"count,omitempty"`
	HasMore      bool           `json:"hasMore,omitempty"`
	Items        []ContactField `json:"items,omitempty"`
	Limit        int            `json:"limit,omitempty"`
	Offset       int            `json:"offset,omitempty"`
	TotalResults int64          `json:"totalResults,omitempty"`
}

type ContactsService

type ContactsService service

func (*ContactsService) CreateExport

func (s *ContactsService) CreateExport(ctx context.Context, export *Export) (*Export, error)

func (*ContactsService) DeleteExport

func (s *ContactsService) DeleteExport(ctx context.Context, id int) (*http.Response, error)

func (*ContactsService) DeleteExportData

func (s *ContactsService) DeleteExportData(ctx context.Context, id int) (*http.Response, error)

func (*ContactsService) GetFields

func (*ContactsService) ListLeadModels

func (s *ContactsService) ListLeadModels(ctx context.Context) (*LeadModelsSearchResponse, error)

type Export

type Export struct {
	AreSystemTimestampsInUTC bool              `json:"areSystemTimestampsInUTC,omitempty"`
	AutoDeleteDuration       string            `json:"autoDeleteDuration,omitempty"`
	CreatedAt                string            `json:"createdAt,omitempty"`
	CreatedBy                string            `json:"createdBy,omitempty"`
	DataRetentionDuration    string            `json:"dataRetentionDuration,omitempty"`
	Name                     string            `json:"name,omitempty"`
	Fields                   map[string]string `json:"fields,omitempty"`
	Filter                   string            `json:"filter,omitempty"`
	KbUsed                   uint              `json:"kbUsed,omitempty"`
	MaxRecords               uint              `json:"maxRecords,omitempty"`
	UpdatedAt                string            `json:"updatedAt,omitempty"`
	UpdatedBy                string            `json:"updatedBy,omitempty"`
	Uri                      string            `json:"uri,omitempty"`
}

Export represents Eloqua export definition

type Field

type Field struct {
	Name                    string `json:"name"`
	InternalName            string `json:"internalName,omitempty"`
	DataType                string `json:"dataType"`
	HasReadOnlyConstraint   bool   `json:"hasReadOnlyConstrainti"`
	HasNotNullConstraint    bool   `json:"hasNotNullConstraint"`
	HasUniquenessConstraint bool   `json:"hasUniquenessConstraint"`
	Statement               string `json:"statement"`
	Uri                     string `json:"uri,omitempty"`
	CreatedAt               string `json:"createdAt,omitempty"`
	UpdatedAt               string `json:"updatedAt,omitempty"`
}

type Item

type Item map[string]string

type LeadModel

type LeadModel struct {
	Name      string  `json:"name,omitempty"`
	Status    string  `json:"status,omitempty"`
	Id        int     `json:"id,omitempty"`
	Fields    []Field `json:"fields,omitempty"`
	Uri       string  `json":uri,omitempty"`
	CreatedAt string  `json:"createdAt,omitempty"`
	CreatedBy string  `json:"createdBy,omitempty"`
	UpdatedAt string  `json:"updatedAt,omitempty"`
	UpdatedBy string  `json:"updatedBy,omitempty"`
}

type LeadModelsSearchResponse

type LeadModelsSearchResponse struct {
	Count        int         `json:"count,omitempty"`
	HasMore      bool        `json:"hasMore,omitempty"`
	Items        []LeadModel `json:"items,omitempty"`
	Limit        int         `json:"limit,omitempty"`
	Offset       int         `json:"offset,omitempty"`
	TotalResults int64       `json:"totalResults,omitempty"`
}

type QueryOptions

type QueryOptions struct {
	// Specifies the maximum number of records to return.
	// If not specified, the default it 1000.
	Limit int `url:"limit,omitempty"`

	Links string `url:"links,omitempty"`

	// Specifies an offset that allows you to retrieve
	// the next batch of records. Any positive integer.
	// If not specified the default is 0.
	Offset int `url:"offset,omitempty"`

	// Specified whether Total number of sync results found should be returned.
	// If not specified, the default is true.
	TotalResults bool `url:"totalResults,omitempty"`
}

type Rest

type Rest struct {
	Standard string `json:"standard,omitempty"`
	Bulk     string `json:"bulk,omitempty"`
}

type Site

type Site struct {
	Id   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Soap

type Soap struct {
	Standard       string `json:"standard,omitempty"`
	DataTransfer   string `json:"dataTransfer,omitempty"`
	Email          string `json:"email,omitempty"`
	ExternalAction string `json:"externalAction,omitempty"`
}

type Sync

type Sync struct {
	CallbackURL       string `json:"callbackUrl,omitempty"`
	CreatedAt         string `json:"createdAt,omitempty"`
	CreatedBy         string `json:"createdBy,omitempty"`
	Status            string `json:"status,omitempty"`
	SyncedInstanceURI string `json:"syncedInstanceUri,omitempty"`
	SyncedEndAt       string `json:"syncedEndAt,omitempty"`
	SyncStartedAt     string `json:"syncedStartedAt,omitempty"`
	Uri               string `json:"uri,omitempty"`
}

type SyncDataQueryResponse

type SyncDataQueryResponse struct {
	Count        int    `json:"count,omitempty"`
	HasMore      bool   `json:"hasMore,omitempty"`
	Items        []Item `json:"items,omitempty"`
	Limit        int    `json:"limit,omitempty"`
	Offset       int    `json:"offset,omitempty"`
	TotalResults int64  `json:"totalResults,omitempty"`
}

type SyncLog

type SyncLog struct {
	SyncURI    string `json:"syncUri"`
	Count      int    `json:"count"`
	Severity   string `json:"serverity"`
	StatusCode string `json:"statusCode"`
	Message    string `json:"message"`
	CreatedAt  string `json:"createdAt"`
}

type Urls

type Urls struct {
	Base string `json:"base,omitempty"`
	Apis Apis   `json:"apis,omitempty"`
}

Jump to

Keyboard shortcuts

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