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

phpish\shopify\ApiException: [401] Unauthorized #40

Open
dmarkKd opened this issue Sep 15, 2017 · 4 comments
Open

phpish\shopify\ApiException: [401] Unauthorized #40

dmarkKd opened this issue Sep 15, 2017 · 4 comments

Comments

@dmarkKd
Copy link

dmarkKd commented Sep 15, 2017

When am try to get product error throw "https://logicats-demo.myshopify.com/apps/products"
here is my link to get the product list.

@myjanky
Copy link

myjanky commented Sep 15, 2017

Warning: json_decode() expects parameter 1 to be string, array given in /app/get_products.php on line 20

Can you post your file that loads for the get_products.php? Line 20 has a json_decode that is not getting a string.

@dmarkKd
Copy link
Author

dmarkKd commented Sep 16, 2017

thanks for reply i will fixed this issue

@dmarkKd
Copy link
Author

dmarkKd commented Sep 16, 2017

is there any solution to edit shopify liquid template using my public app????

@myjanky
Copy link

myjanky commented Sep 18, 2017

Yes. https://help.shopify.com/api/reference/asset

use the asset object after getting the ID of the theme you want to modify. (you can check which theme is published, get the ID and then get a list of that theme's assets.)

Although if you are just wanting to put some JS in there look at the scripttag API.

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

2 participants