getLinkedIdentities method
Returns all linked identities of the given target identity. If there are too many identities to be returned from a single call of this API, 'lastKey' is returned in addition to the 'identities' and the 'lastKey' can be used for the next call to retrieve more identities.
Implementation
Future getLinkedIdentities({
required String targetIdentityId,
dynamic? lastKey
}) async {
var url = '/get-linked-identities';
var params = <String,dynamic>{
"targetIdentityId": targetIdentityId
};
if (lastKey != null) {
params['lastKey'] = lastKey;
}
var resp = await _invoke(url, params, true);
if (resp['result'] != 'OK') throw resp['result'];
return <String,dynamic>{
'identities': resp['identities'],
'lastKey': resp['lastKey']
};
}