Skip to content

Commit 3428612

Browse files
committed
merging
2 parents 23328c9 + ec062ca commit 3428612

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

watson_developer_cloud/visual_recognition_v3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323

2424
class VisualRecognitionV3(WatsonDeveloperCloudService):
25-
2625
"""Client for the Visual Recognition service"""
2726

2827
default_url = 'https://gateway-a.watsonplatform.net/visual-recognition/api'

watson_developer_cloud/watson_developer_cloud_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def __init__(self, vcap_services_name, url, username=None, password=None, use_vc
9999
self.api_key = self.vcap_service_credentials['api_key']
100100
if 'apikey' in self.vcap_service_credentials:
101101
self.api_key = self.vcap_service_credentials['apikey']
102+
if 'api_key' in self.vcap_service_credentials:
103+
self.api_key = self.vcap_service_credentials['api_key']
102104

103105
if (self.username is None or self.password is None) and self.api_key is None:
104106
raise WatsonException('You must specific your username and password service credentials ' +

0 commit comments

Comments
 (0)