Skip to content

Not getting any access tooken #3

Closed
@divyasunil

Description

@divyasunil

Hi,

We trying use this to interact with shopify and get access token

listing the step we followed,

  1. ran this 'composer require phpclassic/php-shopify' in cmd(my app)
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions