Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
techieshop opened this issue Apr 11, 2020 · 4 comments
Open

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

techieshop opened this issue Apr 11, 2020 · 4 comments

Comments

@techieshop
Copy link

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.

@JimCurryWang
Copy link
Owner

JimCurryWang commented Apr 11, 2020 via email

@techieshop
Copy link
Author

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

@JimCurryWang
Copy link
Owner

JimCurryWang commented Apr 12, 2020 via email

@techieshop
Copy link
Author

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 notifications@github.com 於 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants