Skip to content

Instantly share code, notes, and snippets.

@M0r13n
Created September 15, 2018 07:56
Show Gist options
  • Save M0r13n/34c2127310da4c118fc8565b16c4805b to your computer and use it in GitHub Desktop.
Save M0r13n/34c2127310da4c118fc8565b16c4805b to your computer and use it in GitHub Desktop.
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