api - how to make this call from shopify ? (GET/POST) python -


i have make call standard shopify api (python)

https://store.myshopify.com/admin/shop.json 

what getting :

ipdb> shopify.shop.current() shop(2330215) 

but :

ipdb> shopify.shop.get(2330215) *** resourcenotfound: not found:https://store.myshopify.com/admin/shops/2330215.xml 

ipdb>

what right way make such call .

as far can tell, there no /admin/shops (plural) api path, at all.

you use api per shop, shop_url parameter gives access specific shop , cannot access other shops nor need use shopify.shop.get().

the python library uses generic base class resource types, , .get() method comes from, method has no meaning shops.

the shopify.shop.current() returns 1 shop resource need care about. has .attributes attribute holds data returned shopify api; keys in mapping work attributes on main resource object:

shop = shopify.shop.current() print shop.attributes.keys() print shop.name  

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -