Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopee Affiliate Open API (Unofficial)


Example Report:

from datetime import datetime, timedelta
from shopee_affiliate import ShopeeAffiliate


appid = "" # Your appid
secret = "" # Your secret
# report yesterday
startdate = datetime.now() - timedelta(days=1)
enddate = datetime.now() - timedelta(days=1)

sa = ShopeeAffiliate(appid, secret)
res = sa.report(startdate, enddate)
conversion, estimation, startdate_, enddate_ = res
print("conversion:", conversion)
print("estimation:", estimation)

Example Shortlink:

from shopee_affiliate import ShopeeAffiliate
appid = "" # Your appid
secret = "" # Your secret
sa = ShopeeAffiliate(appid, secret)
res = sa.generateShortLink("https://www.shopee.co.id/mall")
print("shortlink:", res)

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages