Skip to content

Commit dbc93e0

Browse files
committed
Use latest stable Shopify API version, always
1 parent 0283a54 commit dbc93e0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import (
1010
"github.com/screenstaring/shopify_id_export/exportformat"
1111
)
1212

13-
const version = "v0.0.3"
14-
15-
const shopifyAPIVersion = "2020-10"
13+
const version = "v0.0.4"
1614
const shopifyFields = "id,title,product_type,handle,variants"
1715

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

105103
if showVersion {
106-
fmt.Printf("%s (Shopify API Version %s)\n", version, shopifyAPIVersion)
104+
fmt.Printf("%s\n", version)
107105
os.Exit(0)
108106
}
109107

@@ -125,7 +123,7 @@ func main() {
125123
}
126124

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

130128
err = dumpProducts(client, dumper)
131129
dumpErr := dumper.Close()

0 commit comments

Comments
 (0)