reposync/issue_sync/delete_gitlink_issue.py

14 lines
405 B
Python

import requests
url = "https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/issues/117188.json"
payload={}
access_token = 'XtR67a232J5u1VU_8yvm7RCVfMX0XMM76m8yMAGblDY'
headers = {
'Authorization': f'Bearer {access_token}', # 使用 Bearer 标记
'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)