php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

400 invalid_url

Open apatuka opened this issue 1 year ago • 0 comments

I created my app `<?php require('vendor/autoload.php');

$config = array(
'ShopUrl' => '*******',
'ApiKey' => '*******',
'Password' => '*******',   
'Curl' => array(
    CURLOPT_TIMEOUT => 10,
    CURLOPT_FOLLOWLOCATION => true
    )
);

PHPShopify\ShopifySDK::config($config);

$scopes = 'read_products,write_products';
$redirectUrl = 'http://localhost:81/shopify/app.php';
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl);

?>` and it shows this: https://tienda-del-reino.myshopify.com/admin/oauth/authorize?client_id=d31405c84dfa1d9d04f9473074c00a94&redirect_uri=http://localhost:81/shopify/app.php&scope=read_products,write_products

What im doing wrong ?

apatuka avatar Mar 16 '23 23:03 apatuka