Last active
May 26, 2020 09:06
-
-
Save keidarcy/789bfd245ce965f1b9801a1ac65011df to your computer and use it in GitHub Desktop.
Update OAuth scopes for Shopify app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// reference:https://shopify.dev/tutorials/authenticate-with-oauth | |
// This will redirect to app update page | |
// This is laravel version | |
$shop = YOUR_SHOP_DOMAIN; | |
$scopes = config('shopify-app.api_scopes'); | |
$api_key = config('shopify-app.api_key'); | |
// 'https://homestead.test/authenticate' | |
$redirect = AUTHENTICATE_URL_IN_PARNTER_PAGE; | |
$url = 'https://'. $shop .'.myshopify.com/admin/oauth/authorize?client_id='.$api_key.'&scope='.$scopes.'&redirect_uri='.$redirect; | |
dd($url); | |
return redirect($url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment