Get peer Attributes
This use case is intended to retrieve Attributes that a peer has shared with the current Identity as LocalAttributes. The LocalAttributes can be specified using a complex query. Since only the LocalAttribute subtypes PeerIdentityAttribute, PeerRelationshipAttribute, and ThirdPartyRelationshipAttribute represent retrieved Attributes, only such LocalAttributes can be fetched through this use case.
Parameters
peeris theaddressof the Identity that shared the LocalAttributes.queryallows to specify the conditions for the returned LocalAttributes. In detail, the following keys may be used:createdAtdescribes the time when the LocalAttribute was created.- The fields of
contentcan be used to describe the queried Attribute (either an IdentityAttribute or a RelationshipAttribute). However, it is not possible to query bycontent.owner, because the owner always refers to the peer. sourceReferencedescribes theidof the LocalRequest or LocalNotification the LocalAttribute was received in.initialAttributePeeris a ThirdPartyRelationshipAttribute property which describes theaddressof the Identity with whom the peer has the Relationship in which context the source RelationshipAttribute exists.wasViewedAtdescribes the time when the LocalAttribute was firstly viewed.- The fields of the
deletionInfodescribe the ReceivedAttributeDeletionInfo of the LocalAttribute.
- If
hideTechnicalis set totrue, RelationshipAttributes withisTechnicaltruewill not be returned. - Optionally,
onlyLatestVersionscan be disabled, such that in case of Attribute succession all versions will be returned.
On Success
- Returns a list of LocalAttributes shared by the peer that match the query.
On Failure
- The parameters are malformed.