@@ -117,7 +117,8 @@ Here is an example of how this works:
117
117
118
118
``` python
119
119
client = Client(YOTI_CLIENT_SDK_ID , YOTI_KEY_FILE_PATH )
120
- user_profile = client.get_activity_details(token).user_profile
120
+ activity_details = client.get_activity_details(token)
121
+ user_profile = activity_details.user_profile
121
122
122
123
user_id = user_profile.get(' user_id' )
123
124
selfie = user_profile.get(' selfie' )
@@ -126,9 +127,12 @@ family_name = user_profile.get('family_name')
126
127
full_name = user_profile.get(' full_name' )
127
128
phone_number = user_profile.get(' phone_number' )
128
129
date_of_birth = user_profile.get(' date_of_birth' )
130
+ is_age_verified = user_profile.get(' is_age_verified' )
129
131
postal_address = user_profile.get(' postal_address' )
130
132
gender = user_profile.get(' gender' )
131
133
nationality = user_profile.get(' nationality' )
134
+
135
+ base64_selfie_uri = activity_details.get(' base64_selfie_uri' )
132
136
```
133
137
134
138
## AML Integration
@@ -238,30 +242,31 @@ Plugins for both Django and Flask are in the `plugins/` dir. Their purpose is to
238
242
239
243
## Running the Tests
240
244
241
- Run your project but please make sure you have all the correct requirements :
245
+ Running the tests is done by the following process, ensuring you are using Python 3.0+ :
242
246
243
247
1 . Install dependencies: ` pip install -r requirements.txt `
244
- 2 . Install the SDK: ` python setup.py develop `
245
- 3 . Execute in the main project dir: ` py.test `
248
+ 1 . Install the SDK: ` python setup.py develop `
249
+ 1 . Execute in the main project dir: ` py.test `
246
250
247
251
For information on testing with multiple Python versions, see [ VERSION-SUPPORT.md] ( /VERSION-SUPPORT.md )
248
252
249
253
## API Coverage
250
254
251
255
* Activity Details
252
256
* [X] User ID ` user_id `
253
- * [X] Profile
257
+ * [X] Profile ` user_profile `
254
258
* [X] Photo ` selfie `
255
259
* [X] Given Names ` given_names `
256
260
* [X] Family Name ` family_name `
257
261
* [X] Full Name ` full_name `
258
262
* [X] Mobile Number ` phone_number `
259
263
* [X] Email Address ` email_address `
260
264
* [X] Age / Date of Birth ` date_of_birth `
261
- * [X] Age / Verify Condition ` age_[over|under]:[1-999] `
265
+ * [X] Age / Is Age Verified ` is_age_verified `
262
266
* [X] Address ` postal_address `
263
267
* [X] Gender ` gender `
264
268
* [X] Nationality ` nationality `
269
+ * [X] Base64 Selfie URI ` base64_selfie_uri `
265
270
266
271
## Support
267
272
0 commit comments