Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.25 KB

gocommerce

Go bindings for Squarespace Commerce APIs v1

Requirements

Go 1.22 or higher

Available APIs

The package provides bindings for the following Squarespace Commerce APIs:

Installation

From your project root, run:

go get github.com/j-low/gocommerce@v1.0.1

Usage

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)
}

License

MIT License