Depending on the service, you will either need to use Basic Authentication with a username
and password
or pass an apikey
as a parameter in each request.
Some services also support token authentication.
GET using Tone Analyzer:
curl -X GET \
-u "username":"password" \
-d "version=2016-05-19" \
-d "text=Hey! Welcome to Watson Tone Analyzer!" \
"https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone
POST using AlchemyLanguage:
curl -X POST \
-d "apikey=YOUR_API_KEY" \
-d "url=www.ibm.com" \
"https://gateway-a.watsonplatform.net/calls/url/URLGetRankedKeywords"