File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Examples/ServiceExamples/Scripts Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,7 @@ void Start()
88
88
private IEnumerator CreateService ( )
89
89
{
90
90
Credentials credentials = null ;
91
- if ( ! string . IsNullOrEmpty ( _apikey ) )
92
- {
93
- // Authenticate using apikey
94
- credentials = new Credentials ( _apikey , _serviceUrl ) ;
95
- }
96
- else if ( ! string . IsNullOrEmpty ( _iamApikey ) )
91
+ if ( ! string . IsNullOrEmpty ( _iamApikey ) )
97
92
{
98
93
// Authenticate using iamApikey
99
94
TokenOptions tokenOptions = new TokenOptions ( )
@@ -110,7 +105,7 @@ private IEnumerator CreateService()
110
105
}
111
106
else
112
107
{
113
- throw new WatsonException ( "Please provide either CF apikey or IAM apikey to authenticate the service." ) ;
108
+ throw new WatsonException ( "Please provide IAM apikey to authenticate the service." ) ;
114
109
}
115
110
116
111
// Create credential and instantiate service
You can’t perform that action at this time.
0 commit comments