Created
September 15, 2018 07:56
-
-
Save M0r13n/34c2127310da4c118fc8565b16c4805b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def salary(): | |
link = "" | |
key = "" | |
headers = { | |
'Accept': 'application/json' | |
} | |
params = { | |
'api_token': key, | |
} | |
result = r.get(link + '/users', headers=headers, params=params).json() | |
users = result['users'] | |
for user in users: | |
print("{name} verdient {salary}".format(name=user['username'], | |
salary=user['salary'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment