lazyad 0.0.51__tar.gz → 0.0.53__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lazyad might be problematic. Click here for more details.
- {lazyad-0.0.51 → lazyad-0.0.53}/PKG-INFO +1 -1
- lazyad-0.0.53/lazyad/open/kuaishou.py +31 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/open/mintegral.py +22 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad.egg-info/SOURCES.txt +1 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/setup.py +1 -1
- {lazyad-0.0.51 → lazyad-0.0.53}/README.md +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/__init__.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/crawlers/chuangliang.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/crawlers/mintegral.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad/open/unity.py +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.51 → lazyad-0.0.53}/setup.cfg +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from lazysdk import lazyrequests
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def postback(
|
|
5
|
+
callback: str,
|
|
6
|
+
event_time: int,
|
|
7
|
+
event_type: int,
|
|
8
|
+
purchase_amount=None
|
|
9
|
+
):
|
|
10
|
+
"""
|
|
11
|
+
快手回传
|
|
12
|
+
:param callback:
|
|
13
|
+
:param event_time: 时间戳,单位秒
|
|
14
|
+
:param event_type:
|
|
15
|
+
:param purchase_amount:
|
|
16
|
+
:return:
|
|
17
|
+
"""
|
|
18
|
+
# result=1上报成功
|
|
19
|
+
params = {
|
|
20
|
+
"event_type": event_type,
|
|
21
|
+
"event_time": event_time,
|
|
22
|
+
}
|
|
23
|
+
if purchase_amount:
|
|
24
|
+
params["purchase_amount"] = purchase_amount
|
|
25
|
+
res = lazyrequests.lazy_requests(
|
|
26
|
+
method="GET",
|
|
27
|
+
url=callback,
|
|
28
|
+
params=params
|
|
29
|
+
)
|
|
30
|
+
return res
|
|
31
|
+
|
|
@@ -376,3 +376,25 @@ def get_campaign(
|
|
|
376
376
|
params=params
|
|
377
377
|
)
|
|
378
378
|
|
|
379
|
+
|
|
380
|
+
def get_account_balance(
|
|
381
|
+
api_key: str,
|
|
382
|
+
access_key: str,
|
|
383
|
+
):
|
|
384
|
+
"""
|
|
385
|
+
获取账户余额(含有账户id信息)
|
|
386
|
+
https://adv.mintegral.com/doc/cn/guide/account/getAccountBalance.html
|
|
387
|
+
:param api_key:
|
|
388
|
+
:param access_key:
|
|
389
|
+
:return:
|
|
390
|
+
"""
|
|
391
|
+
token_info = make_token(api_key=api_key)
|
|
392
|
+
params = {"access-key": access_key}
|
|
393
|
+
params.update(token_info)
|
|
394
|
+
url = "https://ss-api.mintegral.com/api/open/v1/account/balance"
|
|
395
|
+
return lazyrequests.lazy_requests(
|
|
396
|
+
method="GET",
|
|
397
|
+
url=url,
|
|
398
|
+
params=params
|
|
399
|
+
)
|
|
400
|
+
|
|
@@ -13,7 +13,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
|
|
13
13
|
|
|
14
14
|
setuptools.setup(
|
|
15
15
|
name="lazyad",
|
|
16
|
-
version="0.0.
|
|
16
|
+
version="0.0.53",
|
|
17
17
|
description="基于Python的懒人包-适用于广告投放模块",
|
|
18
18
|
long_description=long_description,
|
|
19
19
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|