Esempio n. 1
0
	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)
Esempio n. 2
0
	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)
Esempio n. 3
0
	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)