feeds

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelFeedResponse

type CancelFeedResponse struct {
	FeedId string `json:"feedId"`
}

CancelFeedResponse represents the response from canceling a feed

type CreateFeedDocumentRequest

type CreateFeedDocumentRequest struct {
	ContentType string `json:"contentType"`
}

CreateFeedDocumentRequest represents the request for creating a feed document

type CreateFeedDocumentResponse

type CreateFeedDocumentResponse struct {
	FeedDocumentId string `json:"feedDocumentId"`
	Url            string `json:"url"`
}

CreateFeedDocumentResponse represents the response from creating a feed document

type CreateFeedRequest

type CreateFeedRequest struct {
	FeedType            string       `json:"feedType"`
	MarketplaceIds      []string     `json:"marketplaceIds"`
	InputFeedDocumentId string       `json:"inputFeedDocumentId"`
	FeedOptions         *FeedOptions `json:"feedOptions,omitempty"`
}

CreateFeedRequest represents the request for creating a feed

type CreateFeedResponse

type CreateFeedResponse struct {
	FeedId string `json:"feedId"`
}

CreateFeedResponse represents the response from creating a feed

type FeedOptions

type FeedOptions struct {
}

FeedOptions represents feed options

type FeedsAPI

type FeedsAPI struct {
	// contains filtered or unexported fields
}

FeedsAPI represents the Feeds API client

func NewFeedsAPI

func NewFeedsAPI(config *client.Configuration) *FeedsAPI

NewFeedsAPI creates a new Feeds API client

func (*FeedsAPI) CancelFeed

func (f *FeedsAPI) CancelFeed(ctx context.Context, feedId string) (*CancelFeedResponse, error)

CancelFeed cancels a feed

func (*FeedsAPI) CreateFeed

func (f *FeedsAPI) CreateFeed(ctx context.Context, request *CreateFeedRequest) (*CreateFeedResponse, error)

CreateFeed creates a new feed

func (*FeedsAPI) CreateFeedDocument

func (f *FeedsAPI) CreateFeedDocument(ctx context.Context, request *CreateFeedDocumentRequest) (*CreateFeedDocumentResponse, error)

CreateFeedDocument creates a feed document

func (*FeedsAPI) GetFeed

func (f *FeedsAPI) GetFeed(ctx context.Context, feedId string) (*GetFeedResponse, error)

GetFeed retrieves feed information

func (*FeedsAPI) GetFeedDocument

func (f *FeedsAPI) GetFeedDocument(ctx context.Context, feedDocumentId string) (*GetFeedDocumentResponse, error)

GetFeedDocument retrieves feed document information

func (*FeedsAPI) GetFeeds

func (f *FeedsAPI) GetFeeds(ctx context.Context, request *GetFeedsRequest) (*GetFeedsResponse, error)

GetFeeds retrieves a list of feeds

type GetFeedDocumentResponse

type GetFeedDocumentResponse struct {
	FeedDocumentId       string `json:"feedDocumentId"`
	Url                  string `json:"url"`
	CompressionAlgorithm string `json:"compressionAlgorithm,omitempty"`
}

GetFeedDocumentResponse represents the response from getting a feed document

type GetFeedResponse

type GetFeedResponse struct {
	FeedId               string     `json:"feedId"`
	FeedType             string     `json:"feedType"`
	MarketplaceIds       []string   `json:"marketplaceIds"`
	CreatedTime          time.Time  `json:"createdTime"`
	ProcessingStatus     string     `json:"processingStatus"`
	ProcessingStartTime  *time.Time `json:"processingStartTime,omitempty"`
	ProcessingEndTime    *time.Time `json:"processingEndTime,omitempty"`
	ResultFeedDocumentId *string    `json:"resultFeedDocumentId,omitempty"`
	FeedDocumentId       string     `json:"feedDocumentId"`
}

GetFeedResponse represents the response from getting a feed

type GetFeedsRequest

type GetFeedsRequest struct {
	FeedTypes          []string `json:"feedTypes,omitempty"`
	MarketplaceIds     []string `json:"marketplaceIds,omitempty"`
	ProcessingStatuses []string `json:"processingStatuses,omitempty"`
	CreatedSince       string   `json:"createdSince,omitempty"`
	CreatedUntil       string   `json:"createdUntil,omitempty"`
	NextToken          string   `json:"nextToken,omitempty"`
	PageSize           int      `json:"pageSize,omitempty"`
}

GetFeedsRequest represents the request for getting feeds

type GetFeedsResponse

type GetFeedsResponse struct {
	Feeds     []GetFeedResponse `json:"feeds"`
	NextToken string            `json:"nextToken,omitempty"`
}

GetFeedsResponse represents the response from getting feeds

Jump to

Keyboard shortcuts

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