def expire(self, timestamp, retries=None, headers=None, proxies=None, verify=None): """ Expire by setting the 'expired_on' timestamp. :param timestamp: The timestamp to set for an expiration date. :type timestamp: str :param retries: Number of retries to submit before stopping. :type retries: int :param headers: header info for requests. :type headers: dict :param proxies: proxy info for requests. :type proxies: dict :param verify: verify info for requests. :type verify: bool, str :returns: dict (using json.loads()) """ Broker.is_timestamp(timestamp) params = { td.EXPIRED_ON: timestamp } return Broker.post(self._DETAILS, params=params, retries=retries, headers=headers, proxies=proxies, verify=verify)
def expire(self, timestamp): """ Expire by setting the 'expired_on' timestamp. :param timestamp: The timestamp to set for an expiration date. :type timestamp: str """ Broker.is_timestamp(timestamp) self.set(ti.EXPIRED_ON, timestamp) self.save()
def expire(self, timestamp): """ Expire by setting the 'expired_on' timestamp. :param timestamp: The timestamp to set for an expiration date. :type timestamp: str """ Broker.is_timestamp(timestamp) params = { ti.EXPIRED_ON: timestamp } return Broker.post(self._DETAILS, params=params)
def expire(self, timestamp, retries=None): """ Expire by setting the 'expired_on' timestamp. :param timestamp: The timestamp to set for an expiration date. :type timestamp: str :param retries: Number of retries to submit before stopping. :type retries: int :returns: dict (using json.loads()) """ Broker.is_timestamp(timestamp) params = {td.EXPIRED_ON: timestamp} return Broker.post(self._DETAILS, params=params, retries=retries)
def expire(self, timestamp, retries=None): """ Expire by setting the 'expired_on' timestamp. :param timestamp: The timestamp to set for an expiration date. :type timestamp: str :param retries: Number of retries to submit before stopping. :type retries: int :returns: dict (using json.loads()) """ Broker.is_timestamp(timestamp) params = { td.EXPIRED_ON: timestamp } return Broker.post(self._DETAILS, params=params, retries=retries)