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

BUG-About api_version

Open geekworm-com opened this issue 4 years ago • 0 comments

Please refer to https://github.com/robwittman/shopify-php-sdk/issues/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.

geekworm-com avatar May 09 '21 04:05 geekworm-com