Trait MessagingApiApi
Source pub trait MessagingApiApi: Send + Sync {
Show 63 methods
// Required methods
fn broadcast(
&self,
broadcast_request: BroadcastRequest,
x_line_retry_key: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn cancel_default_rich_menu(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn create_rich_menu(
&self,
rich_menu_request: RichMenuRequest,
) -> Pin<Box<dyn Future<Output = Result<RichMenuIdResponse, Error>> + Send>>;
fn create_rich_menu_alias(
&self,
create_rich_menu_alias_request: CreateRichMenuAliasRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn delete_rich_menu(
&self,
rich_menu_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn delete_rich_menu_alias(
&self,
rich_menu_alias_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn get_aggregation_unit_name_list(
&self,
limit: Option<&str>,
start: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<GetAggregationUnitNameListResponse, Error>> + Send>>;
fn get_aggregation_unit_usage(
&self,
) -> Pin<Box<dyn Future<Output = Result<GetAggregationUnitUsageResponse, Error>> + Send>>;
fn get_bot_info(
&self,
) -> Pin<Box<dyn Future<Output = Result<BotInfoResponse, Error>> + Send>>;
fn get_default_rich_menu_id(
&self,
) -> Pin<Box<dyn Future<Output = Result<RichMenuIdResponse, Error>> + Send>>;
fn get_followers(
&self,
start: Option<&str>,
limit: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<GetFollowersResponse, Error>> + Send>>;
fn get_group_member_count(
&self,
group_id: &str,
) -> Pin<Box<dyn Future<Output = Result<GroupMemberCountResponse, Error>> + Send>>;
fn get_group_member_profile(
&self,
group_id: &str,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<GroupUserProfileResponse, Error>> + Send>>;
fn get_group_members_ids(
&self,
group_id: &str,
start: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<MembersIdsResponse, Error>> + Send>>;
fn get_group_summary(
&self,
group_id: &str,
) -> Pin<Box<dyn Future<Output = Result<GroupSummaryResponse, Error>> + Send>>;
fn get_joined_membership_users(
&self,
membership_id: i32,
start: Option<&str>,
limit: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<GetJoinedMembershipUsersResponse, Error>> + Send>>;
fn get_membership_list(
&self,
) -> Pin<Box<dyn Future<Output = Result<MembershipListResponse, Error>> + Send>>;
fn get_membership_subscription(
&self,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<GetMembershipSubscriptionResponse, Error>> + Send>>;
fn get_message_quota(
&self,
) -> Pin<Box<dyn Future<Output = Result<MessageQuotaResponse, Error>> + Send>>;
fn get_message_quota_consumption(
&self,
) -> Pin<Box<dyn Future<Output = Result<QuotaConsumptionResponse, Error>> + Send>>;
fn get_narrowcast_progress(
&self,
request_id: &str,
) -> Pin<Box<dyn Future<Output = Result<NarrowcastProgressResponse, Error>> + Send>>;
fn get_number_of_sent_broadcast_messages(
&self,
date: &str,
) -> Pin<Box<dyn Future<Output = Result<NumberOfMessagesResponse, Error>> + Send>>;
fn get_number_of_sent_multicast_messages(
&self,
date: &str,
) -> Pin<Box<dyn Future<Output = Result<NumberOfMessagesResponse, Error>> + Send>>;
fn get_number_of_sent_push_messages(
&self,
date: &str,
) -> Pin<Box<dyn Future<Output = Result<NumberOfMessagesResponse, Error>> + Send>>;
fn get_number_of_sent_reply_messages(
&self,
date: &str,
) -> Pin<Box<dyn Future<Output = Result<NumberOfMessagesResponse, Error>> + Send>>;
fn get_pnp_message_statistics(
&self,
date: &str,
) -> Pin<Box<dyn Future<Output = Result<NumberOfMessagesResponse, Error>> + Send>>;
fn get_profile(
&self,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<UserProfileResponse, Error>> + Send>>;
fn get_rich_menu(
&self,
rich_menu_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RichMenuResponse, Error>> + Send>>;
fn get_rich_menu_alias(
&self,
rich_menu_alias_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RichMenuAliasResponse, Error>> + Send>>;
fn get_rich_menu_alias_list(
&self,
) -> Pin<Box<dyn Future<Output = Result<RichMenuAliasListResponse, Error>> + Send>>;
fn get_rich_menu_batch_progress(
&self,
request_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RichMenuBatchProgressResponse, Error>> + Send>>;
fn get_rich_menu_id_of_user(
&self,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RichMenuIdResponse, Error>> + Send>>;
fn get_rich_menu_list(
&self,
) -> Pin<Box<dyn Future<Output = Result<RichMenuListResponse, Error>> + Send>>;
fn get_room_member_count(
&self,
room_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RoomMemberCountResponse, Error>> + Send>>;
fn get_room_member_profile(
&self,
room_id: &str,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<RoomUserProfileResponse, Error>> + Send>>;
fn get_room_members_ids(
&self,
room_id: &str,
start: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<MembersIdsResponse, Error>> + Send>>;
fn get_webhook_endpoint(
&self,
) -> Pin<Box<dyn Future<Output = Result<GetWebhookEndpointResponse, Error>> + Send>>;
fn issue_link_token(
&self,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<IssueLinkTokenResponse, Error>> + Send>>;
fn leave_group(
&self,
group_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn leave_room(
&self,
room_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn link_rich_menu_id_to_user(
&self,
user_id: &str,
rich_menu_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn link_rich_menu_id_to_users(
&self,
rich_menu_bulk_link_request: RichMenuBulkLinkRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn mark_messages_as_read(
&self,
mark_messages_as_read_request: MarkMessagesAsReadRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn multicast(
&self,
multicast_request: MulticastRequest,
x_line_retry_key: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn narrowcast(
&self,
narrowcast_request: NarrowcastRequest,
x_line_retry_key: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn push_message(
&self,
push_message_request: PushMessageRequest,
x_line_retry_key: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<PushMessageResponse, Error>> + Send>>;
fn push_messages_by_phone(
&self,
pnp_messages_request: PnpMessagesRequest,
x_line_delivery_tag: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn reply_message(
&self,
reply_message_request: ReplyMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<ReplyMessageResponse, Error>> + Send>>;
fn rich_menu_batch(
&self,
rich_menu_batch_request: RichMenuBatchRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn set_default_rich_menu(
&self,
rich_menu_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn set_webhook_endpoint(
&self,
set_webhook_endpoint_request: SetWebhookEndpointRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn show_loading_animation(
&self,
show_loading_animation_request: ShowLoadingAnimationRequest,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn test_webhook_endpoint(
&self,
test_webhook_endpoint_request: Option<TestWebhookEndpointRequest>,
) -> Pin<Box<dyn Future<Output = Result<TestWebhookEndpointResponse, Error>> + Send>>;
fn unlink_rich_menu_id_from_user(
&self,
user_id: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn unlink_rich_menu_id_from_users(
&self,
rich_menu_bulk_unlink_request: RichMenuBulkUnlinkRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn update_rich_menu_alias(
&self,
rich_menu_alias_id: &str,
update_rich_menu_alias_request: UpdateRichMenuAliasRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_broadcast(
&self,
validate_message_request: ValidateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_multicast(
&self,
validate_message_request: ValidateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_narrowcast(
&self,
validate_message_request: ValidateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_push(
&self,
validate_message_request: ValidateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_reply(
&self,
validate_message_request: ValidateMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_rich_menu_batch_request(
&self,
rich_menu_batch_request: RichMenuBatchRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn validate_rich_menu_object(
&self,
rich_menu_request: RichMenuRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
}