I want to use Pythoneverywhere api to restart always-task but get error:
restart_task = requests.post( f'https://www.pythonanywhere.com/api/v0/user/{username}/always_on/{task_id}/restart', headers={'Authorization': f'Token {token}'} ) print(restart_task.text)
result: {"detail":"Method \"GET\" not allowed."}
any solution here?