Constructor
new GDTokenHelper()
Methods
getGDAuthToken(challenge, serverName, onSuccess, onError)
Call this method to request a new BlackBerry Dynamics Auth token
Parameters:
Name | Type | Description |
---|---|---|
challenge |
string | string for the authorization |
serverName |
string | string for the server name |
onSuccess |
function | Callback function to invoke when the function returns successfully. |
onError |
function | Callback function to invoke for error conditions. |
Example
window.plugins.GDTokenHelper.getGDAuthToken("test", "serverName",
function(result) {
alert("Retrieved Application details " + result);
},
function(result) {
alert("Api not supported on emulated devices: " + result);
}
);