Skip to content

Commit 916933a

Browse files
Add basic auth api token support (#7)
1 parent 0c5dda3 commit 916933a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/teamwork.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ teamwork::add_comment() {
1414
local -r body=$1
1515

1616
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
17-
-H 'Authorization: Bearer '$TEAMWORK_API_TOKEN \
17+
-u $TEAMWORK_API_TOKEN':' \
1818
-H 'Content-Type: application/json; charset=utf-8' \
1919
-d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
2020

0 commit comments

Comments
 (0)