Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breadcrumb ¶
type Child ¶
type Child struct { ID string `json:"id"` UUID string `json:"uuid"` Brand Brand `json:"brand"` Colorway string `json:"colorway"` Condition Condition `json:"condition"` CountryOfManufacture CountryOfManufacture `json:"countryOfManufacture"` Gender string `json:"gender"` ContentGroup ContentGroup `json:"contentGroup"` MinimumBid int64 `json:"minimumBid"` Name string `json:"name"` PrimaryCategory Brand `json:"primaryCategory"` SecondaryCategory string `json:"secondaryCategory"` UsHtsCode string `json:"usHtsCode"` UsHtsDescription string `json:"usHtsDescription"` ProductCategory ContentGroup `json:"productCategory"` ReleaseDate string `json:"releaseDate"` RetailPrice int64 `json:"retailPrice"` Shoe string `json:"shoe"` ShortDescription string `json:"shortDescription"` StyleID string `json:"styleId"` TickerSymbol string `json:"tickerSymbol"` Title string `json:"title"` DataType string `json:"dataType"` URLKey string `json:"urlKey"` SizeLocale string `json:"sizeLocale"` SizeTitle string `json:"sizeTitle"` SizeDescriptor string `json:"sizeDescriptor"` SizeAllDescriptor string `json:"sizeAllDescriptor"` Description string `json:"description"` LithiumIonBattery bool `json:"lithiumIonBattery"` Type bool `json:"type"` ALim int64 `json:"aLim"` Year int64 `json:"year"` ShippingGroup ContentGroup `json:"shippingGroup"` Traits []Trait `json:"traits"` Meta Meta `json:"meta"` PortfolioItems []interface{} `json:"PortfolioItems"` Shipping Shipping `json:"shipping"` EnhancedImage EnhancedImage `json:"enhancedImage"` Media Media `json:"media"` CharityCondition int64 `json:"charityCondition"` Breadcrumbs []Breadcrumb `json:"breadcrumbs"` Market Market `json:"market"` ParentID string `json:"parentId"` ParentUUID string `json:"parentUuid"` ShoeSize string `json:"shoeSize"` SizeSortOrder int64 `json:"sizeSortOrder"` SkuVariantGroup interface{} `json:"skuVariantGroup"` }
type ContentGroup ¶
type ContentGroup string
const (
ContentGroupSneakers ContentGroup = "sneakers"
)
type CountryOfManufacture ¶
type CountryOfManufacture string
type EnhancedImage ¶
type Market ¶
type Market struct { ProductID int64 `json:"productId"` SkuUUID *string `json:"skuUuid"` ProductUUID string `json:"productUuid"` LowestAsk int64 `json:"lowestAsk"` LowestAskSize *string `json:"lowestAskSize"` ParentLowestAsk int64 `json:"parentLowestAsk"` NumberOfAsks int64 `json:"numberOfAsks"` HasAsks *int64 `json:"hasAsks"` SalesThisPeriod int64 `json:"salesThisPeriod"` SalesLastPeriod int64 `json:"salesLastPeriod"` HighestBid int64 `json:"highestBid"` HighestBidSize *string `json:"highestBidSize"` NumberOfBids int64 `json:"numberOfBids"` HasBids *int64 `json:"hasBids"` AnnualHigh int64 `json:"annualHigh"` AnnualLow int64 `json:"annualLow"` DeadstockRangeLow int64 `json:"deadstockRangeLow"` DeadstockRangeHigh int64 `json:"deadstockRangeHigh"` Volatility float64 `json:"volatility"` DeadstockSold int64 `json:"deadstockSold"` PricePremium float64 `json:"pricePremium"` AverageDeadstockPrice int64 `json:"averageDeadstockPrice"` LastSale int64 `json:"lastSale"` LastSaleSize *string `json:"lastSaleSize"` SalesLast72Hours int64 `json:"salesLast72Hours"` ChangeValue int64 `json:"changeValue"` ChangePercentage float64 `json:"changePercentage"` AbsChangePercentage float64 `json:"absChangePercentage"` TotalDollars int64 `json:"totalDollars"` UpdatedAt int64 `json:"updatedAt"` LastLowestAskTime *int64 `json:"lastLowestAskTime"` LastHighestBidTime *int64 `json:"lastHighestBidTime"` LastSaleDate *string `json:"lastSaleDate"` CreatedAt string `json:"createdAt"` DeadstockSoldRank int64 `json:"deadstockSoldRank"` PricePremiumRank int64 `json:"pricePremiumRank"` AverageDeadstockPriceRank int64 `json:"averageDeadstockPriceRank"` Featured *int64 `json:"featured"` LowestAskFloat float64 `json:"lowestAskFloat"` HighestBidFloat float64 `json:"highestBidFloat"` }
type Meta ¶
type Meta struct { Charity bool `json:"charity"` Raffle bool `json:"raffle"` MobileOnly bool `json:"mobile_only"` Restock bool `json:"restock"` Deleted bool `json:"deleted"` Hidden bool `json:"hidden"` LockBuying bool `json:"lock_buying"` LockSelling bool `json:"lock_selling"` Redirected bool `json:"redirected"` BrowsePageFeatured bool `json:"browse_page_featured"` }
type ProductClass ¶
type ProductClass struct { ID string `json:"id"` UUID string `json:"uuid"` Brand string `json:"brand"` Colorway string `json:"colorway"` Condition Condition `json:"condition"` CountryOfManufacture CountryOfManufacture `json:"countryOfManufacture"` Gender string `json:"gender"` ContentGroup ContentGroup `json:"contentGroup"` MinimumBid int64 `json:"minimumBid"` Name string `json:"name"` PrimaryCategory string `json:"primaryCategory"` SecondaryCategory string `json:"secondaryCategory"` UsHtsCode string `json:"usHtsCode"` UsHtsDescription string `json:"usHtsDescription"` ProductCategory ContentGroup `json:"productCategory"` ReleaseDate string `json:"releaseDate"` RetailPrice int64 `json:"retailPrice"` Shoe string `json:"shoe"` ShortDescription string `json:"shortDescription"` StyleID string `json:"styleId"` TickerSymbol string `json:"tickerSymbol"` Title string `json:"title"` DataType string `json:"dataType"` URLKey string `json:"urlKey"` SizeLocale string `json:"sizeLocale"` SizeTitle string `json:"sizeTitle"` SizeDescriptor string `json:"sizeDescriptor"` SizeAllDescriptor string `json:"sizeAllDescriptor"` Description string `json:"description"` LithiumIonBattery bool `json:"lithiumIonBattery"` Type bool `json:"type"` ALim int64 `json:"aLim"` Year int64 `json:"year"` ShippingGroup ContentGroup `json:"shippingGroup"` Traits []Trait `json:"traits"` Meta Meta `json:"meta"` PortfolioItems []interface{} `json:"PortfolioItems"` Shipping Shipping `json:"shipping"` EnhancedImage EnhancedImage `json:"enhancedImage"` Media Media `json:"media"` CharityCondition int64 `json:"charityCondition"` Breadcrumbs []Breadcrumb `json:"breadcrumbs"` Market Market `json:"market"` Children map[string]Child `json:"children"` }
type StockXProductResponse ¶
type StockXProductResponse struct {
Product ProductClass `json:"Product"`
}
func FetchStockXProductData ¶
func FetchStockXProductData(id string) (*StockXProductResponse, error)
Click to show internal directories.
Click to hide internal directories.