def __init__(self): self.api_key = params.QueryStringParam('api_key', True, str) self.tag = params.QueryStringParam('tag', True, str) self.before = params.QueryStringParam('before', False, str) self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.post_filter = params.QueryStringParam('filter', False, Pc.PostFilter)
def __init__(self): super().__init__() self.api_key = params.QueryStringParam('api_key', True, str) self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.offset = params.QueryStringParam('offset', False, int) self.before = params.QueryStringParam( 'before', False, datetime, getter_lambda=lambda x: x.timestamp()) self.after = params.QueryStringParam( 'after', False, datetime, getter_lambda=lambda x: x.timestamp())
def __init__(self): super().__init__() self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.offset = params.QueryStringParam('offset', False, int) self.post_type = params.QueryStringParam('type', False, Pc.Types) self.since_post_id = params.QueryStringParam('since_id', False, int) self.reblog_info = params.QueryStringParam('reblog_info', False, bool, getter_lambda=lambda x: 'true' if x else 'false') self.notes_info = params.QueryStringParam('notes_info', False, bool, getter_lambda=lambda x: 'true' if x else 'false')
def __init__(self): super().__init__() self.api_key = params.QueryStringParam('api_key', True, str) self.post_type = params.BaseURLParam( 'type', False, str, '', getter_lambda=lambda x: '/{}'.format(x)) self.post_id = params.QueryStringParam('id', False, int) self.tag = params.QueryStringParam('tag', False, str) self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.offset = params.QueryStringParam('offset', False, int) self.reblog_info = params.QueryStringParam( 'reblog_info', False, bool, getter_lambda=lambda x: 'true' if x else 'false') self.notes_info = params.QueryStringParam( 'notes_info', False, bool, getter_lambda=lambda x: 'true' if x else 'false') self.post_format = params.QueryStringParam('filter', False, str)
def __init__(self): super().__init__() self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.offset = params.QueryStringParam('offset', False, int)
def __init__(self): super().__init__() self.before_id = params.QueryStringParam('before_id', False, int) self.post_format = params.QueryStringParam('filter', False, str)
def __init__(self): super().__init__() self.offset = params.QueryStringParam('offset', False, int) self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT) self.post_format = params.QueryStringParam('filter', False, str)
def __init__(self): super().__init__() self.api_key = params.QueryStringParam('api_key', True, str)
def __init__(self): super().__init__() self.offset = params.QueryStringParam('offset', False, int) self.post_format = params.QueryStringParam('filter', False, str)