lucjon / Py-StackExchange

A Python binding for the StackExchange API
http://stackapps.com/questions/198/py-stackexchange-an-api-wrapper-for-python
BSD 3-Clause "New" or "Revised" License
228 stars 76 forks source link

Add is_employee field to the User model #67

Closed diazona closed 6 years ago

diazona commented 6 years ago

I added the is_employee field to the User model, since it's part of the returned JSON (in API 2.2) but wasn't accounted for in this code, as far as I could tell. I need this to get lists of appointed moderators on beta sites; the API doesn't provide an endpoint for that, I have to do it by getting the list of all mods and filtering out employees and Community. I thought this might be a good addition to the code.

lucjon commented 6 years ago

That looks good, thanks for spotting this!