Skip to content

Commit 496a442

Browse files
committed
[SDK-163]: Restructured example code in README
1 parent 6355b8b commit 496a442

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,17 @@ Here is an example of how this works:
122122

123123
```python
124124
client = Client(YOTI_CLIENT_SDK_ID, YOTI_KEY_FILE_PATH)
125-
activity_details = client.get_activity_details(token)
126-
127-
user_id = activity_details.user_profile.get('user_id')
128-
selfie = activity_details.user_profile.get('selfie')
129-
given_names = activity_details.user_profile.get('given_names')
130-
family_name = activity_details.user_profile.get('family_name')
131-
phone_number = activity_details.user_profile.get('phone_number')
132-
date_of_birth = activity_details.user_profile.get('date_of_birth')
133-
postal_address = activity_details.user_profile.get('postal_address')
134-
gender = activity_details.user_profile.get('gender')
135-
nationality = activity_details.user_profile.get('nationality')
125+
user_profile = client.get_activity_details(token).user_profile
126+
127+
user_id = user_profile.get('user_id')
128+
selfie = user_profile.get('selfie')
129+
given_names = user_profile.get('given_names')
130+
family_name = user_profile.get('family_name')
131+
phone_number = user_profile.get('phone_number')
132+
date_of_birth = user_profile.get('date_of_birth')
133+
postal_address = user_profile.get('postal_address')
134+
gender = user_profile.get('gender')
135+
nationality = user_profile.get('nationality')
136136
```
137137

138138
## Running the Examples

0 commit comments

Comments
 (0)