Click or drag to resize

UtilityGetToken Method

Gets a token to authenticate serivce calls instead of using username and password.

Namespace:  IBM.Watson.DeveloperCloud.Utilities
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool GetToken(
	UtilityOnGetToken callback,
	string serviceEndpoint,
	string username,
	string password,
	string tokenName = ""
)

Parameters

callback
Type: IBM.Watson.DeveloperCloud.UtilitiesUtilityOnGetToken
The OnGetToken callback,
serviceEndpoint
Type: SystemString
The service endpoint.
username
Type: SystemString
The service username.
password
Type: SystemString
The service password.
tokenName (Optional)
Type: SystemString
A user defined name for the token.

Return Value

Type: Boolean
True if the call succeeds.
See Also