Код: Выделить всё
url = "https://api.clickup.com/api/v2/task/861m8wtw3/comment"
headers = {
"Authorization": "Bearer ",
"Content-Type": "application/json"
}
# comment = input('Type your comment text: \n')
comment = 'test comment'
data = {
"content": f"{comment}"
}
response = requests.post(url, headers=headers, json=data)
Код: Выделить всё
Я пытался добавить заголовки Mozilla в качестве ключа пользовательского агента:
Код: Выделить всё
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
Подробнее здесь: https://stackoverflow.com/questions/752 ... ith-python