Skip to content

len(api.domains) example from README not working #3

@Yannik

Description

@Yannik

Hi,

I have tried the len(api.domains) example from the README, and it leads to the following error:

>>> from httpnet.client import HttpNetClient
>>> AUTH_TOKEN='my-auth-token'
>>> api = HttpNetClient(auth_token=AUTH_TOKEN)
>>> len(api.domains)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object of type 'DomainService' has no len()

How is this supposed to work exactly? Should it internally do a find-operation (without a filter) to get the number of all domains?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions