Go bindings for Squarespace Commerce APIs v1
Go 1.22 or higher
The package provides bindings for the following Squarespace Commerce APIs:
From your project root, run:
go get github.com/j-low/[email protected]
import (
"context"
"fmt"
"net/http"
"github.com/j-low/gocommerce/products"
)
config := common.Config{
APIKey: "my_api_key-999",
UserAgent: "my_user-agent-999",
Client: http.DefaultClient,
}
resp, err := products.DeleteProduct(ctx, &config, "some-product-id-999")
if err != nil {
return fmt.Println(err)
}
MIT License