Closed
Description
Hi,
We trying use this to interact with shopify and get access token
listing the step we followed,
- ran this 'composer require phpclassic/php-shopify' in cmd(my app)
- put the code snippet
$config = array(
'ShopUrl' => 'yourshop.myshopify.com',
'ApiKey' => 'YOUR-PRIVATE-API-KEY',
'SharedSecret' => 'YOUR-SHARED-SECRET',
);
PHPShopify\ShopifySDK::config($config);
$scopes = 'read_products,write_products,read_script_tags,write_script_tags';
$redirectUrl = 'https://yourappurl.com/your_redirect_url.php';
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl);
$accessToken = \PHPShopify\AuthHelper::getAccessToken();
We are not getting any response .
Is any step we missed??
Please help
Metadata
Metadata
Assignees
Labels
No labels