def list(self, updated_before=None, updated_after=None, created_after=None, created_before=None, updated=None, created=None, **kwargs): """ Return a list of :class:`Conference` resources :param status: Show conferences with this status :param friendly_name: Show conferences with this exact friendly_name :param date updated_after: List conferences updated after this date :param date updated_before: List conferences updated before this date :param date created_after: List conferences created after this date :param date created_before: List conferences created before this date """ kwargs["DateUpdated"] = parse_date(kwargs.get("date_updated", updated)) kwargs["DateCreated"] = parse_date(kwargs.get("date_created", created)) kwargs["DateUpdated<"] = updated_before kwargs["DateUpdated>"] = updated_after kwargs["DateCreated<"] = created_before kwargs["DateCreated>"] = created_after return self.get_instances(kwargs)
def list(self, from_=None, ended_after=None, ended_before=None, ended=None, started_before=None, started_after=None, started=None, **kwargs): """ Returns a page of :class:`Call` resources as a list. For paging informtion see :class:`ListResource` :param date after: Only list calls started after this datetime :param date before: Only list calls started before this datetime """ kwargs["from"] = from_ kwargs["StartTime<"] = started_before kwargs["StartTime>"] = started_after kwargs["StartTime"] = parse_date(started) kwargs["EndTime<"] = ended_before kwargs["EndTime>"] = ended_after kwargs["EndTime"] = parse_date(ended) return self.get_instances(kwargs)
def list(self, before=None, after=None, date_created=None, **kw): """ Returns a page of :class:`Media` resources as a list. For paging information see :class:`ListResource`. :param date after: Only list media created after this date. :param date before: Only list media created before this date. :param date date_created: Only list media created on this date. :param sid message_sid: Only list media created by the given MessageSid """ kw["DateCreated<"] = before kw["DateCreated>"] = after kw["DateCreated"] = parse_date(date_created) return self.get_instances(kw)
def list(self, from_=None, before=None, after=None, date_sent=None, **kw): """ Returns a page of :class:`SMSMessage` resources as a list. For paging informtion see :class:`ListResource`. :param to: Only show SMS messages to this phone number. :param from_: Only show SMS messages from this phone number. :param date after: Only list SMS messages sent after this date. :param date before: Only list SMS message sent before this date. :param date date_sent: Only list SMS message sent on this date. :param `from_`: Only show SMS messages from this phone number. :param date after: Only list recordings logged after this datetime :param date before: Only list recordings logged before this datetime """ kw["From"] = from_ kw["DateSent<"] = before kw["DateSent>"] = after kw["DateSent"] = parse_date(date_sent) return self.get_instances(kw)