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

BUG-About api_version #61

Open
geekworm-com opened this issue May 9, 2021 · 0 comments
Open

BUG-About api_version #61

geekworm-com opened this issue May 9, 2021 · 0 comments

Comments

@geekworm-com
Copy link

geekworm-com commented May 9, 2021

Please refer to #43

PrivateApi.php, Line 32;

 $args = array(
            'base_uri' => sprintf(
                "https://%s/admin/api/%s",
                $this->myshopify_domain,
                $this->getApiVersion()
            ),
            'headers' => array(
                'Authorization' => $this->createBasicAuthHeader(
                    $this->api_key,
                    $this->password
                )
            )
        );

Fix:

 $args = array(
            'base_uri' => sprintf(
                "https://%s/admin/api/%s/",
                $this->myshopify_domain,
                $this->getApiVersion()
            ),
            'headers' => array(
                'Authorization' => $this->createBasicAuthHeader(
                    $this->api_key,
                    $this->password
                )
            )
        );

Only add a slash on line 32.

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