Users¶
Remember instance an object of FouryouseeAPI, according
to the basic set up
Getting the users¶
- fouryousee.FouryouseeAPI.get_users(self) List[dict]¶
Get the users of the 4YouSee account.
- Returns
List of dicts, where every dict, depicts a user.
- Return type
list
Usage
Once “my” object has been created. You can execute the next:
>>> my.get_users() [{'id': 2, 'name': 'foo', 'username': 'foobar', 'email': 'foobar@gmail.com', 'group': {'id': 2, 'name': 'Administrador'}}]
Getting the users groups¶
- fouryousee.FouryouseeAPI.get_users_groups(self) List[dict]¶
Get the users group of the 4YouSee account.
- Returns
List of dicts, where every dict, depicts a users group.
- Return type
list
Usage
Once “my” object has been created. You can execute the next:
>>> my.get_users_groups() [{'id': 2, 'name': 'Administrador', 'description': 'Administradores do 4YouSee Manager.'}]