Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func main() {
// for app development, you need to provide arguments
// for CLI and other web apps you can use empty strings
client := bigcommerce.NewClient("** my store's hash like '123abcdefg' **", "**my X-Auth-Token generated in BigCommerce admin**")
products, err := client.GetAllProducts()
products, err := client.GetAllProducts(map[string]string{})
if err != nil {
log.Fatalf("Error while getting products: %v", err)
}
Expand Down
6 changes: 3 additions & 3 deletions products.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ type Product struct {
RetailPrice float64 `json:"retail_price,omitempty"`
MapPrice float64 `json:"map_price,omitempty"`
Weight float64 `json:"weight,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Depth int `json:"depth,omitempty"`
Width float64 `json:"width,omitempty"`
Height float64 `json:"height,omitempty"`
Depth float64 `json:"depth,omitempty"`
IsFreeShipping bool `json:"is_free_shipping,omitempty"`
FixedCostShippingPrice float64 `json:"fixed_cost_shipping_price,omitempty"`
CalculatedWeight float64 `json:"calculated_weight,omitempty"`
Expand Down