diff --git a/conf.php b/conf.php index 503eb40..e4d6aad 100644 --- a/conf.php +++ b/conf.php @@ -2,3 +2,4 @@ define('SHOPIFY_APP_API_KEY', ''); define('SHOPIFY_APP_SHARED_SECRET', ''); + define('REDIRECT_URI', ''); diff --git a/oauth.php b/oauth.php index e299f44..e416d9e 100644 --- a/oauth.php +++ b/oauth.php @@ -14,7 +14,7 @@ # Step 2: http://docs.shopify.com/api/authentication/oauth#asking-for-permission if (!isset($_GET['code'])) { - $permission_url = shopify\authorization_url($_GET['shop'], SHOPIFY_APP_API_KEY, array('read_content', 'write_content', 'read_themes', 'write_themes', 'read_products', 'write_products', 'read_customers', 'write_customers', 'read_orders', 'write_orders', 'read_script_tags', 'write_script_tags', 'read_fulfillments', 'write_fulfillments', 'read_shipping', 'write_shipping')); + $permission_url = shopify\authorization_url($_GET['shop'], SHOPIFY_APP_API_KEY, array('read_content', 'write_content', 'read_themes', 'write_themes', 'read_products', 'write_products', 'read_customers', 'write_customers', 'read_orders', 'write_orders', 'read_script_tags', 'write_script_tags', 'read_fulfillments', 'write_fulfillments', 'read_shipping', 'write_shipping'), REDIRECT_URI); die(""); } @@ -46,4 +46,4 @@ } -?> \ No newline at end of file +?>