null update info
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
<<<<<<< HEAD
|
||||
from ProjectCfg import DOMAIN
|
||||
from CallServer import _make_request
|
||||
|
||||
@@ -23,29 +22,3 @@ def RandomWebArticle(Authorization: str='',limit:int=5 ) -> dict:
|
||||
headers = {'accept': 'application/json', 'Authorization': Authorization}
|
||||
params = {"limit":limit}
|
||||
return _make_request('GET', url, headers,params=params)
|
||||
=======
|
||||
from ProjectCfg import DOMAIN
|
||||
from CallServer import _make_request
|
||||
|
||||
###==========================网页文章==========================
|
||||
|
||||
def GetWebArticle(feedid:str,publisherid:str,limit:int=20,offset:int=0,Authorization: str='' ) -> dict:
|
||||
"""获取网页文章"""
|
||||
url = f"{DOMAIN}/feeds/articles"
|
||||
headers = {'accept': 'application/json', 'Authorization': Authorization}
|
||||
params = {"feedid":feedid,"publisherid":publisherid,"limit":limit,"offset":offset}
|
||||
return _make_request('GET', url, headers,params=params)
|
||||
|
||||
def GetWebArticleDetail(articleid:str,Authorization: str='' ) -> dict:
|
||||
"""获取网页文章详情"""
|
||||
url = f"{DOMAIN}/feeds/articles/{articleid}"
|
||||
headers = {'accept': 'application/json', 'Authorization': Authorization}
|
||||
return _make_request('GET', url, headers)
|
||||
|
||||
def RandomWebArticle(Authorization: str='',limit:int=5 ) -> dict:
|
||||
"""随机获取网页文章"""
|
||||
url = f"{DOMAIN}/feeds/articles/random"
|
||||
headers = {'accept': 'application/json', 'Authorization': Authorization}
|
||||
params = {"limit":limit}
|
||||
return _make_request('GET', url, headers,params=params)
|
||||
>>>>>>> 967cea4c47a481e79c92fda0760c423de7fbcedf
|
||||
|
Reference in New Issue
Block a user