Closed l2fprod closed 6 years ago
If the user specifies the setApiKey()
we update the URL to be
https://gateway-a.watsonplatform.net/visual-recognition/api
I think what you want to use is set the IAM apikey using setIamCredentials()
IamOptions options = new IamOptions.Builder()
.apiKey("<iam_api_key>")
.build();
service.setIamCredentials(options);
I'm going to close this since it's not an issue.
Once all our VR users move to IAM we will deprecate/remove setApiKey()
Take this code:
This output:
Yes visual-recognition!!!
This is using
com.ibm.watson.developer_cloud:assistant:6.9.1
on AndroidLooks like the issue comes from this code: https://github.com/watson-developer-cloud/java-sdk/blob/master/core/src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java#L342 and side effect of https://github.com/watson-developer-cloud/java-sdk/blob/master/core/src/main/java/com/ibm/watson/developer_cloud/service/WatsonService.java#L379