class documentation
class User(RESTObject, PreferencesMixin): (source)
Undocumented
Method | __init__ |
No summary |
Method | __repr__ |
Undocumented |
Method | __setattr__ |
Special case for the password |
Method | add |
Adds another email adress to the user record and returns an _Address object. |
Method | preferred |
Set a User's preferred address. |
Property | addresses |
Undocumented |
Property | preferred |
Preferred address of a User. |
Property | subscription |
Undocumented |
Property | subscriptions |
Undocumented |
Class Variable | _properties |
Undocumented |
Class Variable | _writable |
Undocumented |
Instance Variable | _preferred |
Undocumented |
Instance Variable | _subscription |
Undocumented |
Instance Variable | _subscriptions |
Undocumented |
Inherited from RESTObject
:
Method | __getattr__ |
Undocumented |
Method | delete |
Undocumented |
Inherited from RESTBase
(via RESTObject
):
Method | save |
Undocumented |
Property | rest |
Get data from API and cache it (only once per instance). |
Method | _get |
Undocumented |
Method | _reset |
Undocumented |
Method | _set |
Undocumented |
Class Variable | _autosave |
automatically send a PATCH request to the API when a value is changed. Otherwise, the save() method must be called. |
Class Variable | _read |
list of properties that cannot be written to (defaults to self_link only). |
Instance Variable | _changed |
Undocumented |
Instance Variable | _connection |
Undocumented |
Instance Variable | _rest |
Undocumented |
Instance Variable | _url |
Undocumented |
Inherited from PreferencesMixin
(via RESTObject
, RESTBase
):
Property | preferences |
Undocumented |
Parameters | |
connection:Connection. | An API connection object. |
url:str. | The url of the API endpoint. |
data:dict. | The initial data to use. |
Adds another email adress to the user record and returns an _Address object.
Parameters | |
email:str. | The address to add |
absorbbool. | set this to True if you want to add the address even if it already exists. It will import the existing user into the current one, not overwriting any previously set value. |
Set a User's preferred address.
New in version 3.2.3.
Parameters | |
Email to be set as the User's preferred address. If this address is not linked to the user, it will be linked to the user unless it is linked to an other user. If email is None, preferred address would be unset. |