python-shopee icon indicating copy to clipboard operation
python-shopee copied to clipboard

AttributeError: 'Item' object has no attribute 'unlist'

Open techieshop opened this issue 4 years ago • 4 comments

I've been trying out this pyshopee lib that works great so far. It works well for me the retrieve listing from shopee.

When I want to try the unlist function, I stucked here, it looks with the following error.

-- my code -- client = pyshopee.Client( shopid, partnerid, API_key ) unlist_items = "{ [ "item_id" : 1679064428, "unlist" : True ] }" client.item.unlist(unlist_items)


AttributeError: 'Item' object has no attribute 'unlist'

Could you provide a sample how this part should be coded or whatever? Many thanks.

techieshop avatar Apr 11 '20 07:04 techieshop

Hi Dennis,

It seems like I have not add this function in py shopee yet. I will add this ASAP. Besides, thanks for your support for this project, I am glad that it would help you.

Best regards Jim

Dennis Chan [email protected]於 2020年4月11日 週六,下午3:13寫道:

I've been trying out this pyshopee lib that works great so far. It works well for me the retrieve listing from shopee.

When I want to try the unlist function, I stucked here, it looks with the following error.

-- my code -- client = pyshopee.Client( shopid, partnerid, API_key ) unlist_items = "{ [ "item_id" : 1679064428, "unlist" : True ] }" client.item.unlist(unlist_items)

AttributeError: 'Item' object has no attribute 'unlist'

Could you provide a sample how this part should be coded or whatever? Many thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JimCurryWang/python-shopee/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIFXTJMN4QEAMNS2HLMXJLRMAKAZANCNFSM4MF4RCRA .

JimCurryWang avatar Apr 11 '20 07:04 JimCurryWang

Jim, thanks for your effort. your lib is very reliable and simple to use.

techieshop avatar Apr 11 '20 10:04 techieshop

Hi Dennis,

After I search the doc, the unlist function is unlist_item not* unlist*. So, you can try the following method below.

1234client = pyshopee.Client( shopid, partnerid, API_key )unlist_items = "{ [ "item_id" : 1679064428, "unlist" : True ] }"client.item.unlist_item(unlist_items)

Best Jim

Dennis Chan [email protected] 於 2020年4月11日 週六 下午6:50寫道:

Jim, thanks for your effort. your lib is very reliable and simple to use.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JimCurryWang/python-shopee/issues/27#issuecomment-612391747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIFXTNOI7MPRK43XMVY7RTRMBDP3ANCNFSM4MF4RCRA .

JimCurryWang avatar Apr 12 '20 02:04 JimCurryWang

Hi Dennis, After I search the doc, the unlist function is unlist_item not* unlist*. So, you can try the following method below. 1234client = pyshopee.Client( shopid, partnerid, API_key )unlist_items = "{ [ "item_id" : 1679064428, "unlist" : True ] }"client.item.unlist_item(unlist_items) Best Jim Dennis Chan [email protected] 於 2020年4月11日 週六 下午6:50寫道: Jim, thanks for your effort. your lib is very reliable and simple to use. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#27 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIFXTNOI7MPRK43XMVY7RTRMBDP3ANCNFSM4MF4RCRA .

Jim, Thanks for your advice. Yes, it works. The function has been there.

Rgds, Dennis

techieshop avatar May 03 '20 11:05 techieshop