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/gocommerce@v1.0.1
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