投稿¶
説明
説明
- class yaylib.api.PostApi(client)[ソース]¶
投稿 API
- async add_bookmark(user_id: int, post_id: int) BookmarkPostResponse [ソース]¶
ブックマークに追加する
- Args:
user_id (int): post_id (int):
- Returns:
BookmarkPostResponse:
- async add_group_highlight_post(group_id: int, post_id: int) Response [ソース]¶
投稿をグループのまとめに追加する
- Args:
group_id (int): post_id (int):
- Returns:
Response:
- async create_call_post(text: str = None, **params) CreatePostResponse [ソース]¶
通話の投稿を作成する
- Args:
text (str, optional): font_size (int, optional): color (int, optional): group_id (int, optional): call_type (str, optional): category_id (int, optional): game_title (str, optional): joinable_by (str, optional): message_tags (List, optional): attachment_filename (str, optional): attachment_2_filename (str, optional): attachment_3_filename (str, optional): attachment_4_filename (str, optional): attachment_5_filename (str, optional): attachment_6_filename (str, optional): attachment_7_filename (str, optional): attachment_8_filename (str, optional): attachment_9_filename (str, optional):
- Returns:
CreatePostResponse:
- async create_post(text: str = None, **params) Post [ソース]¶
投稿を作成する
- Args:
text (str, optional): font_size (int, optional): . Defaults to 0. color (int, optional): . Defaults to 0. in_reply_to (int, optional): group_id (int, optional): mention_ids (List[int], optional): choices (List[str], optional): shared_url (str, optional): message_tags (List, optional): attachment_filename (str, optional): attachment_2_filename (str, optional): attachment_3_filename (str, optional): attachment_4_filename (str, optional): attachment_5_filename (str, optional): attachment_6_filename (str, optional): attachment_7_filename (str, optional): attachment_8_filename (str, optional): attachment_9_filename (str, optional): video_file_name (str, optional):
- Returns:
Post:
- async create_repost(post_id: int, text: str = None, **params) CreatePostResponse [ソース]¶
投稿を(´∀`∩)↑age↑する
- Args:
post_id (int): text (str, optional): font_size (int, optional): color (int, optional): in_reply_to (int, optional): group_id (int, optional): mention_ids (List[int], optional): choices (List[str], optional): shared_url (Dict[str, str | int], optional): message_tags (List, optional): attachment_filename (str, optional): attachment_2_filename (str, optional): attachment_3_filename (str, optional): attachment_4_filename (str, optional): attachment_5_filename (str, optional): attachment_6_filename (str, optional): attachment_7_filename (str, optional): attachment_8_filename (str, optional): attachment_9_filename (str, optional): video_file_name (str, optional):
- Returns:
CreatePostResponse:
シェア投稿を作成する
- Args:
shareable_type (str): shareable_id (int): text (str, optional): font_size (int, optional): color (int, optional): group_id (int, optional):
- Returns:
Post:
- async create_thread_post(thread_id: int, text: str = None, **params) Post [ソース]¶
スレッドの投稿を作成する
- Args:
thread_id (int): text (str, optional): font_size (int, optional): color (int, optional): in_reply_to (int, optional): group_id (int, optional): mention_ids (List[int], optional): choices (list[str], optional): shared_url (Dict[str, str | int], optional): message_tags (List, optional): attachment_filename (str, optional): attachment_2_filename (str, optional): attachment_3_filename (str, optional): attachment_4_filename (str, optional): attachment_5_filename (str, optional): attachment_6_filename (str, optional): attachment_7_filename (str, optional): attachment_8_filename (str, optional): attachment_9_filename (str, optional): video_file_name (str, optional):
- Returns:
Post:
- async delete_bookmark(user_id: int, post_id: int) Response [ソース]¶
ブックマークを削除する
- Args:
user_id (int): post_id (int):
- Returns:
Response:
- async delete_group_highlight_post(group_id: int, post_id: int) Response [ソース]¶
サークルのまとめから投稿を解除する
- Args:
group_id (int): post_id (int):
- Returns:
Response:
- async delete_posts(post_ids: List[int]) Response [ソース]¶
投稿を削除する
- Args:
post_ids (List[int]):
- Returns:
Response:
- async get_bookmark(user_id: int, **params) PostsResponse [ソース]¶
ブックマークを取得する
- Args:
user_id (int): from_str (str, optional):
- Returns:
PostsResponse:
- async get_conversation(conversation_id: int, **params) PostsResponse [ソース]¶
リプライを含める投稿の会話を取得する
- Args:
conversation_id (int): group_id (int, optional): thread_id (int, optional): from_post_id (int, optional): number (int, optional): reverse (bool, optional):
- Returns:
PostsResponse:
- async get_conversation_root_posts(post_ids: List[int]) PostsResponse [ソース]¶
会話の原点の投稿を取得する
- Args:
post_ids (List[int]):
- Returns:
PostsResponse:
- async get_following_call_timeline(**params) PostsResponse [ソース]¶
フォロー中の通話を取得する
- Args:
from_timestamp (int, optional): number (int, optional): category_id (int, optional): include_circle_call (bool, optional): exclude_recent_gomimushi (bool, optional):
- Returns:
PostsResponse:
- async get_following_timeline(**params) PostsResponse [ソース]¶
フォロー中のタイムラインを取得する
- Args:
from_str (str, optional): only_root (bool, optional): order_by (str, optional): number (int, optional): mxn (int, optional): reduce_selfie (bool, optional): custom_generation_range (bool, optional):
- Returns:
PostsResponse:
- async get_group_highlight_posts(group_id: int, **params) PostsResponse [ソース]¶
グループのまとめ投稿を取得する
- Args:
group_id (int): from_post (int, optional): number (int, optional):
- Returns:
PostsResponse:
- async get_group_timeline(group_id: int, **params) PostsResponse [ソース]¶
グループのタイムラインを取得する
- Args:
group_id (int): from_post_id (int, optional): reverse (bool, optional): post_type (str, optional): number (int, optional): only_root (bool, optional):
- Returns:
PostsResponse:
- async get_group_timeline_by_keyword(group_id: int, keyword: str, **params) PostsResponse [ソース]¶
グループの投稿をキーワードで検索する
- Args:
group_id (int): keyword (str): from_post_id (int, optional): number (int, optional): only_thread_posts (bool, optional):
- Returns:
PostsResponse:
- async get_my_posts(**params) PostsResponse [ソース]¶
自分の投稿を取得する
- Args:
from_post_id (int, optional): number (int, optional): include_group_post (bool, optional):
- Returns:
PostsResponse:
- async get_post(post_id: int) PostResponse [ソース]¶
投稿の詳細を取得する
- Args:
post_id (int):
- Returns:
PostResponse:
- async get_post_likers(post_id: int, **params) PostLikersResponse [ソース]¶
投稿にいいねしたユーザーを取得する
- Args:
post_id (int): from_id (int, optional): number (int, optional):
- Returns:
PostLikersResponse:
- async get_posts(post_ids: List[int]) PostsResponse [ソース]¶
複数の投稿を取得する
- Args:
post_ids (List[int]):
- Returns:
PostsResponse:
- async get_recommended_post_tags(**params) PostTagsResponse [ソース]¶
おすすめのタグ候補を取得する
- Args:
tag (str, optional): save_recent_search (bool, optional):
- Returns:
PostTagsResponse:
- async get_recommended_posts(**params) PostsResponse [ソース]¶
おすすめの投稿を取得する
- Args:
experiment_num (int): variant_num (int, optional): number (int, optional):
- Returns:
PostsResponse:
- async get_reposts(post_id: int, **params: int) PostsResponse [ソース]¶
投稿の(´∀`∩)↑age↑を取得する
- Args:
post_id (int): from_post_id (int, optional): number (int, optional):
- Returns:
PostsResponse:
- async get_timeline(**params) PostsResponse [ソース]¶
タイムラインを取得する
- Args:
noreply_mode (bool, optional): from_post_id (int, optional): number (int, optional): order_by (str, optional): experiment_older_age_rules (bool, optional): shared_interest_categories (bool, optional): mxn (int, optional): en (int, optional): vn (int, optional): reduce_selfie (bool, optional): custom_generation_range (bool, optional):
- Returns:
PostsResponse:
- async get_timeline_by_hashtag(hashtag: str, **params) PostsResponse [ソース]¶
ハッシュタグでタイムラインを検索する
- Args:
hashtag (str): from_post_id (int, optional): number (int, optional):
- Returns:
PostsResponse:
- async get_timeline_by_keyword(keyword: str = None, **params) PostsResponse [ソース]¶
キーワードでタイムラインを検索する
- Args:
keyword (str, optional): from_post_id (int, optional): number (int, optional):
- Returns:
PostsResponse:
- async get_timeline_calls(**params) PostsResponse [ソース]¶
誰でも通話を取得する
- Args:
group_id (int, optional): from_timestamp (int, optional): number (int, optional): category_id (int, optional): call_type (str, optional): Defaults to "voice". include_circle_call (bool, optional): cross_generation (bool, optional): exclude_recent_gomimushi (bool, optional): shared_interest_categories (bool, optional):
- Returns:
PostsResponse:
- async get_user_timeline(user_id: int, **params) PostsResponse [ソース]¶
ユーザーのタイムラインを取得する
- Args:
user_id (int): from_post_id (int, optional): number (int, optional): post_type (str, optional):
- Returns:
PostsResponse:
- async like(post_ids: List[int]) LikePostsResponse [ソース]¶
投稿にいいねする
- Args:
post_ids (List[int]):
- Returns:
LikePostsResponse:
- async pin_group_post(post_id: int, group_id: int) Response [ソース]¶
サークルの投稿をピン留めする
- Args:
post_id (int): group_id (int):
- Returns:
Response:
- async unpin_group_post(group_id: int) Response [ソース]¶
グループのピン投稿を解除する
- Args:
group_id (int):
- Returns:
Response:
- async unpin_post(post_id: int) Response [ソース]¶
プロフィール投稿のピンを解除する
- Args:
post_id (int):
- Returns:
Response:
- async update_post(post_id: int, text: str = None, **params) Post [ソース]¶
投稿を編集する
- Args:
post_id (int): text (str, optional): font_size (int, optional): color (int, optional): message_tags (List, optional):
- Returns:
Post:
- async vote_survey(survey_id: int, choice_id: int) VoteSurveyResponse [ソース]¶
アンケートに投票する
- Args:
survey_id (int): choice_id (int):
- Returns:
VoteSurveyResponse: