Skip to content

Commit

Permalink
Added scaffolding for updating title
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Harwood committed Sep 2, 2020
1 parent 7465f0a commit 668bb4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helpers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package goshopify

import (
"fmt"
"io/ioutil"
"log"
"net/http"
Expand Down Expand Up @@ -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)
}
5 changes: 5 additions & 0 deletions product.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package goshopify

func SetProductTitle(handle, title string) {

}

0 comments on commit 668bb4e

Please sign in to comment.