Skip to content

Commit

Permalink
Update aapi.py
Browse files Browse the repository at this point in the history
在aapi中增加user_edit_ai_show_settings方法
  • Loading branch information
xiyihan0 authored Dec 24, 2023
1 parent 0d90cf5 commit b50e432
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pixivpy3/aapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,13 @@ def user_follow_delete(self, user_id: int | str, req_auth: bool = True) -> Parse
r = self.no_auth_requests_call("POST", url, data=data, req_auth=req_auth)
return self.parse_result(r)

# 设置用户选项中是否展现AI生成作品
def user_edit_ai_show_settings(self, setting:_BOOL, req_auth: bool = True) -> ParsedJson:
url = "%s/v1/user/ai-show-settings/edit" % self.hosts
data = {"show_ai": setting}
r = self.no_auth_requests_call("POST", url, data=data, req_auth=req_auth)
return self.parse_result(r)

# 用户收藏标签列表
def user_bookmark_tags_illust(
self,
Expand Down

0 comments on commit b50e432

Please sign in to comment.