phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

400 invalid_url #293

Open apatuka opened 1 year ago

apatuka commented 1 year ago

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 ?