From c2e2752755c8bfdb5f65ddb2210a70374b78a5e1 Mon Sep 17 00:00:00 2001 From: Chip Keyes Date: Wed, 15 May 2019 18:40:29 -0700 Subject: [PATCH] Fixed Bug with backwards compatibility and api version (#53) Fix back compatibility bug where not passing in the optional WithVersion option causes the globalApiPathPrefix to be an empty string instead of admin --- goshopify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goshopify.go b/goshopify.go index 42dbbcdc..d523ec66 100644 --- a/goshopify.go +++ b/goshopify.go @@ -23,8 +23,8 @@ const ( ) var ( - // Shopify API version YYYY-MM - globalApiPathPrefix string + // Shopify API version YYYY-MM - defaults to admin which uses the oldest stable version of the api + globalApiPathPrefix string = "admin" ) // App represents basic app settings such as Api key, secret, scope, and redirect url.