Get the number of kudos given by each user on TribeHR. This is useful for things like manual badges that are based on the number of kudos given.
- Install Python 2.x.
git clone [email protected]:andrewsf/tribehr-kudo-givers.git
cd tribehr-kudo-givers
- Edit config.ini:
- subdomain (e.g.,
lithium
) - username (e.g.,
[email protected]
) - API key (Go to http://SUBDOMAIN.mytribehr.com/users/me/ and click "Edit Profile")
- subdomain (e.g.,
Run in the project directory:
python script.py
To get a lot more detailed information, like details about every user, including a list of every kudo and its date (User A --> User B, 4 months ago), add to config.ini
:
verbose = true
This thing is super slow. That's because of Python's built-in urllib2
module, which has hilariously terrible HTTP support. Switching to an external library like requests or urllib3 would be a great idea if I wanted to take on a third-party dependency.