xys

许愿树

p115client.tool.xys.wish_adopt(client: str | PathLike | P115Client, wish_id: str, aid_id: int | str, to_cid: int = 0, *, async_: Literal[False] = False, **request_kwargs) dict[source]
p115client.tool.xys.wish_adopt(client: str | PathLike | P115Client, wish_id: str, aid_id: int | str, to_cid: int = 0, *, async_: Literal[True], **request_kwargs) Coroutine[Any, Any, dict]

许愿树活动:采纳助愿

Parameters:
  • client – 115 客户端或 cookies

  • wish_id – 许愿 id

  • aid_id – 助愿 id

  • to_cid – 助愿的分享文件保存到你的网盘中目录的 id

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

接口的返回信息

p115client.tool.xys.wish_aid_iter(client: str | PathLike | P115Client, wish_id: str, page_size: int = 1000, *, async_: Literal[False] = False, **request_kwargs) Iterator[dict][source]
p115client.tool.xys.wish_aid_iter(client: str | PathLike | P115Client, wish_id: str, page_size: int = 1000, *, async_: Literal[True], **request_kwargs) AsyncIterator[dict]

许愿树活动:许愿的助愿列表

Parameters:
  • client – 115 客户端或 cookies

  • wish_id – 许愿 id

  • page_size – 分页大小

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

迭代器,逐个返回助愿信息

p115client.tool.xys.wish_answer(client: str | PathLike | P115Client, wish_id: str, content: str = '帮你助个愿', file_ids: int | str | Iterable[int | str] = '', *, async_: Literal[False] = False, **request_kwargs) P115StrID[source]
p115client.tool.xys.wish_answer(client: str | PathLike | P115Client, wish_id: str, content: str = '帮你助个愿', file_ids: int | str | Iterable[int | str] = '', *, async_: Literal[True], **request_kwargs) Coroutine[Any, Any, P115StrID]

许愿树活动:创建助愿(助愿创建后需要等审核)

Note

如果从未调用过 wish_info(client, wish_id),请先调用,否则会报参数错误

Parameters:
  • client – 115 客户端或 cookies

  • wish_id – 许愿 id

  • content – 助愿内容

  • file_ids – 文件在你的网盘的 id,多个用逗号 “,” 隔开

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

助愿 id

p115client.tool.xys.wish_del(client: str | PathLike | P115Client, wish_id: str | Iterable[str], *, async_: Literal[False] = False, **request_kwargs) dict[source]
p115client.tool.xys.wish_del(client: str | PathLike | P115Client, wish_id: str | Iterable[str], *, async_: Literal[True], **request_kwargs) Coroutine[Any, Any, dict]

许愿树活动:删除许愿

Parameters:
  • client – 115 客户端或 cookies

  • wish_id – 许愿 id

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

接口的返回信息

p115client.tool.xys.wish_info(client: str | PathLike | P115Client, wish_id: str, *, async_: Literal[False] = False, **request_kwargs) dict[source]
p115client.tool.xys.wish_info(client: str | PathLike | P115Client, wish_id: str, *, async_: Literal[True], **request_kwargs) Coroutine[Any, Any, dict]

许愿树活动:许愿信息

Parameters:
  • client – 115 客户端或 cookies

  • wish_id – 许愿 id

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

许愿信息

p115client.tool.xys.wish_iter(client: str | PathLike | P115Client, type: int = 0, page_size: int = 1000, *, async_: Literal[False] = False, **request_kwargs) Iterator[dict][source]
p115client.tool.xys.wish_iter(client: str | PathLike | P115Client, type: int = 0, page_size: int = 1000, *, async_: Literal[True], **request_kwargs) AsyncIterator[dict]

许愿树活动:罗列我的许愿列表

Parameters:
  • client – 115 客户端或 cookies

  • type

    类型

    • 0: 全部

    • 1: 进行中

    • 2: 已实现

  • page_size – 分页大小

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

迭代器,逐个返回许愿许愿信息

p115client.tool.xys.wish_make(client: str | PathLike | P115Client, content: str = '随便许个愿', size: int = 5, *, async_: Literal[False] = False, **request_kwargs) P115StrID[source]
p115client.tool.xys.wish_make(client: str | PathLike | P115Client, content: str = '随便许个愿', size: int = 5, *, async_: Literal[True], **request_kwargs) Coroutine[Any, Any, P115StrID]

许愿树活动:创建许愿(许愿创建后需要等审核)

Parameters:
  • client – 115 客户端或 cookies

  • content – 许愿内容

  • size – 答谢空间大小,单位是 GB

  • async – 是否异步

  • request_kwargs – 其它请求参数

Returns:

许愿 id