Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 invalid_url #293

Open
apatuka opened this issue Mar 16, 2023 · 0 comments
Open

400 invalid_url #293

apatuka opened this issue Mar 16, 2023 · 0 comments

Comments

@apatuka
Copy link

apatuka commented Mar 16, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant