GetIdentityData
tip
Currently, this method is available in Cloud Code scripts and for Ultra authentication type only.
Retrieves identity data for given identity type for this profile.
Service | Operation |
---|---|
identity | GET_IDENTITY_DATA |
Method Parameters
Parameter | Description |
---|---|
authenticationType | Type of authentication. |
externalAuthName | The name of the external authentication mechanism (optional, used for custom authentication types) |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
//cloud code only
//cloud code only
//cloud code only
//cloud code only
//cloud code only
//cloud code only
var authenticationType = "Ultra";
var externalAuthName = "";
var identityProxy = bridge.getIdentityServiceProxy();
var postResult = identityProxy.getIdentityData(authenticationType, externalAuthName);
if (postResult.status == 200) {
// Success!
}
{
"service": "identity",
"operation": "GET_IDENTITY_DATA",
"data":
{
"authenticationType": "Ultra",
"externalAuthName": ""
}
}
JSON Response
{
"data": {
"identityData": {
"blockchain_id": "-a-blockchain-id-"
}
},
"status": 200
}