samples/twitter-sentiment-processor/demos/demo2/processor/bin/post

8 lines
194 B
Bash

#!/bin/bash
set -o errexit
set -o pipefail
curl -d '{"lang":"en", "text":"I am so happy this worked"}' \
-H "Content-type: application/json" \
"http://localhost:3000/sentiment-score"