@@ -118,21 +118,40 @@ Here is an example of how this works:
118
118
``` python
119
119
client = Client(YOTI_CLIENT_SDK_ID , YOTI_KEY_FILE_PATH )
120
120
activity_details = client.get_activity_details(token)
121
- user_profile = activity_details.user_profile
122
-
123
- user_id = user_profile.get(' user_id' )
124
- selfie = user_profile.get(' selfie' )
125
- given_names = user_profile.get(' given_names' )
126
- family_name = user_profile.get(' family_name' )
127
- full_name = user_profile.get(' full_name' )
128
- phone_number = user_profile.get(' phone_number' )
129
- date_of_birth = user_profile.get(' date_of_birth' )
130
- is_age_verified = user_profile.get(' is_age_verified' )
131
- postal_address = user_profile.get(' postal_address' )
132
- gender = user_profile.get(' gender' )
133
- nationality = user_profile.get(' nationality' )
134
-
135
- base64_selfie_uri = activity_details.get(' base64_selfie_uri' )
121
+
122
+ profile = activity_details.profile
123
+
124
+ selfie = profile.get(' selfie' ).value
125
+ given_names = profile.get(' given_names' ).value
126
+ family_name = profile.get(' family_name' ).value
127
+ full_name = profile.get(' full_name' ).value
128
+ phone_number = profile.get(' phone_number' ).value
129
+ date_of_birth = profile.get(' date_of_birth' ).value
130
+ is_age_verified = profile.get(' is_age_verified' ).value
131
+ postal_address = profile.get(' postal_address' ).value
132
+ gender = profile.get(' gender' ).value
133
+ nationality = profile.get(' nationality' ).value
134
+
135
+ remember_me_id = activity_details.user_id
136
+ base64_selfie_uri = activity_details.base64_selfie_uri
137
+ ```
138
+
139
+ You can retrieve the anchors, sources and verifiers for each attribute as follows:
140
+ ``` python
141
+ given_names_attribute = profile.get(' given_names' )
142
+
143
+ given_names_anchors = given_names_attribute.anchors
144
+ given_names_sources = given_names_attribute.sources
145
+ given_names_verifiers = given_names_attribute.verifiers
146
+ ```
147
+
148
+ You can also retrieve further properties from these respective anchors in the following way:
149
+ ``` python
150
+ source_anchor = given_names_sources[0 ]
151
+ value = source_anchor.value
152
+ sub_type = source_anchor.sub_type
153
+ timestamp = source_anchor.signed_timestamp
154
+ origin_server_certs = source_anchor.origin_server_certs
136
155
```
137
156
138
157
## AML Integration
@@ -252,7 +271,7 @@ For information on testing with multiple Python versions, see [VERSION-SUPPORT.m
252
271
253
272
* Activity Details
254
273
* [X] User ID ` user_id `
255
- * [X] Profile ` user_profile `
274
+ * [X] Profile ` profile `
256
275
* [X] Photo ` selfie `
257
276
* [X] Given Names ` given_names `
258
277
* [X] Family Name ` family_name `
0 commit comments