Documentation
¶
Index ¶
Constants ¶
const ( GLOBAL_ID_EBAY_US = "EBAY-US" GLOBAL_ID_EBAY_FR = "EBAY-FR" GLOBAL_ID_EBAY_DE = "EBAY-DE" GLOBAL_ID_EBAY_IT = "EBAY-IT" GLOBAL_ID_EBAY_ES = "EBAY-ES" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EBay ¶
type EBay struct {
ApplicationID string
HTTPRequest *httprequest.HttpRequest
}
EBay API request
func (*EBay) FindItemsByKeywords ¶
func (e *EBay) FindItemsByKeywords(globalID string, keywords string, entriesPerPage int, binOnly bool) (FindItemsResponse, error)
FindItemsByKeywords returns items matching the keyword search terms
func (*EBay) FindSoldItems ¶
func (e *EBay) FindSoldItems(globalID string, keywords string, entriesPerPage int) (FindCompletedItemsResponse, error)
FindSoldItems returns sold items by keyword
type Error ¶
type Error struct {
ErrorID string `xml:"errorId"`
Domain string `xml:"domain"`
Severity string `xml:"severity"`
Category string `xml:"category"`
Message string `xml:"message"`
SubDomain string `xml:"subdomain"`
}
Error response from EBay
type ErrorMessage ¶
ErrorMessage from EBay
type FindCompletedItemsResponse ¶
type FindCompletedItemsResponse struct {
XMLName xml.Name `xml:"findCompletedItemsResponse"`
Items []Item `xml:"searchResult>item"`
Timestamp string `xml:"timestamp"`
}
FindCompletedItemsResponse from EBay
type FindItemsResponse ¶
type FindItemsResponse struct {
XMLName xml.Name `xml:"findItemsByKeywordsResponse"`
Items []Item `xml:"searchResult>item"`
Timestamp string `xml:"timestamp"`
}
FindItemsResponse from EBay
type Item ¶
type Item struct {
ItemID string `xml:"itemId"`
Title string `xml:"title"`
Location string `xml:"location"`
CurrentPrice float64 `xml:"sellingStatus>currentPrice"`
ShippingPrice float64 `xml:"shippingInfo>shippingServiceCost"`
BinPrice float64 `xml:"listingInfo>buyItNowPrice"`
ShipsTo []string `xml:"shippingInfo>shipToLocations"`
ListingURL string `xml:"viewItemURL"`
ImageURL string `xml:"galleryURL"`
Site string `xml:"globalId"`
EndTime time.Time `xml:"listingInfo>endTime"`
}
Item for sale on EBay