Skip to content

Regarding getting product information #9

@vowel17

Description

@vowel17

Hello,
I am new in creating app in shopify please help to solve following issue:

  1. I have create one app in shoppify and installed phpish shopify_private_app-skeleton
  2. 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()); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions