lazyad 0.0.61__tar.gz → 0.0.63__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.61
3
+ Version: 0.0.63
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
File without changes
@@ -341,7 +341,7 @@ def history(
341
341
  """
342
342
  scheme = "https"
343
343
  host = "ss-api.mintegral.com"
344
- filename = "api/v1/history/index"
344
+ filename = "/api/v1/history/index"
345
345
  if not start_time:
346
346
  start_time = lazytime.get_datetime_relative(days=-7)
347
347
  if not end_time:
@@ -371,7 +371,7 @@ def history(
371
371
  headers["Cookie"] = cookie
372
372
  return lazyrequests.lazy_requests(
373
373
  method="POST",
374
- data=data,
374
+ json=data,
375
375
  url=url,
376
376
  headers=headers
377
377
  )
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.61
3
+ Version: 0.0.63
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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.61",
16
+ version="0.0.63",
17
17
  description="基于Python的懒人包-适用于广告投放模块",
18
18
  long_description=long_description,
19
19
  long_description_content_type="text/markdown",
@@ -1,2 +0,0 @@
1
- from . import crawlers
2
- from . import open
@@ -1,3 +0,0 @@
1
- from . import qq
2
- from . import oceanengine
3
- from . import chuangliang
@@ -1,31 +0,0 @@
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
-
File without changes
File without changes
File without changes
File without changes
File without changes