How to access IBM Watson Tone Analyzer via Laravel 5.7?

79 Views Asked by At

I am able to run the following from the terminal

curl -X POST -u "apikey:{apikey}" \
--header "Content-Type: application/json" \
--data-binary @{path_to_file}tone.json \
"{url}/v3/tone?version=2017-09-21&sentences=false" \

but not sure how to make it work within Laravel. Looking for some sample code. Thanks

0

There are 0 best solutions below