|
@@ -121,7 +121,7 @@ class APIMgr():
|
|
"reqType": "lastNews",
|
|
"reqType": "lastNews",
|
|
"pageNum": 1,
|
|
"pageNum": 1,
|
|
"pageSize": 50,
|
|
"pageSize": 50,
|
|
- "keyWords": "",
|
|
|
|
|
|
+ "keyWords": "科技",
|
|
"searchMode": 0,
|
|
"searchMode": 0,
|
|
"bidField": "",
|
|
"bidField": "",
|
|
"publishTime": "1689573022-1721195422",
|
|
"publishTime": "1689573022-1721195422",
|
|
@@ -141,7 +141,7 @@ class APIMgr():
|
|
"buyerTel": "",
|
|
"buyerTel": "",
|
|
"winnerTel": ""
|
|
"winnerTel": ""
|
|
}
|
|
}
|
|
- response = session.post(f"{cfg.target_host}/jyapi/jybx/core/fType/searchList", headers=headers, json=data)
|
|
|
|
|
|
+ response = session.post(f"{cfg.target_host}/jyapi/jybx/core/mType/searchList", headers=headers, data=data)
|
|
return response
|
|
return response
|
|
|
|
|
|
# 企业搜索
|
|
# 企业搜索
|
|
@@ -763,7 +763,66 @@ class APIMgr():
|
|
"vt": "s"
|
|
"vt": "s"
|
|
})
|
|
})
|
|
return response
|
|
return response
|
|
-
|
|
|
|
|
|
+ #招标采购搜索信息对外接口
|
|
|
|
+ def bid_search_api(self):
|
|
|
|
+ headers = {
|
|
|
|
+ 'Accept-Charset': 'utf-8',
|
|
|
|
+ 'timestamp': '1726207205',
|
|
|
|
+ 'sign': '1058A958B8D562EA9F2234AC42716778',
|
|
|
|
+ 'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
+}
|
|
|
|
+ response = self.s.post(f"{cfg.target_host_api}/thirdpartyapi/standard/bid/search?appid=jianyuDev", headers=headers, json={
|
|
|
|
+ "releaseTimeStart": 1695456870,"keyWord": ["市政粮食"],"searchMode":1})
|
|
|
|
+ return response
|
|
|
|
+ #招标采购搜索信息普通字段包对外接口
|
|
|
|
+ def bid_ordinarypkg(self):
|
|
|
|
+ headers = {
|
|
|
|
+ 'Accept-Charset': 'utf-8',
|
|
|
|
+ 'timestamp': '1726207205',
|
|
|
|
+ 'sign': '1058A958B8D562EA9F2234AC42716778',
|
|
|
|
+ 'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
+ }
|
|
|
|
+ response = self.s.post(f"{cfg.target_host_api}/thirdpartyapi/standard/bid/ordinarypkg?appid=jianyuDev",
|
|
|
|
+ headers=headers, json={"id": "040654015b5f500a1b4774135a57015651085a585c4f4c7605dc"})
|
|
|
|
+ return response
|
|
|
|
+ # 招标采购搜索信息高级字段包对外接口
|
|
|
|
+ def bid_seniorpkg(self):
|
|
|
|
+ headers = {
|
|
|
|
+ 'Accept-Charset': 'utf-8',
|
|
|
|
+ 'timestamp': '1726207205',
|
|
|
|
+ 'sign': '1058A958B8D562EA9F2234AC42716778',
|
|
|
|
+ 'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
+ }
|
|
|
|
+ response = self.s.post(f"{cfg.target_host_api}/thirdpartyapi/standard/bid/seniorpkg?appid=jianyuDev",
|
|
|
|
+ headers=headers,
|
|
|
|
+ json={"id": "040654015b5f500a1b4774135a57015651085a585c4f4c7605dc"})
|
|
|
|
+ return response
|
|
|
|
+ #招标采购信息附件下载接口
|
|
|
|
+ def bid_annex(self):
|
|
|
|
+ headers = {
|
|
|
|
+ 'Accept-Charset': 'utf-8',
|
|
|
|
+ 'timestamp': '1726207205',
|
|
|
|
+ 'sign': '1058A958B8D562EA9F2234AC42716778',
|
|
|
|
+ 'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
|
|
+ 'Content-Type': 'application/json'
|
|
|
|
+ }
|
|
|
|
+ response = self.s.post(f"{cfg.target_host_api}/thirdpartyapi/standard/bid/annex?appid=jianyuDev",
|
|
|
|
+ headers=headers,
|
|
|
|
+ json={"fid":"040507510f0a075618137614500208530c095c500f1814785d44030451"})
|
|
|
|
+ return response
|
|
|
|
+ #客户标签类型获取
|
|
|
|
+ def customer_getLabel(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ response = self.s.post(f"{cfg.target_host}/entnicheNew/customer/getLabel", headers=headers, json={})
|
|
|
|
+ return response
|
|
|
|
+ #商机管理客户关注
|
|
|
|
+ def customer_attention(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ response = self.s.post(f"{cfg.target_host}/publicapply/customer/attention", headers=headers, json={"name":"石嘴山市交通工程建设管理中心","mold":1,"D":True})
|
|
|
|
+ return response
|
|
apimgr = APIMgr()
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|
|
|