diff --git a/get_info_on_all_users/contact_methods.py b/get_info_on_all_users/contact_methods.py index 16a7a0d..04e8ac9 100755 --- a/get_info_on_all_users/contact_methods.py +++ b/get_info_on_all_users/contact_methods.py @@ -32,7 +32,7 @@ def print_contact_methods(user, session, csv): 'email': None, 'push': None, } - for contact_method in session.iter_all('users/%s/contact_methods'%user['id']): + for contact_method in session.rget('users/%s/contact_methods'%user['id']): if 'phone' in contact_method['type']: contacts['phone'] = '%s %s'%(contact_method['country_code'], contact_method['address']) elif 'sms' in contact_method['type']: