From 668bb4e5acad1172d7e87fde074c92df8edbb3f8 Mon Sep 17 00:00:00 2001 From: Matt Harwood Date: Wed, 2 Sep 2020 16:01:26 +0100 Subject: [PATCH] Added scaffolding for updating title --- helpers.go | 7 ++++++- product.go | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 product.go diff --git a/helpers.go b/helpers.go index 3f8a43f..84c7076 100644 --- a/helpers.go +++ b/helpers.go @@ -1,6 +1,7 @@ package goshopify import ( + "fmt" "io/ioutil" "log" "net/http" @@ -40,5 +41,9 @@ func queryPost(url, body string) { client := &http.Client{} req, err := http.NewRequest("POST", url, strings.NewReader(body)) - + resp, err := client.Do(req) + if err != nil { + log.Fatalln(err) + } + fmt.Println(resp) } diff --git a/product.go b/product.go new file mode 100644 index 0000000..2b1967d --- /dev/null +++ b/product.go @@ -0,0 +1,5 @@ +package goshopify + +func SetProductTitle(handle, title string) { + +}