You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ Java client library to use the [Watson APIs][wdc].
15
15
*[Gradle](#gradle)
16
16
*[Usage](#usage)
17
17
*[Running in IBM Cloud](#running-in-ibm-cloud)
18
+
*[Visual Recognition](#visual-recognition)
18
19
*[Authentication](#authentication)
19
20
*[Username and Password](#username-and-password)
20
21
*[API Key](#api-key)
@@ -126,6 +127,13 @@ credentials; the library will get them for you by looking at the [`VCAP_SERVICES
126
127
When running in IBM Cloud (or other platforms based on Cloud Foundry), the library will automatically get the credentials from [`VCAP_SERVICES`][vcap_services].
127
128
If you have more than one plan, you can use `CredentialUtils` to get the service credentials for an specific plan.
128
129
130
+
## Visual Recognition
131
+
132
+
The process for authenticating with Visual Recognition has changed:
133
+
134
+
- For new service instances, authenticate by using IAM. See [Using IAM](#using-iam). Also set the service URL by calling the `setEndpoint()` method of the service instance.
135
+
- For service instances created before May 23, 2018, authenticate by providing the API Key for the service instance. See [API Key](#api-key).
136
+
129
137
## Authentication
130
138
131
139
There are three ways to authenticate with IBM Cloud through the SDK: using a `username` and `password`, using an `api_key`, and with IAM.
_Note: This version of instantiation only works with Visual Recognition, as it's the only service that uses an API key rather than a username and password._
166
+
_Important: Instantiation with API key works only with Visual Recognition service instances created before May 23, 2018. Visual Recognition instances created after May 22 use IAM._
0 commit comments