Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 653 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 653 Bytes

bigcommerce-client-go

GoDoc

A golang BigCommerce client library.

Basic usage

import (
  bc "github.com/ashsmith/bigcommerce-api-go"
)

func main() {
  // Configure
  config := bc.App{
    StoreHash: "[your-store-hash]",
    ClientID: "[your-client-id]",
    AccessToken: "[your-access-token]",

  }

  httpClient := http.Client{}

  // Create the client.
  client := bc.NewClient(config, httpClient)

  // Make a request.
  webhook, _ := client.Webhooks.Get(123)
  fmt.Print(webhook)
}