I am trying to make a request following the IBM Tone Analyzer API instructions, and according to the docs this is what it'll look like.
curl -X POST -u "apikey:{apikey}" --header "Content-Type: application/json" --data-binary @tone.json "https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=2017-09-21"
I converted that to a python request()
and I have this:
response = requests.post(url=analyzer_url, header=header, data=data)
the problem is that I have no clue what -u "apikey:{apikey}"
's equivalent is on the request()
parameters.
Could anyone help me?