Skip to content

Commit

Permalink
Use latest stable Shopify API version, always
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Jan 1, 2023
1 parent 0283a54 commit dbc93e0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import (
"github.com/screenstaring/shopify_id_export/exportformat"
)

const version = "v0.0.3"

const shopifyAPIVersion = "2020-10"
const version = "v0.0.4"
const shopifyFields = "id,title,product_type,handle,variants"

const usage = `shopify_id_export [hjv] [-k key] [-p password] [-r root-property] [-t token] shop
Expand Down Expand Up @@ -103,7 +101,7 @@ func main() {
argv := flag.Args()

if showVersion {
fmt.Printf("%s (Shopify API Version %s)\n", version, shopifyAPIVersion)
fmt.Printf("%s\n", version)
os.Exit(0)
}

Expand All @@ -125,7 +123,7 @@ func main() {
}

app := shopify.App{ApiKey: key, Password: password}
client := shopify.NewClient(app, argv[0], token, shopify.WithVersion(shopifyAPIVersion))
client := shopify.NewClient(app, argv[0], token)

err = dumpProducts(client, dumper)
dumpErr := dumper.Close()
Expand Down

0 comments on commit dbc93e0

Please sign in to comment.