forked from Dongjiaqi/reposync
15 lines
454 B
Python
15 lines
454 B
Python
import requests
|
|
index = 7616
|
|
url = f"https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/pulls/{index}.json"
|
|
|
|
payload={}
|
|
access_token = 'XtR67a232J5u1VU_8yvm7RCVfMX0XMM76m8yMAGblDY'
|
|
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) |