H5 API definations¶
- pydantic model aioqzone.model.api.QzoneApi¶
The base class for all Qzone APIs below.
-
field params:
TypeVar
(TyRequest
, bound=QzoneRequestParams
) [Optional]¶
-
response:
ClassVar
[Type
[TypeVar
(TyResponse
, bound=QzoneResponse
)]]¶
- property url: URL¶
-
field params:
- pydantic model aioqzone.model.api.IndexPageApi¶
- Fields:
- response¶
IndexPageResp
的别名
- pydantic model aioqzone.model.api.UserProfileApi¶
- Fields:
- response¶
ProfilePagePesp
的别名
- pydantic model aioqzone.model.api.FeedPageApi¶
- Fields:
- response¶
FeedPageResp
的别名
- pydantic model aioqzone.model.api.ShuoshuoApi¶
- Fields:
- response¶
DetailResp
的别名
- pydantic model aioqzone.model.api.GetFeedsApi¶
- Fields:
- response¶
ProfileResp
的别名
- pydantic model aioqzone.model.api.GetCountApi¶
-
-
field params:
GetCountParams
[Optional]¶
-
field params:
- pydantic model aioqzone.model.api.LikeApi¶
- Fields:
- response¶
SingleReturnResp
的别名
- pydantic model aioqzone.model.api.UnlikeApi¶
- Fields:
- pydantic model aioqzone.model.api.AddCommentApi¶
- Fields:
- response¶
AddCommentResp
的别名
- pydantic model aioqzone.model.api.ListFriendApi¶
- Fields:
- pydantic model aioqzone.model.api.PublishMoodApi¶
- Fields:
- response¶
PublishMoodResp
的别名
- pydantic model aioqzone.model.api.AddOperationApi¶
-
-
field response:
Type
[QzoneResponse
] [Required]¶
-
field response:
Parameters¶
- pydantic model aioqzone.model.api.request.ActiveFeedsParams¶
- Fields:
- pydantic model aioqzone.model.api.request.GetFeedsParams¶
- pydantic model aioqzone.model.api.request.ProfileParams¶
- Fields:
- ms(start_time)¶
- ts_fields: t.ClassVar[t.Tuple[str, ...]] = ('starttime',)¶
- pydantic model aioqzone.model.api.request.ShuoshuoParams¶
- Fields:
- pydantic model aioqzone.model.api.request.GetCountParams¶
- Fields:
- pydantic model aioqzone.model.api.request.DolikeParam¶
-
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('opuin',)¶
- pydantic model aioqzone.model.api.request.AddCommentParams¶
- Fields:
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('uin',)¶
- pydantic model aioqzone.model.api.request.PublishMoodParams¶
- Fields:
- richval(photos)¶
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('res_uin',)¶
- pydantic model aioqzone.model.api.request.DeleteUgcParams¶
-
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('res_uin',)¶
- pydantic model aioqzone.model.api.request.UploadPicParams¶
- Fields:
- classmethod from_bytes(image_bytes, quality=70)¶
- classmethod from_image(image_file, quality=70)¶
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('uin',)¶
- pydantic model aioqzone.model.api.request.PhotosPreuploadParams¶
- Fields:
-
field upload_pics:
List
[UploadPicResponse
] [Required]¶
- build_params(uin, timestamp=None)¶
- uin_fields: t.ClassVar[t.Tuple[str, ...]] = ('uin',)¶
- property uploadNum¶
- class aioqzone.model.api.request.UgcRight(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
- unknown = 0¶
- all = 1¶
- qq = 4¶
- part = 16¶
- self = 64¶
- blacklist = 128¶
Responses¶
- pydantic model aioqzone.model.api.response.QzoneResponse¶
- classmethod from_response_object(obj)¶
Parses the response text or object recieved from Qzone API.
- 参数:
obj (
Dict
[str
,Union
[bool
,int
,str
,Dict
[Union
[str
,int
],Union
[bool
,int
,str
,Dict
[Union
[str
,int
], JsonValue],List
[JsonValue]]],List
[Union
[bool
,int
,str
,Dict
[Union
[str
,int
], JsonValue],List
[JsonValue]]]]]) – the parsed response object. see .response_to_object- 抛出:
aioqzone.exception.QzoneError – if returned result code != 0
- 返回类型:
Self
- 返回:
Self
- pydantic model aioqzone.model.api.response.FeedPageResp¶
Represents RESPonse from get feed page operation. Used to validate response data in
aioqzone.api.h5.QzoneH5API.index()
andaioqzone.api.h5.QzoneH5API.getActivateFeeds()
- Fields:
- pydantic model aioqzone.model.api.response.ProfileResp¶
-
-
field vFeeds:
List
[ProfileFeedData
] [Required]¶
-
field vFeeds:
- pydantic model aioqzone.model.api.response.IndexPageResp¶
- Fields:
- async classmethod response_to_object(response)¶
- pydantic model aioqzone.model.api.response.ProfilePagePesp¶
- Fields:
-
field feedpage:
ProfileResp
[Required]¶
-
field info:
QzoneInfo
[Required]¶
- classmethod from_response_object(obj)¶
Parses the response text or object recieved from Qzone API.
- 参数:
obj (
Dict
[str
,Union
[bool
,int
,str
,Dict
[Union
[str
,int
],Union
[bool
,int
,str
,Dict
[Union
[str
,int
], JsonValue],List
[JsonValue]]],List
[Union
[bool
,int
,str
,Dict
[Union
[str
,int
], JsonValue],List
[JsonValue]]]]]) – the parsed response object. see .response_to_object- 抛出:
aioqzone.exception.QzoneError – if returned result code != 0
- 返回类型:
Self
- 返回:
Self
- async classmethod response_to_object(response)¶
- pydantic model aioqzone.model.api.response.DetailResp¶
- Fields:
- Validators:
remove_prefix
»all fields
- validator remove_prefix » all fields¶
- pydantic model aioqzone.model.api.response.FeedCount¶
- pydantic model aioqzone.model.api.response.SingleReturnResp¶
- pydantic model aioqzone.model.api.response.AddCommentResp¶
- Fields:
-
field commentLikekey:
Annotated
[Url
] [Required]¶ - Constraints:
max_length = 2083
allowed_schemes = [‘http’, ‘https’]
- pydantic model aioqzone.model.api.response.PublishMoodResp¶
- pydantic model aioqzone.model.api.response.DeleteUgcResp¶
- pydantic model aioqzone.model.api.response.UploadPicResponse¶
- Fields:
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- 返回类型:
- Args:
self: The BaseModel instance. context: The context.
- async classmethod response_to_object(response)¶
- pydantic model aioqzone.model.api.response.PhotosPreuploadResponse¶
-
- model_post_init(context, /)¶
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- 返回类型:
- Args:
self: The BaseModel instance. context: The context.
- async classmethod response_to_object(response)¶
- pydantic model aioqzone.model.api.response.FeedData¶
- Fields:
comment (aioqzone.model.api.feed.FeedComment)
like (aioqzone.model.api.feed.LikeInfo)
original (aioqzone.model.api.feed.FeedOriginal | aioqzone.model.api.feed.Share | None)
share_info (aioqzone.model.api.feed.ShareInfo)
-
field comment:
FeedComment
[Optional]¶
-
field like:
LikeInfo
[Optional]¶
- pydantic model aioqzone.model.api.response.PicInfo¶
- Fields:
-
field pre:
Annotated
[Url
] [Required]¶ - Constraints:
max_length = 2083
allowed_schemes = [‘http’, ‘https’]
-
field url:
Annotated
[Url
] [Required]¶ - Constraints:
max_length = 2083
allowed_schemes = [‘http’, ‘https’]
- pydantic model aioqzone.model.api.response.ProfileFeedData¶
- Fields:
comment (aioqzone.model.api.profile.ProfileComment)
like (aioqzone.model.api.profile.ProfileLikeInfo)
original (aioqzone.model.api.profile.ProfileFeedOriginal | aioqzone.model.api.feed.Share | None)
share_info (aioqzone.model.api.feed.ShareInfo)
-
field comment:
ProfileComment
[Optional]¶
-
field like:
ProfileLikeInfo
[Optional]¶
-
field original:
Union
[ProfileFeedOriginal
,Share
,None
] = None¶ - Constraints:
union_mode = left_to_right