H5 API 定义

Qzone API 端点定义。

此模块中的每个类定义一个 Qzone H5 API 端点 — 其 URL、HTTP 方法、请求参数类型和响应类型。QzoneApi 基类提供通用基础设施;具体子类连接特定端点。

class aioqzone.model.api.QzoneApi[TyRequest: QzoneRequestParams, TyResponse: QzoneResponse](*, referer='https://h5.qzone.qq.com/', params=<factory>)

下方所有 Qzone API 的基类。

host: ClassVar[str] = 'https://h5.qzone.qq.com'
http_method: ClassVar[Union[Literal['GET'], Literal['POST']]]
path: ClassVar[str]
keep_alive: ClassVar[bool] = True
is_json: ClassVar[bool] = False
referer: str
attach_token: ClassVar[bool] = True
login_required: ClassVar[bool] = True
params: TyRequest
response: ClassVar[Type[TyResponse]]
property url: URL
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.IndexPageApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

H5 Qzone 首页 API。GET /mqzone/index。返回包含 qzonetoken 的 IndexPageResp。

response

IndexPageResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
path: ClassVar[str] = '/mqzone/index'
keep_alive: ClassVar[bool] = False
attach_token: ClassVar[bool] = False
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.UserProfileApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

用户个人资料页面 API。GET /mqzone/profile。返回 ProfilePagePesp。

response

ProfilePagePesp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
path: ClassVar[str] = '/mqzone/profile'
keep_alive: ClassVar[bool] = False
attach_token: ClassVar[bool] = False
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.FeedPageApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

活跃 feed 分页 API。GET /mqzone_feeds/getActiveFeeds。返回 FeedPageResp。

response

FeedPageResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
path: ClassVar[str] = '/webapp/json/mqzone_feeds/getActiveFeeds'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.ShuoshuoApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

Feed 详情(说说)API。GET /mqzone_detail/shuoshuo。返回 DetailResp。

response

DetailResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
path: ClassVar[str] = '/webapp/json/mqzone_detail/shuoshuo'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.GetFeedsApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

用户 feed 分页 API。GET /get_feeds。返回 ProfileResp。

response

ProfileResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/get_feeds'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.GetCountApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

新 feed 数/保活 API。GET /feeds/mfeeds_get_count。返回 FeedCount。

response

FeedCount 的别名

params: GetCountParams
http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/feeds/mfeeds_get_count'
is_json: ClassVar[bool] = True
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.LikeApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

点赞 feed。POST /cgi-bin/likes/internal_dolike_app。返回 SingleReturnResp。

response

SingleReturnResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
path: ClassVar[str] = '/proxy/domain/w.qzone.qq.com/cgi-bin/likes/internal_dolike_app'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.UnlikeApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

取消点赞 feed。POST /cgi-bin/likes/internal_unlike_app。继承 LikeApi。

path: ClassVar[str] = '/proxy/domain/w.qzone.qq.com/cgi-bin/likes/internal_unlike_app'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.AddCommentApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

添加评论(JSON API)。POST /qzoneOperation/addComment。返回 AddCommentResp。

response

AddCommentResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
path: ClassVar[str] = '/webapp/json/qzoneOperation/addComment'
is_json: ClassVar[bool] = True
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.ListFriendApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

列出好友(预留,尚未接入)。GET /friend/mfriend_list。

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'GET'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/friend/mfriend_list'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.PublishMoodApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

发表说说。POST /mood/publish_mood。返回 PublishMoodResp。

response

PublishMoodResp 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/mood/publish_mood'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.AddOperationApi(*, referer='https://h5.qzone.qq.com/', params=<factory>, response)

通用操作 API。POST /operation/operation_add。

response: Type[QzoneResponse]
http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = 'operation/operation_add'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.UploadPicApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

上传图片。POST /cgi-bin/upload/cgi_upload_pic_v2。返回 UploadPicResponse。

response

UploadPicResponse 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/up/cgi-bin/upload/cgi_upload_pic_v2'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.PhotosPreuploadApi(*, referer='https://h5.qzone.qq.com/', params=<factory>)

发布前预上传照片。POST /cgi-bin/upload/cgi_upload_pic_v2。返回 PhotosPreuploadResponse。

response

PhotosPreuploadResponse 的别名

http_method: ClassVar[Union[Literal['GET'], Literal['POST']]] = 'POST'
host: ClassVar[str] = 'https://mobile.qzone.qq.com'
path: ClassVar[str] = '/up/cgi-bin/upload/cgi_upload_pic_v2'
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

参数

Qzone API 请求参数模型。

定义 QzoneRequestParams 及其每个 API 端点的子类。每个子类携带该端点特有的字段,并提供 build_params() 用于序列化。

class aioqzone.model.api.request.QzoneRequestParams
uin_fields: ClassVar[Tuple[str, ...]] = ()
ts_fields: ClassVar[Tuple[str, ...]] = ()
build_params(uin, timestamp=None)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.ActiveFeedsParams(*, attach_info)
attach_info: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.AvatarParams(*, hostuin, size=100)
hostuin: int
size: Literal[100, 640]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.GetFeedsParams(*, hostuin, attach_info='', res_type=2, refresh_type=2, format='json')
hostuin: int
attach_info: str
res_type: int
refresh_type: int
format: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.ProfileParams(*, hostuin, start_time=0)
hostuin: int
start_time: float
ts_fields: ClassVar[Tuple[str, ...]] = ('starttime',)
ms(start_time)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.ShuoshuoParams(*, fid, uin, appid=311, busi_param='', format='json', count=20, refresh_type=31, subid='')
fid: str
uin: int
appid: int
busi_param: str
format: str
count: int
refresh_type: int
subid: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.GetCountParams(*, format='json')
format: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.DolikeParam(*, unikey, curkey, appid, opr_type='like', format='purejson')
uin_fields: ClassVar[Tuple[str, ...]] = ('opuin',)
unikey: str
curkey: str
appid: int
opr_type: str
format: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.AddCommentParams(*, hostuin, fid, private, content, appid=311, bypass_param=<factory>, busi_param=<factory>)
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
hostuin: int
fid: str
private: int
content: str
appid: int
bypass_param: dict
busi_param: dict
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.AddCommentParamsLegacy(*, hostuin, topicId, feedsType=100, content, photos=<factory>, private, inCharset='utf-8', outCharset='utf-8', plat='qzone', source='ic', isSignIn='', format='fs', ref='feeds', richtype='1', paramstr='2')
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
hostuin: int
topicId: str
feedsType: int
content: str
photos: List[HttpUrl]
private: int
inCharset: str
outCharset: str
plat: str
source: str
isSignIn: str
format: str
ref: str
richtype: str
paramstr: str
richval(photos)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.DeleteCommentParams(*, hostUin, topicId, feedsType=100, commentId, commentUin, inCharset='utf-8', outCharset='utf-8', plat='qzone', source='ic', format='fs', ref='feeds', paramstr='2')
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
hostUin: int
topicId: str
feedsType: int
commentId: int
commentUin: int
inCharset: str
outCharset: str
plat: str
source: str
format: str
ref: str
paramstr: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.PublishMoodParams(*, content, photos=<factory>, sync_weibo=False, ugc_right=UgcRight.all, allow_uins=<factory>, deny_uins=<factory>, opr_type='publish_shuoshuo', format='json')
uin_fields: ClassVar[Tuple[str, ...]] = ('res_uin',)
content: str
photos: List[PhotoData]
sync_weibo: int
ugc_right: UgcRight
allow_uins: List[int]

When ugc_right=part (16), only these QQ users can see this shuoshuo.

deny_uins: List[int]

When ugc_right=blacklist (128), these QQ users cannot see this shuoshuo.

opr_type: str
format: str
richval(photos)
uinlist_to_str(uins)
返回类型:

str

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.DeleteUgcParams(*, appid, fid, opr_type='delugc', real_del=0, format='json')
uin_fields: ClassVar[Tuple[str, ...]] = ('res_uin',)
appid: int
fid: str
opr_type: str
real_del: int
format: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.UploadPicParams(*, picture, hd_height, hd_width, hd_quality=70, base64=1, output_type='json', preupload=1, charset='utf-8', output_charset='utf-8', logintype='sid', Exif_CameraMaker='', Exif_CameraModel='', Exif_Time='')
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
picture: bytes
hd_height: int
hd_width: int
hd_quality: int
base64: int
output_type: str
preupload: int
charset: str
output_charset: str
logintype: str
Exif_CameraMaker: str
Exif_CameraModel: str
Exif_Time: str
b64_picture(picture)
返回类型:

str

classmethod from_image(image_file, quality=70)
classmethod from_bytes(image_bytes, quality=70)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.PhotosPreuploadParams(*, upload_pics, cur_num=0, upload_hd=0, preupload=2, output_type='json', uploadtype=1, albumtype=7, big_style=1, op_src=15003, charset='utf-8', output_charset='utf-8', refer='shuoshuo')
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
upload_pics: List[UploadPicResponse]
cur_num: int
upload_hd: int
preupload: int
output_type: str
uploadtype: int
albumtype: int
big_style: int
op_src: int
charset: str
output_charset: str
refer: str
property uploadNum
build_params(uin, timestamp=None)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.UgcRight(*values)
unknown = 0
all = 1
qq = 4
part = 16
self = 64
blacklist = 128
class aioqzone.model.api.request.PhotoData(*, albumid, lloc, sloc, type='', height=0, width=0, origin_uuid='', origin_height=0, origin_width=0)
albumid: str
lloc: str
sloc: str
type: str
height: int
width: int
origin_uuid: str
origin_height: int
origin_width: int
to_richval()
classmethod from_PicInfo(o)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.SetTopParams(*, key, set_top, need_change=0)
fid: str
set_top: bool
need_change: int
serialize_set_top(set_top)
返回类型:

str

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.VisitorParams(*, mask=7, page=1, fupdate=1, clear=1)
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
mask: int
page: int
fupdate: int
clear: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.request.MessageBoardParams(*, hostUin, num=10, start=0)
uin_fields: ClassVar[Tuple[str, ...]] = ('uin',)
hostUin: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

num: int
start: int

响应

Qzone API 响应模型。

定义 QzoneResponse 基类及其每个 API 端点的子类。包含 from_response_object() 和 response_to_object() 工厂方法用于 HTTP 响应解析。

class aioqzone.model.api.response.QzoneResponse
classmethod from_response_object(obj)

解析从 Qzone API 接收的响应文本或对象。

参数:

obj (Dict[str, Any]) -- 解析后的响应对象,参见 .response_to_object

抛出:

aioqzone.exception.QzoneError -- 如果返回结果码 != 0

返回类型:

Self

返回:

Self

async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.FeedPageResp(*, hasmore=False, attachinfo='', newcnt, undeal_info, vFeeds)

表示获取 feed 页面操作的响应。用于验证 aioqzone.api.h5.QzoneH5API.index() 和 aioqzone.api.h5.QzoneH5API.getActivateFeeds() 中的响应数据。

hasmore: bool
attachinfo: str
newcnt: int
undeal_info: FeedCount
vFeeds: List[FeedData]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.ProfileResp(*, hasmore=False, attachinfo='', newcnt, undeal_info, vFeeds)
vFeeds: List[ProfileFeedData]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.IndexPageResp(*, hasmore=False, attachinfo='', newcnt, undeal_info, vFeeds, qzonetoken='')
qzonetoken: str
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.ProfilePagePesp(*, info, feedpage, qzonetoken)
info: QzoneInfo
feedpage: ProfileResp
qzonetoken: str
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

classmethod from_response_object(obj)

解析从 Qzone API 接收的响应文本或对象。

参数:

obj (Dict[str, Any]) -- 解析后的响应对象,参见 .response_to_object

抛出:

aioqzone.exception.QzoneError -- 如果返回结果码 != 0

返回类型:

Self

返回:

Self

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.DetailResp(*, pic=None, video=None, summary=<factory>, comm, userinfo, fid, like=<factory>, comment=<factory>, original=None, operation=<factory>, visitor=<factory>, hasmore=False, attach_info='')
hasmore: bool
attach_info: str
classmethod remove_prefix(v)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.FeedCount(*, active_cnt=0, passive_cnt=0, gamebar_cnt=0, gift_cnt=0, visitor_cnt=0)
active_cnt: int
passive_cnt: int
gamebar_cnt: int
gift_cnt: int
visitor_cnt: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.SingleReturnResp
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.AddCommentResp(*, ret=0, msg='', verifyurl='', commentid=0, commentLikekey)
ret: int
msg: str
verifyurl: str
commentid: int
commentLikekey: HttpUrl
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.AddCommentLegacyResp(*, smooth_policy=<factory>, feeds='')
smooth_policy: dict
feeds: str
async classmethod response_to_object(response)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.DeleteCommentResp(*, feeds='')
feeds: str
async classmethod response_to_object(response)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.PublishMoodResp(*, ret=0, msg='', tid, undeal_info=<factory>)
ret: int
msg: str
fid: str
undeal_info: FeedCount
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.DeleteUgcResp(*, ret=0, msg='', undeal_info=<factory>)
ret: int
msg: str
undeal_info: FeedCount
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.UploadPicResponse(*, filelen, filemd5)
filelen: int
filemd5: str
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.PhotosPreuploadResponse(*, photos=<factory>)
photos: List[PicInfo]
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.FeedData(*, pic=None, video=None, summary=<factory>, comm, userinfo, fid, like=<factory>, comment=<factory>, original=None, operation=<factory>, visitor=<factory>)
like: LikeInfo
comment: FeedComment
original: Union[FeedOriginal, Share, None]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

operation: FeedOperation
visitor: Visitor
class aioqzone.model.api.response.PicInfo(*, pre, url, sloc, lloc, width, height, albumid)
pre: HttpUrl
url: HttpUrl
sloc: str

小图 id

lloc: str

大图 id

width: int
height: int
albumid: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.ProfileFeedData(*, pic=None, video=None, summary=<factory>, comm, userinfo, fid, like=<factory>, comment=<factory>, original=None, operation=<factory>, visitor=<factory>)
like: ProfileLikeInfo
comment: ProfileComment
original: Union[ProfileFeedOriginal, Share, None]
operation: FeedOperation
visitor: Visitor
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.AvatarResponse(*, avatar)
avatar: bytes
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.VisitorResp(*, Ishost=0, page=1, totalpage=1, todaycount=0, totalcount=0, noright_todaycount=0, noright_totalcount=0, items=[])
Ishost: int
page: int
totalpage: int
todaycount: int
totalcount: int
noright_todaycount: int
noright_totalcount: int
items: List[VisitorItem]
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.VisitorUser(*, uin, src, platform_src, service_src, time, hide_from, is_hide_visit, name, yellow=-1, supervip=0)
uin: int
src: int
platform_src: int
service_src: int
time: int
hide_from: int
is_hide_visit: int
name: str
yellow: int
supervip: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.VisitorItem(*, uin, src, platform_src, service_src, time, hide_from, is_hide_visit, name, yellow=-1, supervip=0, uins=[], shuoshuoes=[])
uin: int
src: int
platform_src: int
service_src: int
time: int
hide_from: int
is_hide_visit: int
name: str
yellow: int
supervip: int
uins: List[VisitorUser]
shuoshuoes: List[ShuoshuoSnapshot]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.ShuoshuoSnapshot(*, id, src, platform_src, service_src, vtime, url, imgsrc, name)
model_config: ClassVar[ConfigDict] = {'union_mode': 'left_to_right'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: str
src: int
platform_src: int
service_src: int
vtime: int
url: Union[HttpUrl, str]
imgsrc: Union[HttpUrl, str]
name: str
class aioqzone.model.api.response.ReplyItem(*, content, uin, time, nick)
content: str
uin: int
time: int
nick: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.CommentListItem(*, id, secret, pasterid, bmp, pubtime, modifytime, effect, type, uin=None, nickname=None, capacity=None, htmlContent=None, ubbContent=None, signature=None, replyList=<factory>)
id: str
secret: int
pasterid: str
bmp: str
pubtime: str
modifytime: int
effect: int
type: int
uin: Optional[int]
nickname: Optional[str]
capacity: Optional[int]
htmlContent: Optional[str]
ubbContent: Optional[str]
signature: Optional[str]
replyList: Optional[List[ReplyItem]]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.AuthorInfo(*, msg='', htmlMsg='', sign='')
msg: str
htmlMsg: str
sign: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class aioqzone.model.api.response.MessageBoardResp(*, auditNum=None, auditON=None, total, authorInfo=<factory>, commentList=<factory>)
auditNum: Optional[int]
auditON: Optional[int]
total: int
authorInfo: AuthorInfo
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

commentList: List[CommentListItem]
async classmethod response_to_object(response)
返回类型:

Dict[str, Any]