forked from Dongjiaqi/reposync
20 lines
528 B
Python
20 lines
528 B
Python
import requests
|
|
import json
|
|
|
|
url = "https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/issues/batch_destroy.json"
|
|
|
|
payload = json.dumps({
|
|
"ids": [
|
|
117173,117180,117183,117184
|
|
]
|
|
})
|
|
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("DELETE", url, headers=headers, data=payload)
|
|
|
|
print(response.text) |