forked from Lesin/reposync
16 lines
503 B
Python
16 lines
503 B
Python
import requests
|
|
import json
|
|
|
|
url = "https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/issues/7/journals.json"
|
|
|
|
payload = {}
|
|
access_token = 'zo07-W-W6vnU1mvQhVhIdfyyVY3K1R1piil_jfvS1bg'
|
|
headers = {
|
|
'Authorization': f'Bearer {access_token}', # 使用 Bearer 标记
|
|
'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
'Content-Type': 'application/json'
|
|
}
|
|
|
|
response = requests.request("GET", url, headers=headers, data=payload)
|
|
info = json.loads(response.text)
|
|
print(json.loads(response.text)) |