From 916933a2dea71eb9b83236373d9e2bdf171bf137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Mart=C3=ADn?= Date: Mon, 7 Sep 2020 20:13:14 +0200 Subject: [PATCH] Add basic auth api token support (#7) --- src/teamwork.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teamwork.sh b/src/teamwork.sh index a581f0d0..bcf8a0ae 100644 --- a/src/teamwork.sh +++ b/src/teamwork.sh @@ -14,7 +14,7 @@ teamwork::add_comment() { local -r body=$1 response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \ - -H 'Authorization: Bearer '$TEAMWORK_API_TOKEN \ + -u $TEAMWORK_API_TOKEN':' \ -H 'Content-Type: application/json; charset=utf-8' \ -d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )