I had been using the sendmail-bluemix script found on these forums quite some time ago. It all worked flawlessly across all my freepbx installs until recently. My IBM Watson API account had changed and been migrated to a different API and price plan and required different credentials and URL syntax to work. I didn’t see this update on the forums, so I thought I would post it in case anyone else comes looking.
Basically what I did was set the API_USERNAME variable equal to “apikey” and the API_PASSWORD variable set to my new API KEY from my IBM Watson account.
Then I updated the URL being called by curl to basically what was listed on my IBM Watson API account to use, but I had to append everything after ‘recognize’ including the question mark to get it to work, like:
I hope this helps anyone else.