<filename>services/authService/client/getUsers.py<gh_stars>0
#make a POST request
import requests
from requests.auth import HTTPBasicAuth

res = requests.get('http://localhost:5000/api/v1.0/users', auth=HTTPBasicAuth('INT_ADMIN', '<PASSWORD>'))

# print ('response from server:',res.text)

dictFromServer = res.json()

for items in dictFromServer:
    for users in dictFromServer['users']:
        for x in users:
            if x == "firstName" or x == "lastName":
                print (users[x])

<filename>services/authService/client/getUsers.py<gh_stars>0
#make a POST request
import requests
from requests.auth import HTTPBasicAuth

res = requests.get('http://localhost:5000/api/v1.0/users', auth=HTTPBasicAuth('INT_ADMIN', '<PASSWORD>'))

# print ('response from server:',res.text)

dictFromServer = res.json()

for items in dictFromServer:
    for users in dictFromServer['users']:
        for x in users:
            if x == "firstName" or x == "lastName":
                print (users[x])

#make a POST request # print ('response from server:',res.text)