isogeo_pysdk.api.routes_user module

Isogeo API v1 - API Routes for Users entities

See: http://help.isogeo.com/api/complete/index.html

class isogeo_pysdk.api.routes_user.ApiUser(api_client=None)[source]

Bases: object

Routes as methods of Isogeo API used to manipulate users (conditions).

listing() → list[source]

Get registered users.

Example:
>>> # get all registered users
>>> users = isogeo.user.listing()
>>> print(len(users))
925
>>> # filter on staff users (as list)
>>> staff = [user for user in users if user.get("staff")]
>>> print(len(staff))
10
>>> # filter on users with an email from isogeo(as list)
>>> users_isogeo = [user for user in users if "@isogeo" in user.get("contact").get("email")]
>>> print(len(users_isogeo))
37
user(user_id: str, include: list = ['_abilities']) → isogeo_pysdk.models.user.User[source]

Get details about a specific user.

Parameters:
  • user_id (str) – user UUID
  • include (list) – additionnal subresource to include in the response