Hello,
I am new in creating app in shopify please help to solve following issue:
- I have create one app in shoppify and installed phpish shopify_private_app-skeleton
- I have redirct when clicking on intall but when I try to run get_products.php file then it gives error.
Error:
phpish\shopify\CurlException: [6] Could not resolve host: https:; No data record of requested type in C:\xampplite\htdocs\app\get_products.php on line 14Array ( [method] => GET [uri] => https:/admin/products.json [query] => Array ( [published_status] => published ) [headers] => Array ( [X-Shopify-Access-Token] => [content-type] => application/json; charset=utf-8 ) [payload] => ) Array ( )
This is my Code:
'published'));
print_r($products);
}
catch (shopify\ApiException $e)
{
# HTTP status code was >= 400 or response contained the key 'errors'
echo $e;
print_r($e->getRequest());
print_r($e->getResponse());
}
catch (shopify\CurlException $e)
{
# cURL error
echo $e;
print_r($e->getRequest());
print_r($e->getResponse());
}
Hello,
I am new in creating app in shopify please help to solve following issue:
Error:
phpish\shopify\CurlException: [6] Could not resolve host: https:; No data record of requested type in C:\xampplite\htdocs\app\get_products.php on line 14Array ( [method] => GET [uri] => https:/admin/products.json [query] => Array ( [published_status] => published ) [headers] => Array ( [X-Shopify-Access-Token] => [content-type] => application/json; charset=utf-8 ) [payload] => ) Array ( )
This is my Code:
'published')); print_r($products); } catch (shopify\ApiException $e) { # HTTP status code was >= 400 or response contained the key 'errors' echo $e; print_r($e->getRequest()); print_r($e->getResponse()); } catch (shopify\CurlException $e) { # cURL error echo $e; print_r($e->getRequest()); print_r($e->getResponse()); }