Sample application for the blog post:
https://pkhanal.github.io/post/add-cognitive-capability-to-play-application/
- copy conf/sample.watson.conf to watson.conf
- copy credentials for Visual Recognition and Language translation service into conf/watson/conf
Run following command from the project directory:
sbt run
curl -G "http://localhost:9000/imageClassification" --data-urlencode "imageUrl=https://visual-recognition-demo.mybluemix.net/images/samples/5.jpg"
curl -G "http://localhost:9000/translation" --data-urlencode "text=hello" --data-urlencode "from=en" --data-urlencode "to=fr"