JimCurryWang / python-shopee

pyshopee - Shopee Partner API Client for Python
https://pypi.org/project/pyshopee
MIT License
215 stars 82 forks source link

How to use the interface of SHOPEE 2.0 #49

Open zhouzhao1999 opened 2 years ago

zhouzhao1999 commented 2 years ago

After "pip install pyshopee" is installed, it is still the interface of API 1.0. If I want to use the interface of SHOPEE 2.0, what should I do? thank you very much!

JimCurryWang commented 2 years ago

Hi,

The api 2.0 is not currently available via pip install, but you can clone the project directly to your folder, and try import pyshopee2.

Best Jim

zhouzhao1999 @.***> 於 2022年5月2日 週一 上午6:53寫道:

After "pip install pyshopee" is installed, it is still the interface of API 1.0. If I want to use the interface of SHOPEE 2.0, what should I do? thank you very much!

— Reply to this email directly, view it on GitHub https://github.com/JimCurryWang/python-shopee/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIFXTN7N4AQBCW45NYK56LVH5NT3ANCNFSM5U26MPKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

himacri commented 2 years ago

Hi, thanks for the great experience you have created pyshopee is giving me.

I need to install pyshopee2 and I'm looking into it, but I can't seem to figure out how to operate it. Could you please post an example like you did in v1? Or I would like a reference.

I need to know how to list one item in the store after authenticating my account.

Looking forward to your reply. Thanks.

JimCurryWang commented 2 years ago

Try this...

import pyshopee2

client = pyshopee2.Client( shopid, partnerid, API_key )