Documentation ¶
Index ¶
- type AccountField
- type AccountFieldSearchResponse
- type AccountInfo
- type AccountsService
- func (s *AccountsService) CreateExport(ctx context.Context, export *Export) (*Export, error)
- func (s *AccountsService) DeleteExport(ctx context.Context, id int) (*http.Response, error)
- func (s *AccountsService) DeleteExportData(ctx context.Context, id int) (*http.Response, error)
- func (s *AccountsService) GetFields(ctx context.Context) (*AccountFieldSearchResponse, error)
- type ActivitiesService
- func (s *ActivitiesService) CreateExport(ctx context.Context, export *Export) (*Export, error)
- func (s *ActivitiesService) DeleteExport(ctx context.Context, id int) (*http.Response, error)
- func (s *ActivitiesService) DeleteExportData(ctx context.Context, id int) (*http.Response, error)
- func (s *ActivitiesService) ListExports(ctx context.Context) (*ActivityExportSearchResponse, error)
- func (s *ActivitiesService) ListFields(ctx context.Context, opt *ActivityFieldListQueryOptions) (*ActivityFieldSearchResponse, error)
- type ActivityExportSearchResponse
- type ActivityField
- type ActivityFieldListQueryOptions
- type ActivityFieldSearchResponse
- type Apis
- type BulkClient
- type Cdo
- type CdoField
- type CdoFieldSearchResponse
- type CdoSearchResponse
- type CdosService
- type ContactField
- type ContactFieldSearchResponse
- type ContactsService
- func (s *ContactsService) CreateExport(ctx context.Context, export *Export) (*Export, error)
- func (s *ContactsService) DeleteExport(ctx context.Context, id int) (*http.Response, error)
- func (s *ContactsService) DeleteExportData(ctx context.Context, id int) (*http.Response, error)
- func (s *ContactsService) GetFields(ctx context.Context) (*ContactFieldSearchResponse, error)
- func (s *ContactsService) ListLeadModels(ctx context.Context) (*LeadModelsSearchResponse, error)
- type Export
- type Field
- type Item
- type LeadModel
- type LeadModelsSearchResponse
- type QueryOptions
- type Rest
- type Site
- type Soap
- type Sync
- type SyncDataQueryResponse
- type SyncLog
- type SyncsService
- type Urls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountField ¶
type AccountField Field
type AccountInfo ¶
func GetAccountInfo ¶
func GetAccountInfo(username, password string) (*AccountInfo, error)
type AccountsService ¶
type AccountsService service
func (*AccountsService) CreateExport ¶
func (*AccountsService) DeleteExport ¶
func (*AccountsService) DeleteExportData ¶
func (*AccountsService) GetFields ¶
func (s *AccountsService) GetFields(ctx context.Context) (*AccountFieldSearchResponse, error)
type ActivitiesService ¶
type ActivitiesService service
func (*ActivitiesService) CreateExport ¶
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-activities-exports-post.html
func (*ActivitiesService) DeleteExport ¶
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-activities-exports-id-delete.html
func (*ActivitiesService) DeleteExportData ¶
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-activities-exports-id-data-delete.html
func (*ActivitiesService) ListExports ¶
func (s *ActivitiesService) ListExports(ctx context.Context) (*ActivityExportSearchResponse, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-activities-exports-get.html
func (*ActivitiesService) ListFields ¶
func (s *ActivitiesService) ListFields(ctx context.Context, opt *ActivityFieldListQueryOptions) (*ActivityFieldSearchResponse, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-activities-fields-get.html
type ActivityField ¶
type ActivityFieldListQueryOptions ¶
type ActivityFieldListQueryOptions struct { // The activity type to filter results ActivityType string `url:"activityType,omitempty"` QueryOptions }
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 (*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 CdoFieldSearchResponse ¶
type CdoSearchResponse ¶
type CdosService ¶
type CdosService service
func (*CdosService) CreateExport ¶
func (s *CdosService) CreateExport(ctx context.Context, parentId int, export *Export) (*Export, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-customobjects-parentid-exports-post.html
func (*CdosService) List ¶
func (s *CdosService) List(ctx context.Context) (*CdoSearchResponse, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-customobjects-get.html
func (*CdosService) ListFields ¶
func (s *CdosService) ListFields(ctx context.Context, parentId int) (*CdoFieldSearchResponse, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-customobjects-parentid-fields-get.html
type ContactField ¶
type ContactField Field
type ContactsService ¶
type ContactsService service
func (*ContactsService) CreateExport ¶
func (*ContactsService) DeleteExport ¶
func (*ContactsService) DeleteExportData ¶
func (*ContactsService) GetFields ¶
func (s *ContactsService) GetFields(ctx context.Context) (*ContactFieldSearchResponse, error)
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 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 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 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 SyncsService ¶
type SyncsService service
func (*SyncsService) Create ¶
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-syncs-post.html
func (*SyncsService) Get ¶
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-syncs-id-get.html
func (*SyncsService) GetData ¶
func (s *SyncsService) GetData(ctx context.Context, id int, opt *QueryOptions) (*SyncDataQueryResponse, error)
Eloqua API docs: https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/op-api-bulk-2.0-syncs-id-data-get.html