account module

class account.AccountDecoder(*, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, strict=True, object_pairs_hook=None)

Bases: json.decoder.JSONDecoder

Subclass of json decoder made for the account-specific JSON decodings.

decode(obj: Any, w: Optional[Any] = None) str

Return the Python representation of s (a str instance containing a JSON document).

class account.AccountEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: json.encoder.JSONEncoder

Subclass of json decoder made for the account-specific JSON encodings.

default(obj: Any) Any

Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

For example, to support arbitrary iterators, you could implement default like this:

def default(self, o):
    try:
        iterable = iter(o)
    except TypeError:
        pass
    else:
        return list(iterable)
    # Let the base class default method raise the TypeError
    return JSONEncoder.default(self, o)
account.add_external_calendar()
account.autosave()
account.before_account_request()
account.delete_external_calendar(id)
account.delete_schedule(id)
account.get_data()
account.index()
account.load_schedule(id)
account.save()
account.update_label(id)