forked from Lesin/reposync
15 lines
490 B
Python
15 lines
490 B
Python
import urllib
|
|
import requests
|
|
|
|
url = f"https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/issues/1.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)
|
|
print(response.text) |