Skip to content

Commit

Permalink
Add basic auth api token support (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelbemartin authored Sep 7, 2020
1 parent 0c5dda3 commit 916933a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/teamwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 } }" )

Expand Down

0 comments on commit 916933a

Please sign in to comment.