forked from Lesin/reposync
22 lines
500 B
Python
22 lines
500 B
Python
import requests
|
|
|
|
# GitHub创建issue的API URL
|
|
url = f"https://api.github.com/repos/fuxingtamu/yundingzhiyi/milestones"
|
|
|
|
# 构造请求头
|
|
token = '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'
|
|
# 构造请求头
|
|
headers = {
|
|
'Authorization': f'token {token}',
|
|
'Accept': 'application/vnd.github+json'
|
|
}
|
|
|
|
# 发送POST请求
|
|
data = {
|
|
}
|
|
|
|
response = requests.get(url, headers=headers, json=data,verify=False)
|
|
# 打印响应
|
|
#print(response.text)
|
|
milestones_info = response.json()
|
|
print(milestones_info) |