lazyad 0.0.51__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 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
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.51
3
+ Version: 0.0.52
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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=iybtS0u9WFbZwEXnIKeFzDth4peqOfFqZUSl0oKLkiM,11581
8
+ lazyad/open/mintegral.py,sha256=14oQ1_R7G5urKK8ZUkrMNMvHGwbC2yzv0Gk3eRFrvPc,12143
9
9
  lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
10
10
  lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
11
- lazyad-0.0.51.dist-info/METADATA,sha256=N8hiOFP2itmA7ztZ6jvp2179S8aWZP1IH8_b4gOgaU0,1918
12
- lazyad-0.0.51.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
13
- lazyad-0.0.51.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
14
- lazyad-0.0.51.dist-info/RECORD,,
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,,