Skip to content

Commit

Permalink
feat: api with BDUSS update to https connection
Browse files Browse the repository at this point in the history
  • Loading branch information
lumina37 committed Jan 17, 2023
1 parent 76ada64 commit 7b7bba9
Show file tree
Hide file tree
Showing 41 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion aiotieba/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.1a0"
__version__ = "3.0.1a1"
2 changes: 1 addition & 1 deletion aiotieba/client/add_post/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/post/add"),
url("https", APP_BASE_HOST, "/c/c/post/add"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/agree/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/agree/opAgree"),
url("https", APP_BASE_HOST, "/c/c/agree/opAgree"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/block/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/commitprison"),
url("https", APP_BASE_HOST, "/c/c/bawu/commitprison"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/del_post/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int,

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/delpost"),
url("https", APP_BASE_HOST, "/c/c/bawu/delpost"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/del_posts/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/multiDelPost"),
url("https", APP_BASE_HOST, "/c/c/bawu/multiDelPost"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/del_thread/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/delthread"),
url("https", APP_BASE_HOST, "/c/c/bawu/delthread"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/del_threads/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/multiDelThread"),
url("https", APP_BASE_HOST, "/c/c/bawu/multiDelThread"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/dislike_forum/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx.

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/excellent/submitDislike"),
url("https", APP_BASE_HOST, "/c/c/excellent/submitDislike"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/follow_forum/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int)

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/forum/like"),
url("https", APP_BASE_HOST, "/c/c/forum/like"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/follow_user/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, portrait:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/user/follow"),
url("https", APP_BASE_HOST, "/c/c/user/follow"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_ats/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int) -> httpx.R

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/u/feed/atme"),
url("https", APP_BASE_HOST, "/c/u/feed/atme"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_cid/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fname: str) -> http

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/goodlist"),
url("https", APP_BASE_HOST, "/c/c/bawu/goodlist"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_dislike_forums/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int, rn: int) -

request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/u/user/getDislikeList", "cmd=309692"),
url("https", APP_BASE_HOST, "/c/u/user/getDislikeList", "cmd=309692"),
pack_proto(core, pn, rn),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_fans/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/u/fans/page"),
url("https", APP_BASE_HOST, "/c/u/fans/page"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_follow_forums/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/f/forum/like"),
url("https", APP_BASE_HOST, "/c/f/forum/like"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_follows/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/u/follow/followList"),
url("https", APP_BASE_HOST, "/c/u/follow/followList"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_newmsg/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/s/msg"),
url("https", APP_BASE_HOST, "/c/s/msg"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_posts/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def pack_request(

request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/f/pb/page", "cmd=302001"),
url("https", APP_BASE_HOST, "/c/f/pb/page", "cmd=302001"),
pack_proto(
core, tid, pn, rn, sort, only_thread_author, with_comments, comment_sort_by_agree, comment_rn, is_fold
),
Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_recom_status/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx.

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/f/bawu/getRecomThreadList"),
url("https", APP_BASE_HOST, "/c/f/bawu/getRecomThreadList"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_replys/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int) -> httpx.R

request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/u/feed/replyme", "cmd=303007"),
url("https", APP_BASE_HOST, "/c/u/feed/replyme", "cmd=303007"),
pack_proto(core, pn),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_selfinfo_initNickname/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/s/initNickname"),
url("https", APP_BASE_HOST, "/c/s/initNickname"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_square_forums/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pack_proto(core: TiebaCore, cname: str, pn: int, rn: int) -> bytes:
def pack_request(client: httpx.AsyncClient, core: TiebaCore, cname: str, pn: int, rn: int) -> httpx.Request:
request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/f/forum/getForumSquare", "cmd=309653"),
url("https", APP_BASE_HOST, "/c/f/forum/getForumSquare", "cmd=309653"),
pack_proto(core, cname, pn, rn),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_statistics/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx.
]
request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/f/forum/getforumdata"),
url("https", APP_BASE_HOST, "/c/f/forum/getforumdata"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_tab_map/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pack_proto(core: TiebaCore, fname: str) -> bytes:
def pack_request(client: httpx.AsyncClient, core: TiebaCore, fname: str) -> httpx.Request:
request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/f/forum/searchPostForum", "cmd=309466"),
url("https", APP_BASE_HOST, "/c/f/forum/searchPostForum", "cmd=309466"),
pack_proto(core, fname),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_threads/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def pack_request(
) -> httpx.Request:
request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/f/frs/page", "cmd=301001"),
url("https", APP_BASE_HOST, "/c/f/frs/page", "cmd=301001"),
pack_proto(core, fname, pn, rn, sort, is_good),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_user_contents/get_posts/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def pack_proto(core: TiebaCore, user_id: int, pn: int) -> bytes:
def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: int) -> httpx.Request:
request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"),
url("https", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"),
pack_proto(core, user_id, pn),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/get_user_contents/get_threads/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def pack_proto(core: TiebaCore, user_id: int, pn: int, public_only: bool) -> byt
def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: int, public_only: bool) -> httpx.Request:
request = pack_proto_request(
client,
url("http", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"),
url("https", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"),
pack_proto(core, user_id, pn, public_only),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/good/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/commitgood"),
url("https", APP_BASE_HOST, "/c/c/bawu/commitgood"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/login/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/s/login"),
url("https", APP_BASE_HOST, "/c/s/login"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/move/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def pack_request(

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/moveTabThread"),
url("https", APP_BASE_HOST, "/c/c/bawu/moveTabThread"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/recommend/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int, tid: int)

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/pushRecomToPersonalized"),
url("https", APP_BASE_HOST, "/c/c/bawu/pushRecomToPersonalized"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/remove_fan/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, user_id:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/user/removeFans"),
url("https", APP_BASE_HOST, "/c/c/user/removeFans"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/set_privacy/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int, tid: int,

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/thread/setPrivacy"),
url("https", APP_BASE_HOST, "/c/c/thread/setPrivacy"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/sign_forum/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/forum/sign"),
url("https", APP_BASE_HOST, "/c/c/forum/sign"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/top/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/committop"),
url("https", APP_BASE_HOST, "/c/c/bawu/committop"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/undislike_forum/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx.

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/excellent/submitCancelDislike"),
url("https", APP_BASE_HOST, "/c/c/excellent/submitCancelDislike"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/unfollow_forum/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int)

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/forum/unfavolike"),
url("https", APP_BASE_HOST, "/c/c/forum/unfavolike"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/unfollow_user/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, portrait:

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/user/unfollow"),
url("https", APP_BASE_HOST, "/c/c/user/unfollow"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/ungood/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/commitgood"),
url("https", APP_BASE_HOST, "/c/c/bawu/commitgood"),
sign(data),
)

Expand Down
2 changes: 1 addition & 1 deletion aiotieba/client/untop/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st

request = pack_form_request(
client,
url("http", APP_BASE_HOST, "/c/c/bawu/committop"),
url("https", APP_BASE_HOST, "/c/c/bawu/committop"),
sign(data),
)

Expand Down

0 comments on commit 7b7bba9

Please sign in to comment.