Users

Getting some users by ids from site:

from pystackapi import Site
from pystackapi.sites import StackOverflow

site = Site(StackOverflow)

users = site.get_users([2, 3])  # Getting users with ids 2 and 3

user = site.get_user(1)  # Getting a user with id 1

print(users)
print(user)

Last updated