Skip to content

Commit a538015

Browse files
committed
docs: add deprecation message for api_key in visual recognition
1 parent 7977787 commit a538015

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visual-recognition/v3.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class VisualRecognitionV3 extends GeneratedVisualRecognitionV3 {
1515
const _options = extend({}, options);
1616
_options.version = _options.version_date || _options.version;
1717
super(_options);
18+
if (_options.api_key) {
19+
console.warn('WARNING: Visual Recognition instances are no longer accepting `api_key` for authentication. Use `iam_apikey`.');
20+
}
1821
}
1922
classify(params, callback) {
2023
if (params && params.image_file) {

0 commit comments

Comments
 (0)