lazyad 0.0.50__py3-none-any.whl → 0.0.52__py3-none-any.whl
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/open/mintegral.py +22 -0
- lazyad/open/unity.py +5 -2
- {lazyad-0.0.50.dist-info → lazyad-0.0.52.dist-info}/METADATA +1 -1
- {lazyad-0.0.50.dist-info → lazyad-0.0.52.dist-info}/RECORD +6 -6
- {lazyad-0.0.50.dist-info → lazyad-0.0.52.dist-info}/WHEEL +0 -0
- {lazyad-0.0.50.dist-info → lazyad-0.0.52.dist-info}/top_level.txt +0 -0
lazyad/open/mintegral.py
CHANGED
|
@@ -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
|
+
|
lazyad/open/unity.py
CHANGED
|
@@ -205,7 +205,8 @@ def reports(
|
|
|
205
205
|
end: str,
|
|
206
206
|
scale: str = "day",
|
|
207
207
|
metrics: list = None,
|
|
208
|
-
breakdowns: list = None
|
|
208
|
+
breakdowns: list = None,
|
|
209
|
+
timeout: int = 60
|
|
209
210
|
):
|
|
210
211
|
"""
|
|
211
212
|
https://services.docs.unity.com/statistics/index.html#tag/Acquisitions/operation/stats_acquisition
|
|
@@ -320,5 +321,7 @@ def reports(
|
|
|
320
321
|
method="GET",
|
|
321
322
|
url=url,
|
|
322
323
|
params=params,
|
|
323
|
-
headers=headers
|
|
324
|
+
headers=headers,
|
|
325
|
+
return_json=False,
|
|
326
|
+
timeout=timeout
|
|
324
327
|
)
|
|
@@ -5,10 +5,10 @@ lazyad/crawlers/mintegral.py,sha256=OytJKh2D139lEhLfhOBqOtiEIkVDrjWo3xNpel9OPhA,
|
|
|
5
5
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
6
6
|
lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
|
|
7
7
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
lazyad/open/mintegral.py,sha256=
|
|
8
|
+
lazyad/open/mintegral.py,sha256=14oQ1_R7G5urKK8ZUkrMNMvHGwbC2yzv0Gk3eRFrvPc,12143
|
|
9
9
|
lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
|
|
10
|
-
lazyad/open/unity.py,sha256=
|
|
11
|
-
lazyad-0.0.
|
|
12
|
-
lazyad-0.0.
|
|
13
|
-
lazyad-0.0.
|
|
14
|
-
lazyad-0.0.
|
|
10
|
+
lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
|
|
11
|
+
lazyad-0.0.52.dist-info/METADATA,sha256=7k4l0ZuC-j3mxAsZ59wCRV-x750TUIQtnQ9K9nA4wxY,1918
|
|
12
|
+
lazyad-0.0.52.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
13
|
+
lazyad-0.0.52.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
14
|
+
lazyad-0.0.52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|