# README
This library provides an unofficial Go client for the bigcommerce REST API
Installation:
go get github.com/seanomeara96/go-bigcommerce
bigcommerce example usage:
package main
import (
"fmt"
"github.com/joho/godotenv"
"github.com/seanomeara96/go-bigcommerce"
)
func main() {
err := godotenv.Load()
if err != nil {
panic(err)
}
storeHash := os.Getenv("STORE_HASH")
xAuthToken := os.Getenv("XAUTHTOKEN")
store := bigcommerce.NewClient(storeHash, xAuthToken)
products, err := store.V3.GetAllProducts(bigcommerce.ProductQueryParams{})
if err != nil {
if bcErr, ok := err.(*bigcommerce.BigCommerceError); ok {
fmt.Printf("BigCommerce API error: Status %d, Message: %s\n", bcErr.StatusCode, bcErr.Message)
fmt.Printf("Raw response body: %s\n", string(bcErr.RawBody))
} else {
fmt.Printf("Other error: %v\n", err)
}
}
fmt.Println(products)
}
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Constants for OrderSortDirection.
Constants for OrderSortDirection.
Constants for OrderSortField.
Constants for OrderSortField.
Constants for OrderSortField.
Constants for OrderSortField.
Constants for OrderSortField.
Constants for OrderSortField.
Constants for OrderSortField.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
AllowedContactFields is a slice containing all allowed contact fields.
AllowedPageTypes is a slice containing all allowed page types.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrderProduct represents the structure of an order product.
OrderProductAppliedDiscount represents a discount applied to the product.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SortQuery represents a sort query with field and direction.
OrderStatus represents the structure of each order status.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ProductOption represents an option applied to the product.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
OrderSortDirection represents the direction to sort (ascending or descending).
SortField represents a field that can be used to sort orders.
No description provided by the author
No description provided by the author