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

How to set api version? #43

Open
usfox opened this issue Feb 18, 2020 · 2 comments
Open

How to set api version? #43

usfox opened this issue Feb 18, 2020 · 2 comments

Comments

@usfox
Copy link

usfox commented Feb 18, 2020

Hi,

Thank you code, But I use your code have a question, New API version is 2020-01, but I call you SDK, Return is an error, How to use API version in this SDK?

PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://xxxx.myshopify.com/admin/api/products.json resulted in a 404 Not Found response:

@gomcodoctor
Copy link

gomcodoctor commented Feb 29, 2020

use

$client = new PrivateApi(array(
                'api_version' => '2020-01/',
                'api_key' => 'SHOPIFY_USERNAME',
                'password' => 'SHOPIFY_PASSOWORD',
                'shared_secret' => '',
                'myshopify_domain' => 'SHOPFIY_STORENAME'
            ));

see slash ... there is bug in code so we have to use slash in api_version

@IsaiahN
Copy link

IsaiahN commented Oct 14, 2020

@gomcodoctor - Thanks, that worked

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

3 participants