Are private apps in Python script not updating after April 2021?

Are private apps in Python script not updating after April 2021?

sorin147
New Member
5 0 0

Hello,

I have a Python script in charge of updating price and qty for all the products in the store (of course, if there's something to change).
Recently, there was a message that private apps will stop working after April, 2021. OK, gone back to the script , update it here and there, send it back and linked to a newly private app with API version 2020-10. The message reappeared.

The logic and requests of the script are:

https://%s:%s@%s.myshopify.com/admin/variants.json?fields=id,product_id,sku,inventory_quantity,price... -> this is the first request for the variants, after that, since_id is used to get the rest of them

https://%s:%s@%s.myshopify.com/admin/variants.json?fields=id,product_id,sku,inventory_quantity,price,inventory_item_id&limit=250&since_id=

 

To update the qty this command is used:

shopify.InventoryLevel.set(location_id = location, inventory_item_id= inventoryItemID, available=newQty)

 

Price is updated like this:

variant = shopify.Variant.find(variantID)
variant.price = newPrice
variant.save()

 

I tried to find where's the problem but I couldn't find anything.

The script, as it is, it's doing the right thing. It's set up to run @ 15 min interval and there's no error in its execution.

What should I do to get rid of that message? (ignoring it it's not an option 🙂 )

 

Thanks

Sorin

 

Reply 1 (1)

sorin147
New Member
5 0 0

Solved:

How I did it: here

What I did: ../admin/..    became      ../admin/api/2020-10/..