示例#1
0
 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)
示例#2
0
 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())
示例#3
0
 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')
示例#4
0
 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)
示例#5
0
 def __init__(self):
     super().__init__()
     self.limit = params.QueryStringParam('limit', False, int, DEFAULT_LIMIT)
     self.offset = params.QueryStringParam('offset', False, int)
示例#6
0
 def __init__(self):
     super().__init__()
     self.before_id = params.QueryStringParam('before_id', False, int)
     self.post_format = params.QueryStringParam('filter', False, str)
示例#7
0
 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)
示例#8
0
 def __init__(self):
     super().__init__()
     self.api_key = params.QueryStringParam('api_key', True, str)
示例#9
0
 def __init__(self):
     super().__init__()
     self.offset = params.QueryStringParam('offset', False, int)
     self.post_format = params.QueryStringParam('filter', False, str)