A space to discuss online store customization, theme development, and Liquid templating.
hey guys i'm trying to add featured image for my blog articles using python api
something like this
img = shopify.Image(dict(article_id=83503120552))
img.src='https://cdn.shopify.com/s/files/1/0590/9862/8264/t/16/assets/cafecubanocubancoffeerecipeasassyspoon4-1643921321008.jpg?v=1643921337'
img.save()
above code clearly doesnt work, and i cant find any relevant topic from anywhere.
Thanks!
Im waiting for the same answer. I hope somebody can help us soon. Im using the below code and the article creates but without the image.
new_article = shopify.Article(
{
"blog_id": 84588953792,
"title": title,
"body_html": body_html,
"author": "hit-parader",
"image": {
"src": imageSRC,
"Alt": "image92"
},
"tags": tags })
new_article.save()