Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to use Python Shopify library to update a product

Solved

How to use Python Shopify library to update a product

joephi
Tourist
3 1 0

 

 

As the title says, I'd like to update a product using the shopify library in python. 

I have the following code:

 

 

 

 

session = shopify.Session(shop_url, api_version, shopify_token)
shopify.ShopifyResource.activate_session(session)

shop = shopify.Shop.current()
product = shopify.Product.find(product_id)
product.title = "New Title"
product.save()

 

 

 

 

However, .save() returns a code 301.

On another note, is there better documentation for the Shopify library? The github page is extremely scarce, it covers next to nothing of the library.

Accepted Solution (1)

joephi
Tourist
3 1 0

This is an accepted solution.

 

For anyone wondering, it's a DNS issue. Try the steps from this link.

 

View solution in original post

Reply 1 (1)

joephi
Tourist
3 1 0

This is an accepted solution.

 

For anyone wondering, it's a DNS issue. Try the steps from this link.