sc-common-interface 2.8.7__tar.gz → 2.8.8__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.
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/PKG-INFO +1 -1
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/LiveCommonInterface.py +6 -9
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/setup.py +1 -1
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/CommonOa.py +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/Platform.py +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/setup.cfg +0 -0
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -531,7 +531,7 @@ def get_broadcast_list(data):
|
|
|
531
531
|
pageNum = 1
|
|
532
532
|
pageSize = 12
|
|
533
533
|
pageNum =data.get("pageNum",pageNum)
|
|
534
|
-
|
|
534
|
+
pageSize = data.get("pageSize", pageSize)
|
|
535
535
|
name = data.get("name",name)
|
|
536
536
|
if "name" in data:
|
|
537
537
|
name= data["name"]
|
|
@@ -544,6 +544,7 @@ def get_broadcast_list(data):
|
|
|
544
544
|
"pageNum": pageNum,
|
|
545
545
|
"pageSize": pageSize
|
|
546
546
|
}
|
|
547
|
+
print(body)
|
|
547
548
|
reponse = requests.post(url,headers=headers,json=body).json()
|
|
548
549
|
if name !="":
|
|
549
550
|
name_list = jsonpath(reponse,"$..name")
|
|
@@ -2452,14 +2453,10 @@ def get_merchant_currency(data):
|
|
|
2452
2453
|
|
|
2453
2454
|
|
|
2454
2455
|
if __name__=="__main__":
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
'lang': 'en'}, 'sales_id': '552980'
|
|
2460
|
-
}
|
|
2461
|
-
__, response = get_comment_user(data)
|
|
2462
|
-
print(response)
|
|
2456
|
+
data ={'headers': {'authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJkZmQxYjNiMDc0M2JmYWU4YTFkODk4NzczNjgyZWVkZCIsImRhdGEiOnsibWVyY2hhbnRfaWQiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAiLCJhcHBsaWNhdGlvbl9pZCI6IjVlYjkwMzVhYjA5ZDEyNjU4NTFmOTU2ZiJ9LCJpc3MiOiJodHRwczovL2RldmVsb3BlcnMtcHJldmlldy5zaG9wbGluZWFwcC5jb20iLCJhdWQiOltdLCJzdWIiOiI2MWE4N2M5NzYzYjcwYzAwNTEwNmZiZDAifQ.Y90xLfYVAp9yByHo7Vc7A3hHrp6hX9X9Lg4mg_WiE_I', 'lang': 'en', 'Content-Type': 'application/json'}, 'page_id': '17841450795887194', 'post_id': '18032025731245871', 'env': 'https://front-admin-preview.shoplineapp.com', 'sales_id': '498232', 'key': '5e3bba98882fc0fb22a0607238bc5b8f', 'platform': 'INSTAGRAM', 'name': '接口自动化广播名称1740286371978'}
|
|
2457
|
+
broadcast_id,reponse = get_broadcast_list(data)
|
|
2458
|
+
print(reponse)
|
|
2459
|
+
print(broadcast_id)
|
|
2463
2460
|
|
|
2464
2461
|
|
|
2465
2462
|
|
|
File without changes
|
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-2.8.7 → sc_common_interface-2.8.8}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|