Skip to content

j-low/gocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/[email protected]

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