Listeners
Retrieving listener objects
- class ListenerMixin
This class defines all functions related to
BlueConic listeners
.- get_listener(listener_id)
Gets the listener with the listener ID and returns it as a
BlueConic listeners
.- Parameters
listener_id (str) – The ID of the desired listener
- Raises
HTTPError
: Request fails- Returns
A listener object
- Return type
- Usage:
>>> import blueconic >>> bc = blueconic.Client() >>> bc.get_listener('example-listener-id') <blueconic.domain.listener.Listener>
- get_listeners(start=0, count=10000000)
Gets all listeners and returns them in a generator with all
BlueConic listeners
.- Parameters
- Returns
Iterator with Listener
- Return type
Iterator[Listener]
- Usage:
>>> import blueconic >>> bc = blueconic.Client() >>> bc.get_listeners() <generator object Listener.get_listeners>