def devices(self, exclude_inactive = True): """ List devices. """ resp = self._send_request(DeviceHelper.URL_DEVICE_LIST, 'GET') devices = resp['devices'] return devices if not exclude_inactive else Helper._filter_inactive(devices)
def subscriptions(self, exclude_inactive = True): """ List Subscriptions """ subscriptions = self._send_request( SubscriptionHelper.URL_SUBSCRIPTION_LIST, 'GET', )['subscriptions'] return subscriptions if not exclude_inactive else Helper._filter_inactive(subscriptions)
def contacts(self, exclude_inactive = True): """ Get contacts """ contacts = self._send_request( ContactHelper.URL_CONTACTS_LIST, 'GET', )['contacts'] return contacts if not exclude_inactive else Helper._filter_inactive(contacts)