line-bot-api 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb +15 -15
- data/lib/line/bot/v2/channel_access_token/model/channel_access_token_key_ids_response.rb +2 -2
- data/lib/line/bot/v2/channel_access_token/model/error_response.rb +2 -2
- data/lib/line/bot/v2/channel_access_token/model/issue_channel_access_token_response.rb +2 -2
- data/lib/line/bot/v2/channel_access_token/model/issue_short_lived_channel_access_token_response.rb +2 -2
- data/lib/line/bot/v2/channel_access_token/model/issue_stateless_channel_access_token_response.rb +2 -2
- data/lib/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rb +2 -2
- data/lib/line/bot/v2/insight/api/insight_client.rb +10 -10
- data/lib/line/bot/v2/insight/model/age_tile.rb +2 -2
- data/lib/line/bot/v2/insight/model/app_type_tile.rb +2 -2
- data/lib/line/bot/v2/insight/model/area_tile.rb +2 -2
- data/lib/line/bot/v2/insight/model/error_detail.rb +2 -2
- data/lib/line/bot/v2/insight/model/error_response.rb +3 -3
- data/lib/line/bot/v2/insight/model/gender_tile.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_friends_demographics_response.rb +7 -7
- data/lib/line/bot/v2/insight/model/get_message_event_response.rb +5 -5
- data/lib/line/bot/v2/insight/model/get_message_event_response_click.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_message_event_response_message.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_message_event_response_overview.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_number_of_followers_response.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_number_of_message_deliveries_response.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response.rb +5 -5
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_click.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_message.rb +2 -2
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_overview.rb +2 -2
- data/lib/line/bot/v2/insight/model/subscription_period_tile.rb +2 -2
- data/lib/line/bot/v2/liff/api/liff_client.rb +6 -6
- data/lib/line/bot/v2/liff/model/add_liff_app_request.rb +4 -4
- data/lib/line/bot/v2/liff/model/add_liff_app_response.rb +2 -2
- data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +3 -3
- data/lib/line/bot/v2/liff/model/liff_app.rb +4 -4
- data/lib/line/bot/v2/liff/model/liff_features.rb +2 -2
- data/lib/line/bot/v2/liff/model/liff_view.rb +2 -2
- data/lib/line/bot/v2/liff/model/update_liff_app_request.rb +4 -4
- data/lib/line/bot/v2/liff/model/update_liff_view.rb +2 -2
- data/lib/line/bot/v2/manage_audience/api/manage_audience_blob_client.rb +3 -3
- data/lib/line/bot/v2/manage_audience/api/manage_audience_client.rb +19 -19
- data/lib/line/bot/v2/manage_audience/model/adaccount.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/add_audience_to_audience_group_request.rb +3 -3
- data/lib/line/bot/v2/manage_audience/model/audience.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/audience_group.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/audience_group_job.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_audience_group_request.rb +3 -3
- data/lib/line/bot/v2/manage_audience/model/create_audience_group_response.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_click_based_audience_group_request.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_click_based_audience_group_response.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_imp_based_audience_group_request.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/create_imp_based_audience_group_response.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/detailed_owner.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/error_detail.rb +2 -2
- data/lib/line/bot/v2/manage_audience/model/error_response.rb +3 -3
- data/lib/line/bot/v2/manage_audience/model/get_audience_data_response.rb +5 -5
- data/lib/line/bot/v2/manage_audience/model/get_audience_groups_response.rb +3 -3
- data/lib/line/bot/v2/manage_audience/model/get_shared_audience_data_response.rb +5 -5
- data/lib/line/bot/v2/manage_audience/model/get_shared_audience_groups_response.rb +3 -3
- data/lib/line/bot/v2/manage_audience/model/update_audience_group_description_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb +10 -10
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +147 -147
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/acquisition_condition_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/action.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/age_demographic_filter.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/all_mention_target.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/alt_uri.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/app_type_demographic_filter.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/area_demographic_filter.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/audience_recipient.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/audio_message.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/bot_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/broadcast_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/buttons_template.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/camera_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/camera_roll_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/carousel_column.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/carousel_template.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/cash_back_fixed_price_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/cash_back_percentage_price_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/cash_back_price_info_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/chat_reference.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/clipboard_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/clipboard_imagemap_action.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/confirm_template.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_cash_back_reward_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_create_request.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/coupon_create_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_discount_reward_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_free_reward_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_gift_reward_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_list_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_message.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_others_reward_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/coupon_response.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/coupon_reward_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/create_rich_menu_alias_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/datetime_picker_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/demographic_filter.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_explicit_price_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_fixed_price_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_percentage_price_info_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/discount_price_info_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/emoji.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/emoji_substitution_object.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/error_detail.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/error_response.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/filter.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_block_style.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_box.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/flex_box_background.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_box_linear_gradient.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_bubble.rb +8 -8
- data/lib/line/bot/v2/messaging_api/model/flex_bubble_styles.rb +6 -6
- data/lib/line/bot/v2/messaging_api/model/flex_button.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_carousel.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_component.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_container.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_filler.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_icon.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_image.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/flex_message.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/flex_separator.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_span.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/flex_text.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/flex_video.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/gender_demographic_filter.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_aggregation_unit_name_list_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_aggregation_unit_usage_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_followers_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_joined_membership_users_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_membership_subscription_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/get_message_content_transcoding_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/get_webhook_endpoint_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/group_member_count_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/group_summary_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/group_user_profile_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/image_carousel_column.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/image_carousel_template.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/image_message.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/imagemap_action.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/imagemap_area.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/imagemap_base_size.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/imagemap_external_link.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/imagemap_message.rb +7 -7
- data/lib/line/bot/v2/messaging_api/model/imagemap_video.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/issue_link_token_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/limit.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/location_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/location_message.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/lottery_acquisition_condition_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_by_token_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/members_ids_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/membership.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/membership_list_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/mention_substitution_object.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/mention_target.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/message.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/message_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/message_imagemap_action.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/message_quota_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/messaging_api_pager_coupon_list_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/multicast_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/narrowcast_progress_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/narrowcast_request.rb +6 -6
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/normal_acquisition_condition_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/number_of_messages_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/operator_demographic_filter.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/operator_recipient.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/pnp_messages_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/postback_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/push_message_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/push_message_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/quick_reply.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/quick_reply_item.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/quota_consumption_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/recipient.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/redelivery_recipient.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/referral_acquisition_condition_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/reply_message_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/reply_message_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/rich_menu_alias_list_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/rich_menu_alias_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_area.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_link_operation.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_operation.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_progress_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_all_operation.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_operation.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bounds.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bulk_link_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bulk_unlink_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_id_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_list_response.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/rich_menu_request.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/rich_menu_size.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/rich_menu_switch_action.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/room_member_count_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/room_user_profile_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/sender.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/sent_message.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/set_webhook_endpoint_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/show_loading_animation_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/sticker_message.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/subscribed_membership_plan.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/subscribed_membership_user.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/subscription.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/subscription_period_demographic_filter.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/substitution_object.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/template.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/template_message.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/test_webhook_endpoint_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/test_webhook_endpoint_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/text_message.rb +5 -5
- data/lib/line/bot/v2/messaging_api/model/text_message_v2.rb +4 -4
- data/lib/line/bot/v2/messaging_api/model/update_rich_menu_alias_request.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/uri_action.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/uri_imagemap_action.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/user_mention_target.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/user_profile_response.rb +2 -2
- data/lib/line/bot/v2/messaging_api/model/validate_message_request.rb +3 -3
- data/lib/line/bot/v2/messaging_api/model/video_message.rb +4 -4
- data/lib/line/bot/v2/module/api/line_module_client.rb +5 -5
- data/lib/line/bot/v2/module/model/acquire_chat_control_request.rb +2 -2
- data/lib/line/bot/v2/module/model/detach_module_request.rb +2 -2
- data/lib/line/bot/v2/module/model/get_modules_response.rb +3 -3
- data/lib/line/bot/v2/module/model/module_bot.rb +2 -2
- data/lib/line/bot/v2/module_attach/api/line_module_attach_client.rb +2 -2
- data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +2 -2
- data/lib/line/bot/v2/shop/api/shop_client.rb +1 -1
- data/lib/line/bot/v2/shop/model/error_response.rb +2 -2
- data/lib/line/bot/v2/shop/model/mission_sticker_request.rb +2 -2
- data/lib/line/bot/v2/webhook/model/account_link_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/activated_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/all_mentionee.rb +2 -2
- data/lib/line/bot/v2/webhook/model/attached_module_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/audio_message_content.rb +3 -3
- data/lib/line/bot/v2/webhook/model/beacon_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/beacon_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/callback_request.rb +3 -3
- data/lib/line/bot/v2/webhook/model/chat_control.rb +2 -2
- data/lib/line/bot/v2/webhook/model/content_provider.rb +2 -2
- data/lib/line/bot/v2/webhook/model/deactivated_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/delivery_context.rb +2 -2
- data/lib/line/bot/v2/webhook/model/detached_module_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/emoji.rb +2 -2
- data/lib/line/bot/v2/webhook/model/event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/file_message_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/follow_detail.rb +2 -2
- data/lib/line/bot/v2/webhook/model/follow_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/group_source.rb +2 -2
- data/lib/line/bot/v2/webhook/model/image_message_content.rb +4 -4
- data/lib/line/bot/v2/webhook/model/image_set.rb +2 -2
- data/lib/line/bot/v2/webhook/model/join_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/joined_members.rb +3 -3
- data/lib/line/bot/v2/webhook/model/joined_membership_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/leave_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/left_members.rb +3 -3
- data/lib/line/bot/v2/webhook/model/left_membership_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/link_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/location_message_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/member_joined_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/member_left_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/membership_content.rb +3 -3
- data/lib/line/bot/v2/webhook/model/membership_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/mention.rb +3 -3
- data/lib/line/bot/v2/webhook/model/mentionee.rb +3 -3
- data/lib/line/bot/v2/webhook/model/message_content.rb +3 -3
- data/lib/line/bot/v2/webhook/model/message_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/module_content.rb +3 -3
- data/lib/line/bot/v2/webhook/model/module_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +2 -2
- data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/postback_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/postback_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/renewed_membership_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/room_source.rb +2 -2
- data/lib/line/bot/v2/webhook/model/source.rb +3 -3
- data/lib/line/bot/v2/webhook/model/sticker_message_content.rb +2 -2
- data/lib/line/bot/v2/webhook/model/text_message_content.rb +4 -4
- data/lib/line/bot/v2/webhook/model/unfollow_event.rb +4 -4
- data/lib/line/bot/v2/webhook/model/unsend_detail.rb +2 -2
- data/lib/line/bot/v2/webhook/model/unsend_event.rb +5 -5
- data/lib/line/bot/v2/webhook/model/user_mentionee.rb +2 -2
- data/lib/line/bot/v2/webhook/model/user_source.rb +2 -2
- data/lib/line/bot/v2/webhook/model/video_message_content.rb +3 -3
- data/lib/line/bot/v2/webhook/model/video_play_complete.rb +2 -2
- data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +5 -5
- data/lib/line/bot/version.rb +1 -1
- data/line-bot-api.gemspec +1 -1
- data/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs +4 -4
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +2 -2
- metadata +3 -3
|
@@ -58,7 +58,7 @@ module Line
|
|
|
58
58
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
59
59
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
60
60
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
61
|
-
def broadcast_with_http_info(
|
|
61
|
+
def broadcast_with_http_info(
|
|
62
62
|
broadcast_request:,
|
|
63
63
|
x_line_retry_key: nil
|
|
64
64
|
)
|
|
@@ -81,28 +81,28 @@ module Line
|
|
|
81
81
|
json.transform_keys! do |key|
|
|
82
82
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
83
83
|
end
|
|
84
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
84
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
85
85
|
[response_body, 400, response.each_header.to_h]
|
|
86
86
|
when 403
|
|
87
87
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
88
88
|
json.transform_keys! do |key|
|
|
89
89
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
90
90
|
end
|
|
91
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
91
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
92
92
|
[response_body, 403, response.each_header.to_h]
|
|
93
93
|
when 409
|
|
94
94
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
95
95
|
json.transform_keys! do |key|
|
|
96
96
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
97
97
|
end
|
|
98
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
98
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
99
99
|
[response_body, 409, response.each_header.to_h]
|
|
100
100
|
when 429
|
|
101
101
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
102
102
|
json.transform_keys! do |key|
|
|
103
103
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
104
104
|
end
|
|
105
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
105
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
106
106
|
[response_body, 429, response.each_header.to_h]
|
|
107
107
|
else
|
|
108
108
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -141,7 +141,7 @@ module Line
|
|
|
141
141
|
# @see https://developers.line.biz/en/reference/messaging-api/#cancel-default-rich-menu
|
|
142
142
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
143
143
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
144
|
-
def cancel_default_rich_menu_with_http_info(
|
|
144
|
+
def cancel_default_rich_menu_with_http_info(
|
|
145
145
|
)
|
|
146
146
|
path = "/v2/bot/user/all/richmenu"
|
|
147
147
|
|
|
@@ -183,7 +183,7 @@ module Line
|
|
|
183
183
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
184
184
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 410
|
|
185
185
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
186
|
-
def close_coupon_with_http_info(
|
|
186
|
+
def close_coupon_with_http_info(
|
|
187
187
|
coupon_id:
|
|
188
188
|
)
|
|
189
189
|
path = "/v2/bot/coupon/{couponId}/close"
|
|
@@ -201,21 +201,21 @@ module Line
|
|
|
201
201
|
json.transform_keys! do |key|
|
|
202
202
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
203
203
|
end
|
|
204
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
204
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
205
205
|
[response_body, 400, response.each_header.to_h]
|
|
206
206
|
when 404
|
|
207
207
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
208
208
|
json.transform_keys! do |key|
|
|
209
209
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
210
210
|
end
|
|
211
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
211
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
212
212
|
[response_body, 404, response.each_header.to_h]
|
|
213
213
|
when 410
|
|
214
214
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
215
215
|
json.transform_keys! do |key|
|
|
216
216
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
217
217
|
end
|
|
218
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
218
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
219
219
|
[response_body, 410, response.each_header.to_h]
|
|
220
220
|
else
|
|
221
221
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -252,7 +252,7 @@ module Line
|
|
|
252
252
|
# @return [Array(Line::Bot::V2::MessagingApi::CouponCreateResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
253
253
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
254
254
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
255
|
-
def create_coupon_with_http_info(
|
|
255
|
+
def create_coupon_with_http_info(
|
|
256
256
|
coupon_create_request: nil
|
|
257
257
|
)
|
|
258
258
|
path = "/v2/bot/coupon"
|
|
@@ -268,14 +268,14 @@ module Line
|
|
|
268
268
|
json.transform_keys! do |key|
|
|
269
269
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
270
270
|
end
|
|
271
|
-
response_body = Line::Bot::V2::MessagingApi::CouponCreateResponse.create(json)
|
|
271
|
+
response_body = Line::Bot::V2::MessagingApi::CouponCreateResponse.create(json)
|
|
272
272
|
[response_body, 200, response.each_header.to_h]
|
|
273
273
|
when 400
|
|
274
274
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
275
275
|
json.transform_keys! do |key|
|
|
276
276
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
277
277
|
end
|
|
278
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
278
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
279
279
|
[response_body, 400, response.each_header.to_h]
|
|
280
280
|
else
|
|
281
281
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -309,7 +309,7 @@ module Line
|
|
|
309
309
|
# @see https://developers.line.biz/en/reference/messaging-api/#create-rich-menu
|
|
310
310
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
311
311
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
312
|
-
def create_rich_menu_with_http_info(
|
|
312
|
+
def create_rich_menu_with_http_info(
|
|
313
313
|
rich_menu_request:
|
|
314
314
|
)
|
|
315
315
|
path = "/v2/bot/richmenu"
|
|
@@ -325,7 +325,7 @@ module Line
|
|
|
325
325
|
json.transform_keys! do |key|
|
|
326
326
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
327
327
|
end
|
|
328
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
328
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
329
329
|
[response_body, 200, response.each_header.to_h]
|
|
330
330
|
else
|
|
331
331
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -359,7 +359,7 @@ module Line
|
|
|
359
359
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
360
360
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
361
361
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
362
|
-
def create_rich_menu_alias_with_http_info(
|
|
362
|
+
def create_rich_menu_alias_with_http_info(
|
|
363
363
|
create_rich_menu_alias_request:
|
|
364
364
|
)
|
|
365
365
|
path = "/v2/bot/richmenu/alias"
|
|
@@ -377,7 +377,7 @@ module Line
|
|
|
377
377
|
json.transform_keys! do |key|
|
|
378
378
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
379
379
|
end
|
|
380
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
380
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
381
381
|
[response_body, 400, response.each_header.to_h]
|
|
382
382
|
else
|
|
383
383
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -411,7 +411,7 @@ module Line
|
|
|
411
411
|
# @see https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu
|
|
412
412
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
413
413
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
414
|
-
def delete_rich_menu_with_http_info(
|
|
414
|
+
def delete_rich_menu_with_http_info(
|
|
415
415
|
rich_menu_id:
|
|
416
416
|
)
|
|
417
417
|
path = "/v2/bot/richmenu/{richMenuId}"
|
|
@@ -456,7 +456,7 @@ module Line
|
|
|
456
456
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
457
457
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
458
458
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
459
|
-
def delete_rich_menu_alias_with_http_info(
|
|
459
|
+
def delete_rich_menu_alias_with_http_info(
|
|
460
460
|
rich_menu_alias_id:
|
|
461
461
|
)
|
|
462
462
|
path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
|
|
@@ -474,7 +474,7 @@ module Line
|
|
|
474
474
|
json.transform_keys! do |key|
|
|
475
475
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
476
476
|
end
|
|
477
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
477
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
478
478
|
[response_body, 400, response.each_header.to_h]
|
|
479
479
|
else
|
|
480
480
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -509,7 +509,7 @@ module Line
|
|
|
509
509
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month
|
|
510
510
|
# @return [Array(Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
511
511
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
512
|
-
def get_aggregation_unit_name_list_with_http_info(
|
|
512
|
+
def get_aggregation_unit_name_list_with_http_info(
|
|
513
513
|
limit: nil,
|
|
514
514
|
start: nil
|
|
515
515
|
)
|
|
@@ -530,7 +530,7 @@ module Line
|
|
|
530
530
|
json.transform_keys! do |key|
|
|
531
531
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
532
532
|
end
|
|
533
|
-
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse.create(json)
|
|
533
|
+
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse.create(json)
|
|
534
534
|
[response_body, 200, response.each_header.to_h]
|
|
535
535
|
else
|
|
536
536
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -565,7 +565,7 @@ module Line
|
|
|
565
565
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month
|
|
566
566
|
# @return [Array(Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
567
567
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
568
|
-
def get_aggregation_unit_usage_with_http_info(
|
|
568
|
+
def get_aggregation_unit_usage_with_http_info(
|
|
569
569
|
)
|
|
570
570
|
path = "/v2/bot/message/aggregation/info"
|
|
571
571
|
|
|
@@ -579,7 +579,7 @@ module Line
|
|
|
579
579
|
json.transform_keys! do |key|
|
|
580
580
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
581
581
|
end
|
|
582
|
-
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse.create(json)
|
|
582
|
+
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse.create(json)
|
|
583
583
|
[response_body, 200, response.each_header.to_h]
|
|
584
584
|
else
|
|
585
585
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -608,7 +608,7 @@ module Line
|
|
|
608
608
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-bot-info
|
|
609
609
|
# @return [Array(Line::Bot::V2::MessagingApi::BotInfoResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
610
610
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
611
|
-
def get_bot_info_with_http_info(
|
|
611
|
+
def get_bot_info_with_http_info(
|
|
612
612
|
)
|
|
613
613
|
path = "/v2/bot/info"
|
|
614
614
|
|
|
@@ -622,7 +622,7 @@ module Line
|
|
|
622
622
|
json.transform_keys! do |key|
|
|
623
623
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
624
624
|
end
|
|
625
|
-
response_body = Line::Bot::V2::MessagingApi::BotInfoResponse.create(json)
|
|
625
|
+
response_body = Line::Bot::V2::MessagingApi::BotInfoResponse.create(json)
|
|
626
626
|
[response_body, 200, response.each_header.to_h]
|
|
627
627
|
else
|
|
628
628
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -654,7 +654,7 @@ module Line
|
|
|
654
654
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
655
655
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
656
656
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
657
|
-
def get_coupon_detail_with_http_info(
|
|
657
|
+
def get_coupon_detail_with_http_info(
|
|
658
658
|
coupon_id:
|
|
659
659
|
)
|
|
660
660
|
path = "/v2/bot/coupon/{couponId}"
|
|
@@ -670,21 +670,21 @@ module Line
|
|
|
670
670
|
json.transform_keys! do |key|
|
|
671
671
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
672
672
|
end
|
|
673
|
-
response_body = Line::Bot::V2::MessagingApi::CouponResponse.create(json)
|
|
673
|
+
response_body = Line::Bot::V2::MessagingApi::CouponResponse.create(json)
|
|
674
674
|
[response_body, 200, response.each_header.to_h]
|
|
675
675
|
when 400
|
|
676
676
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
677
677
|
json.transform_keys! do |key|
|
|
678
678
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
679
679
|
end
|
|
680
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
680
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
681
681
|
[response_body, 400, response.each_header.to_h]
|
|
682
682
|
when 404
|
|
683
683
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
684
684
|
json.transform_keys! do |key|
|
|
685
685
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
686
686
|
end
|
|
687
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
687
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
688
688
|
[response_body, 404, response.each_header.to_h]
|
|
689
689
|
else
|
|
690
690
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -718,7 +718,7 @@ module Line
|
|
|
718
718
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id
|
|
719
719
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
720
720
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
721
|
-
def get_default_rich_menu_id_with_http_info(
|
|
721
|
+
def get_default_rich_menu_id_with_http_info(
|
|
722
722
|
)
|
|
723
723
|
path = "/v2/bot/user/all/richmenu"
|
|
724
724
|
|
|
@@ -732,7 +732,7 @@ module Line
|
|
|
732
732
|
json.transform_keys! do |key|
|
|
733
733
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
734
734
|
end
|
|
735
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
735
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
736
736
|
[response_body, 200, response.each_header.to_h]
|
|
737
737
|
else
|
|
738
738
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -763,7 +763,7 @@ module Line
|
|
|
763
763
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-follower-ids
|
|
764
764
|
# @return [Array(Line::Bot::V2::MessagingApi::GetFollowersResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
765
765
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
766
|
-
def get_followers_with_http_info(
|
|
766
|
+
def get_followers_with_http_info(
|
|
767
767
|
start: nil,
|
|
768
768
|
limit: nil
|
|
769
769
|
)
|
|
@@ -784,7 +784,7 @@ module Line
|
|
|
784
784
|
json.transform_keys! do |key|
|
|
785
785
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
786
786
|
end
|
|
787
|
-
response_body = Line::Bot::V2::MessagingApi::GetFollowersResponse.create(json)
|
|
787
|
+
response_body = Line::Bot::V2::MessagingApi::GetFollowersResponse.create(json)
|
|
788
788
|
[response_body, 200, response.each_header.to_h]
|
|
789
789
|
else
|
|
790
790
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -820,7 +820,7 @@ module Line
|
|
|
820
820
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
|
|
821
821
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupMemberCountResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
822
822
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
823
|
-
def get_group_member_count_with_http_info(
|
|
823
|
+
def get_group_member_count_with_http_info(
|
|
824
824
|
group_id:
|
|
825
825
|
)
|
|
826
826
|
path = "/v2/bot/group/{groupId}/members/count"
|
|
@@ -836,7 +836,7 @@ module Line
|
|
|
836
836
|
json.transform_keys! do |key|
|
|
837
837
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
838
838
|
end
|
|
839
|
-
response_body = Line::Bot::V2::MessagingApi::GroupMemberCountResponse.create(json)
|
|
839
|
+
response_body = Line::Bot::V2::MessagingApi::GroupMemberCountResponse.create(json)
|
|
840
840
|
[response_body, 200, response.each_header.to_h]
|
|
841
841
|
else
|
|
842
842
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -870,7 +870,7 @@ module Line
|
|
|
870
870
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
|
|
871
871
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupUserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
872
872
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
873
|
-
def get_group_member_profile_with_http_info(
|
|
873
|
+
def get_group_member_profile_with_http_info(
|
|
874
874
|
group_id:,
|
|
875
875
|
user_id:
|
|
876
876
|
)
|
|
@@ -888,7 +888,7 @@ module Line
|
|
|
888
888
|
json.transform_keys! do |key|
|
|
889
889
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
890
890
|
end
|
|
891
|
-
response_body = Line::Bot::V2::MessagingApi::GroupUserProfileResponse.create(json)
|
|
891
|
+
response_body = Line::Bot::V2::MessagingApi::GroupUserProfileResponse.create(json)
|
|
892
892
|
[response_body, 200, response.each_header.to_h]
|
|
893
893
|
else
|
|
894
894
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -925,7 +925,7 @@ module Line
|
|
|
925
925
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids
|
|
926
926
|
# @return [Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
927
927
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
928
|
-
def get_group_members_ids_with_http_info(
|
|
928
|
+
def get_group_members_ids_with_http_info(
|
|
929
929
|
group_id:,
|
|
930
930
|
start: nil
|
|
931
931
|
)
|
|
@@ -946,7 +946,7 @@ module Line
|
|
|
946
946
|
json.transform_keys! do |key|
|
|
947
947
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
948
948
|
end
|
|
949
|
-
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
949
|
+
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
950
950
|
[response_body, 200, response.each_header.to_h]
|
|
951
951
|
else
|
|
952
952
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -982,7 +982,7 @@ module Line
|
|
|
982
982
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-summary
|
|
983
983
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupSummaryResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
984
984
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
985
|
-
def get_group_summary_with_http_info(
|
|
985
|
+
def get_group_summary_with_http_info(
|
|
986
986
|
group_id:
|
|
987
987
|
)
|
|
988
988
|
path = "/v2/bot/group/{groupId}/summary"
|
|
@@ -998,7 +998,7 @@ module Line
|
|
|
998
998
|
json.transform_keys! do |key|
|
|
999
999
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1000
1000
|
end
|
|
1001
|
-
response_body = Line::Bot::V2::MessagingApi::GroupSummaryResponse.create(json)
|
|
1001
|
+
response_body = Line::Bot::V2::MessagingApi::GroupSummaryResponse.create(json)
|
|
1002
1002
|
[response_body, 200, response.each_header.to_h]
|
|
1003
1003
|
else
|
|
1004
1004
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1035,7 +1035,7 @@ module Line
|
|
|
1035
1035
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
1036
1036
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1037
1037
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1038
|
-
def get_joined_membership_users_with_http_info(
|
|
1038
|
+
def get_joined_membership_users_with_http_info(
|
|
1039
1039
|
membership_id:,
|
|
1040
1040
|
start: nil,
|
|
1041
1041
|
limit: nil
|
|
@@ -1058,21 +1058,21 @@ module Line
|
|
|
1058
1058
|
json.transform_keys! do |key|
|
|
1059
1059
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1060
1060
|
end
|
|
1061
|
-
response_body = Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse.create(json)
|
|
1061
|
+
response_body = Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse.create(json)
|
|
1062
1062
|
[response_body, 200, response.each_header.to_h]
|
|
1063
1063
|
when 400
|
|
1064
1064
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1065
1065
|
json.transform_keys! do |key|
|
|
1066
1066
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1067
1067
|
end
|
|
1068
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1068
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1069
1069
|
[response_body, 400, response.each_header.to_h]
|
|
1070
1070
|
when 404
|
|
1071
1071
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1072
1072
|
json.transform_keys! do |key|
|
|
1073
1073
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1074
1074
|
end
|
|
1075
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1075
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1076
1076
|
[response_body, 404, response.each_header.to_h]
|
|
1077
1077
|
else
|
|
1078
1078
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1113,7 +1113,7 @@ module Line
|
|
|
1113
1113
|
# @return [Array(Line::Bot::V2::MessagingApi::MembershipListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1114
1114
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1115
1115
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1116
|
-
def get_membership_list_with_http_info(
|
|
1116
|
+
def get_membership_list_with_http_info(
|
|
1117
1117
|
)
|
|
1118
1118
|
path = "/v2/bot/membership/list"
|
|
1119
1119
|
|
|
@@ -1127,14 +1127,14 @@ module Line
|
|
|
1127
1127
|
json.transform_keys! do |key|
|
|
1128
1128
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1129
1129
|
end
|
|
1130
|
-
response_body = Line::Bot::V2::MessagingApi::MembershipListResponse.create(json)
|
|
1130
|
+
response_body = Line::Bot::V2::MessagingApi::MembershipListResponse.create(json)
|
|
1131
1131
|
[response_body, 200, response.each_header.to_h]
|
|
1132
1132
|
when 404
|
|
1133
1133
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1134
1134
|
json.transform_keys! do |key|
|
|
1135
1135
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1136
1136
|
end
|
|
1137
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1137
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1138
1138
|
[response_body, 404, response.each_header.to_h]
|
|
1139
1139
|
else
|
|
1140
1140
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1167,7 +1167,7 @@ module Line
|
|
|
1167
1167
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
1168
1168
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1169
1169
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1170
|
-
def get_membership_subscription_with_http_info(
|
|
1170
|
+
def get_membership_subscription_with_http_info(
|
|
1171
1171
|
user_id:
|
|
1172
1172
|
)
|
|
1173
1173
|
path = "/v2/bot/membership/subscription/{userId}"
|
|
@@ -1183,21 +1183,21 @@ module Line
|
|
|
1183
1183
|
json.transform_keys! do |key|
|
|
1184
1184
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1185
1185
|
end
|
|
1186
|
-
response_body = Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse.create(json)
|
|
1186
|
+
response_body = Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse.create(json)
|
|
1187
1187
|
[response_body, 200, response.each_header.to_h]
|
|
1188
1188
|
when 400
|
|
1189
1189
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1190
1190
|
json.transform_keys! do |key|
|
|
1191
1191
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1192
1192
|
end
|
|
1193
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1193
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1194
1194
|
[response_body, 400, response.each_header.to_h]
|
|
1195
1195
|
when 404
|
|
1196
1196
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1197
1197
|
json.transform_keys! do |key|
|
|
1198
1198
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1199
1199
|
end
|
|
1200
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1200
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1201
1201
|
[response_body, 404, response.each_header.to_h]
|
|
1202
1202
|
else
|
|
1203
1203
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1231,7 +1231,7 @@ module Line
|
|
|
1231
1231
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-quota
|
|
1232
1232
|
# @return [Array(Line::Bot::V2::MessagingApi::MessageQuotaResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1233
1233
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1234
|
-
def get_message_quota_with_http_info(
|
|
1234
|
+
def get_message_quota_with_http_info(
|
|
1235
1235
|
)
|
|
1236
1236
|
path = "/v2/bot/message/quota"
|
|
1237
1237
|
|
|
@@ -1245,7 +1245,7 @@ module Line
|
|
|
1245
1245
|
json.transform_keys! do |key|
|
|
1246
1246
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1247
1247
|
end
|
|
1248
|
-
response_body = Line::Bot::V2::MessagingApi::MessageQuotaResponse.create(json)
|
|
1248
|
+
response_body = Line::Bot::V2::MessagingApi::MessageQuotaResponse.create(json)
|
|
1249
1249
|
[response_body, 200, response.each_header.to_h]
|
|
1250
1250
|
else
|
|
1251
1251
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1274,7 +1274,7 @@ module Line
|
|
|
1274
1274
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-consumption
|
|
1275
1275
|
# @return [Array(Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1276
1276
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1277
|
-
def get_message_quota_consumption_with_http_info(
|
|
1277
|
+
def get_message_quota_consumption_with_http_info(
|
|
1278
1278
|
)
|
|
1279
1279
|
path = "/v2/bot/message/quota/consumption"
|
|
1280
1280
|
|
|
@@ -1288,7 +1288,7 @@ module Line
|
|
|
1288
1288
|
json.transform_keys! do |key|
|
|
1289
1289
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1290
1290
|
end
|
|
1291
|
-
response_body = Line::Bot::V2::MessagingApi::QuotaConsumptionResponse.create(json)
|
|
1291
|
+
response_body = Line::Bot::V2::MessagingApi::QuotaConsumptionResponse.create(json)
|
|
1292
1292
|
[response_body, 200, response.each_header.to_h]
|
|
1293
1293
|
else
|
|
1294
1294
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1318,7 +1318,7 @@ module Line
|
|
|
1318
1318
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
|
|
1319
1319
|
# @return [Array(Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1320
1320
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1321
|
-
def get_narrowcast_progress_with_http_info(
|
|
1321
|
+
def get_narrowcast_progress_with_http_info(
|
|
1322
1322
|
request_id:
|
|
1323
1323
|
)
|
|
1324
1324
|
path = "/v2/bot/message/progress/narrowcast"
|
|
@@ -1337,7 +1337,7 @@ module Line
|
|
|
1337
1337
|
json.transform_keys! do |key|
|
|
1338
1338
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1339
1339
|
end
|
|
1340
|
-
response_body = Line::Bot::V2::MessagingApi::NarrowcastProgressResponse.create(json)
|
|
1340
|
+
response_body = Line::Bot::V2::MessagingApi::NarrowcastProgressResponse.create(json)
|
|
1341
1341
|
[response_body, 200, response.each_header.to_h]
|
|
1342
1342
|
else
|
|
1343
1343
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1370,7 +1370,7 @@ module Line
|
|
|
1370
1370
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages
|
|
1371
1371
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1372
1372
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1373
|
-
def get_number_of_sent_broadcast_messages_with_http_info(
|
|
1373
|
+
def get_number_of_sent_broadcast_messages_with_http_info(
|
|
1374
1374
|
date:
|
|
1375
1375
|
)
|
|
1376
1376
|
path = "/v2/bot/message/delivery/broadcast"
|
|
@@ -1389,7 +1389,7 @@ module Line
|
|
|
1389
1389
|
json.transform_keys! do |key|
|
|
1390
1390
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1391
1391
|
end
|
|
1392
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1392
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1393
1393
|
[response_body, 200, response.each_header.to_h]
|
|
1394
1394
|
else
|
|
1395
1395
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1422,7 +1422,7 @@ module Line
|
|
|
1422
1422
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages
|
|
1423
1423
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1424
1424
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1425
|
-
def get_number_of_sent_multicast_messages_with_http_info(
|
|
1425
|
+
def get_number_of_sent_multicast_messages_with_http_info(
|
|
1426
1426
|
date:
|
|
1427
1427
|
)
|
|
1428
1428
|
path = "/v2/bot/message/delivery/multicast"
|
|
@@ -1441,7 +1441,7 @@ module Line
|
|
|
1441
1441
|
json.transform_keys! do |key|
|
|
1442
1442
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1443
1443
|
end
|
|
1444
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1444
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1445
1445
|
[response_body, 200, response.each_header.to_h]
|
|
1446
1446
|
else
|
|
1447
1447
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1474,7 +1474,7 @@ module Line
|
|
|
1474
1474
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages
|
|
1475
1475
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1476
1476
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1477
|
-
def get_number_of_sent_push_messages_with_http_info(
|
|
1477
|
+
def get_number_of_sent_push_messages_with_http_info(
|
|
1478
1478
|
date:
|
|
1479
1479
|
)
|
|
1480
1480
|
path = "/v2/bot/message/delivery/push"
|
|
@@ -1493,7 +1493,7 @@ module Line
|
|
|
1493
1493
|
json.transform_keys! do |key|
|
|
1494
1494
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1495
1495
|
end
|
|
1496
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1496
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1497
1497
|
[response_body, 200, response.each_header.to_h]
|
|
1498
1498
|
else
|
|
1499
1499
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1526,7 +1526,7 @@ module Line
|
|
|
1526
1526
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages
|
|
1527
1527
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1528
1528
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1529
|
-
def get_number_of_sent_reply_messages_with_http_info(
|
|
1529
|
+
def get_number_of_sent_reply_messages_with_http_info(
|
|
1530
1530
|
date:
|
|
1531
1531
|
)
|
|
1532
1532
|
path = "/v2/bot/message/delivery/reply"
|
|
@@ -1545,7 +1545,7 @@ module Line
|
|
|
1545
1545
|
json.transform_keys! do |key|
|
|
1546
1546
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1547
1547
|
end
|
|
1548
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1548
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1549
1549
|
[response_body, 200, response.each_header.to_h]
|
|
1550
1550
|
else
|
|
1551
1551
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1570,7 +1570,7 @@ module Line
|
|
|
1570
1570
|
response_body
|
|
1571
1571
|
end
|
|
1572
1572
|
|
|
1573
|
-
# Get number of sent LINE notification messages
|
|
1573
|
+
# Get number of sent LINE notification messages
|
|
1574
1574
|
# This requests to <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
|
|
1575
1575
|
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
1576
1576
|
#
|
|
@@ -1578,7 +1578,7 @@ module Line
|
|
|
1578
1578
|
# @see https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages
|
|
1579
1579
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1580
1580
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1581
|
-
def get_pnp_message_statistics_with_http_info(
|
|
1581
|
+
def get_pnp_message_statistics_with_http_info(
|
|
1582
1582
|
date:
|
|
1583
1583
|
)
|
|
1584
1584
|
path = "/v2/bot/message/delivery/pnp"
|
|
@@ -1597,14 +1597,14 @@ module Line
|
|
|
1597
1597
|
json.transform_keys! do |key|
|
|
1598
1598
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1599
1599
|
end
|
|
1600
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1600
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1601
1601
|
[response_body, 200, response.each_header.to_h]
|
|
1602
1602
|
else
|
|
1603
1603
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
1604
1604
|
end
|
|
1605
1605
|
end
|
|
1606
1606
|
|
|
1607
|
-
# Get number of sent LINE notification messages
|
|
1607
|
+
# Get number of sent LINE notification messages
|
|
1608
1608
|
# This requests to <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
|
|
1609
1609
|
# When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this.
|
|
1610
1610
|
#
|
|
@@ -1630,7 +1630,7 @@ module Line
|
|
|
1630
1630
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-profile
|
|
1631
1631
|
# @return [Array(Line::Bot::V2::MessagingApi::UserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1632
1632
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1633
|
-
def get_profile_with_http_info(
|
|
1633
|
+
def get_profile_with_http_info(
|
|
1634
1634
|
user_id:
|
|
1635
1635
|
)
|
|
1636
1636
|
path = "/v2/bot/profile/{userId}"
|
|
@@ -1646,7 +1646,7 @@ module Line
|
|
|
1646
1646
|
json.transform_keys! do |key|
|
|
1647
1647
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1648
1648
|
end
|
|
1649
|
-
response_body = Line::Bot::V2::MessagingApi::UserProfileResponse.create(json)
|
|
1649
|
+
response_body = Line::Bot::V2::MessagingApi::UserProfileResponse.create(json)
|
|
1650
1650
|
[response_body, 200, response.each_header.to_h]
|
|
1651
1651
|
else
|
|
1652
1652
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1679,7 +1679,7 @@ module Line
|
|
|
1679
1679
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu
|
|
1680
1680
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1681
1681
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1682
|
-
def get_rich_menu_with_http_info(
|
|
1682
|
+
def get_rich_menu_with_http_info(
|
|
1683
1683
|
rich_menu_id:
|
|
1684
1684
|
)
|
|
1685
1685
|
path = "/v2/bot/richmenu/{richMenuId}"
|
|
@@ -1695,7 +1695,7 @@ module Line
|
|
|
1695
1695
|
json.transform_keys! do |key|
|
|
1696
1696
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1697
1697
|
end
|
|
1698
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuResponse.create(json)
|
|
1698
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuResponse.create(json)
|
|
1699
1699
|
[response_body, 200, response.each_header.to_h]
|
|
1700
1700
|
else
|
|
1701
1701
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1728,7 +1728,7 @@ module Line
|
|
|
1728
1728
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id
|
|
1729
1729
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuAliasResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1730
1730
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1731
|
-
def get_rich_menu_alias_with_http_info(
|
|
1731
|
+
def get_rich_menu_alias_with_http_info(
|
|
1732
1732
|
rich_menu_alias_id:
|
|
1733
1733
|
)
|
|
1734
1734
|
path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
|
|
@@ -1744,7 +1744,7 @@ module Line
|
|
|
1744
1744
|
json.transform_keys! do |key|
|
|
1745
1745
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1746
1746
|
end
|
|
1747
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasResponse.create(json)
|
|
1747
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasResponse.create(json)
|
|
1748
1748
|
[response_body, 200, response.each_header.to_h]
|
|
1749
1749
|
else
|
|
1750
1750
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1776,7 +1776,7 @@ module Line
|
|
|
1776
1776
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list
|
|
1777
1777
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1778
1778
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1779
|
-
def get_rich_menu_alias_list_with_http_info(
|
|
1779
|
+
def get_rich_menu_alias_list_with_http_info(
|
|
1780
1780
|
)
|
|
1781
1781
|
path = "/v2/bot/richmenu/alias/list"
|
|
1782
1782
|
|
|
@@ -1790,7 +1790,7 @@ module Line
|
|
|
1790
1790
|
json.transform_keys! do |key|
|
|
1791
1791
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1792
1792
|
end
|
|
1793
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasListResponse.create(json)
|
|
1793
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasListResponse.create(json)
|
|
1794
1794
|
[response_body, 200, response.each_header.to_h]
|
|
1795
1795
|
else
|
|
1796
1796
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1820,7 +1820,7 @@ module Line
|
|
|
1820
1820
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status
|
|
1821
1821
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1822
1822
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1823
|
-
def get_rich_menu_batch_progress_with_http_info(
|
|
1823
|
+
def get_rich_menu_batch_progress_with_http_info(
|
|
1824
1824
|
request_id:
|
|
1825
1825
|
)
|
|
1826
1826
|
path = "/v2/bot/richmenu/progress/batch"
|
|
@@ -1839,7 +1839,7 @@ module Line
|
|
|
1839
1839
|
json.transform_keys! do |key|
|
|
1840
1840
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1841
1841
|
end
|
|
1842
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse.create(json)
|
|
1842
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse.create(json)
|
|
1843
1843
|
[response_body, 200, response.each_header.to_h]
|
|
1844
1844
|
else
|
|
1845
1845
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1872,7 +1872,7 @@ module Line
|
|
|
1872
1872
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user
|
|
1873
1873
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1874
1874
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1875
|
-
def get_rich_menu_id_of_user_with_http_info(
|
|
1875
|
+
def get_rich_menu_id_of_user_with_http_info(
|
|
1876
1876
|
user_id:
|
|
1877
1877
|
)
|
|
1878
1878
|
path = "/v2/bot/user/{userId}/richmenu"
|
|
@@ -1888,7 +1888,7 @@ module Line
|
|
|
1888
1888
|
json.transform_keys! do |key|
|
|
1889
1889
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1890
1890
|
end
|
|
1891
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
1891
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
1892
1892
|
[response_body, 200, response.each_header.to_h]
|
|
1893
1893
|
else
|
|
1894
1894
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1920,7 +1920,7 @@ module Line
|
|
|
1920
1920
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list
|
|
1921
1921
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1922
1922
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1923
|
-
def get_rich_menu_list_with_http_info(
|
|
1923
|
+
def get_rich_menu_list_with_http_info(
|
|
1924
1924
|
)
|
|
1925
1925
|
path = "/v2/bot/richmenu/list"
|
|
1926
1926
|
|
|
@@ -1934,7 +1934,7 @@ module Line
|
|
|
1934
1934
|
json.transform_keys! do |key|
|
|
1935
1935
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1936
1936
|
end
|
|
1937
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuListResponse.create(json)
|
|
1937
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuListResponse.create(json)
|
|
1938
1938
|
[response_body, 200, response.each_header.to_h]
|
|
1939
1939
|
else
|
|
1940
1940
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1964,7 +1964,7 @@ module Line
|
|
|
1964
1964
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
|
|
1965
1965
|
# @return [Array(Line::Bot::V2::MessagingApi::RoomMemberCountResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1966
1966
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
1967
|
-
def get_room_member_count_with_http_info(
|
|
1967
|
+
def get_room_member_count_with_http_info(
|
|
1968
1968
|
room_id:
|
|
1969
1969
|
)
|
|
1970
1970
|
path = "/v2/bot/room/{roomId}/members/count"
|
|
@@ -1980,7 +1980,7 @@ module Line
|
|
|
1980
1980
|
json.transform_keys! do |key|
|
|
1981
1981
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1982
1982
|
end
|
|
1983
|
-
response_body = Line::Bot::V2::MessagingApi::RoomMemberCountResponse.create(json)
|
|
1983
|
+
response_body = Line::Bot::V2::MessagingApi::RoomMemberCountResponse.create(json)
|
|
1984
1984
|
[response_body, 200, response.each_header.to_h]
|
|
1985
1985
|
else
|
|
1986
1986
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2014,7 +2014,7 @@ module Line
|
|
|
2014
2014
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
|
|
2015
2015
|
# @return [Array(Line::Bot::V2::MessagingApi::RoomUserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2016
2016
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2017
|
-
def get_room_member_profile_with_http_info(
|
|
2017
|
+
def get_room_member_profile_with_http_info(
|
|
2018
2018
|
room_id:,
|
|
2019
2019
|
user_id:
|
|
2020
2020
|
)
|
|
@@ -2032,7 +2032,7 @@ module Line
|
|
|
2032
2032
|
json.transform_keys! do |key|
|
|
2033
2033
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2034
2034
|
end
|
|
2035
|
-
response_body = Line::Bot::V2::MessagingApi::RoomUserProfileResponse.create(json)
|
|
2035
|
+
response_body = Line::Bot::V2::MessagingApi::RoomUserProfileResponse.create(json)
|
|
2036
2036
|
[response_body, 200, response.each_header.to_h]
|
|
2037
2037
|
else
|
|
2038
2038
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2069,7 +2069,7 @@ module Line
|
|
|
2069
2069
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids
|
|
2070
2070
|
# @return [Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2071
2071
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2072
|
-
def get_room_members_ids_with_http_info(
|
|
2072
|
+
def get_room_members_ids_with_http_info(
|
|
2073
2073
|
room_id:,
|
|
2074
2074
|
start: nil
|
|
2075
2075
|
)
|
|
@@ -2090,7 +2090,7 @@ module Line
|
|
|
2090
2090
|
json.transform_keys! do |key|
|
|
2091
2091
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2092
2092
|
end
|
|
2093
|
-
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
2093
|
+
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
2094
2094
|
[response_body, 200, response.each_header.to_h]
|
|
2095
2095
|
else
|
|
2096
2096
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2125,7 +2125,7 @@ module Line
|
|
|
2125
2125
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information
|
|
2126
2126
|
# @return [Array(Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2127
2127
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2128
|
-
def get_webhook_endpoint_with_http_info(
|
|
2128
|
+
def get_webhook_endpoint_with_http_info(
|
|
2129
2129
|
)
|
|
2130
2130
|
path = "/v2/bot/channel/webhook/endpoint"
|
|
2131
2131
|
|
|
@@ -2139,7 +2139,7 @@ module Line
|
|
|
2139
2139
|
json.transform_keys! do |key|
|
|
2140
2140
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2141
2141
|
end
|
|
2142
|
-
response_body = Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse.create(json)
|
|
2142
|
+
response_body = Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse.create(json)
|
|
2143
2143
|
[response_body, 200, response.each_header.to_h]
|
|
2144
2144
|
else
|
|
2145
2145
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2169,7 +2169,7 @@ module Line
|
|
|
2169
2169
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-link-token
|
|
2170
2170
|
# @return [Array(Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2171
2171
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2172
|
-
def issue_link_token_with_http_info(
|
|
2172
|
+
def issue_link_token_with_http_info(
|
|
2173
2173
|
user_id:
|
|
2174
2174
|
)
|
|
2175
2175
|
path = "/v2/bot/user/{userId}/linkToken"
|
|
@@ -2185,7 +2185,7 @@ module Line
|
|
|
2185
2185
|
json.transform_keys! do |key|
|
|
2186
2186
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2187
2187
|
end
|
|
2188
|
-
response_body = Line::Bot::V2::MessagingApi::IssueLinkTokenResponse.create(json)
|
|
2188
|
+
response_body = Line::Bot::V2::MessagingApi::IssueLinkTokenResponse.create(json)
|
|
2189
2189
|
[response_body, 200, response.each_header.to_h]
|
|
2190
2190
|
else
|
|
2191
2191
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2220,7 +2220,7 @@ module Line
|
|
|
2220
2220
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2221
2221
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
2222
2222
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2223
|
-
def leave_group_with_http_info(
|
|
2223
|
+
def leave_group_with_http_info(
|
|
2224
2224
|
group_id:
|
|
2225
2225
|
)
|
|
2226
2226
|
path = "/v2/bot/group/{groupId}/leave"
|
|
@@ -2238,14 +2238,14 @@ module Line
|
|
|
2238
2238
|
json.transform_keys! do |key|
|
|
2239
2239
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2240
2240
|
end
|
|
2241
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2241
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2242
2242
|
[response_body, 400, response.each_header.to_h]
|
|
2243
2243
|
when 404
|
|
2244
2244
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2245
2245
|
json.transform_keys! do |key|
|
|
2246
2246
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2247
2247
|
end
|
|
2248
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2248
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2249
2249
|
[response_body, 404, response.each_header.to_h]
|
|
2250
2250
|
else
|
|
2251
2251
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2280,7 +2280,7 @@ module Line
|
|
|
2280
2280
|
# @see https://developers.line.biz/en/reference/messaging-api/#leave-room
|
|
2281
2281
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2282
2282
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2283
|
-
def leave_room_with_http_info(
|
|
2283
|
+
def leave_room_with_http_info(
|
|
2284
2284
|
room_id:
|
|
2285
2285
|
)
|
|
2286
2286
|
path = "/v2/bot/room/{roomId}/leave"
|
|
@@ -2325,7 +2325,7 @@ module Line
|
|
|
2325
2325
|
# @see https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user
|
|
2326
2326
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2327
2327
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2328
|
-
def link_rich_menu_id_to_user_with_http_info(
|
|
2328
|
+
def link_rich_menu_id_to_user_with_http_info(
|
|
2329
2329
|
user_id:,
|
|
2330
2330
|
rich_menu_id:
|
|
2331
2331
|
)
|
|
@@ -2374,7 +2374,7 @@ module Line
|
|
|
2374
2374
|
# @see https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users
|
|
2375
2375
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
2376
2376
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2377
|
-
def link_rich_menu_id_to_users_with_http_info(
|
|
2377
|
+
def link_rich_menu_id_to_users_with_http_info(
|
|
2378
2378
|
rich_menu_bulk_link_request:
|
|
2379
2379
|
)
|
|
2380
2380
|
path = "/v2/bot/richmenu/bulk/link"
|
|
@@ -2421,7 +2421,7 @@ module Line
|
|
|
2421
2421
|
# @return [Array(Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2422
2422
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2423
2423
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2424
|
-
def list_coupon_with_http_info(
|
|
2424
|
+
def list_coupon_with_http_info(
|
|
2425
2425
|
status: nil,
|
|
2426
2426
|
start: nil,
|
|
2427
2427
|
limit: nil
|
|
@@ -2444,14 +2444,14 @@ module Line
|
|
|
2444
2444
|
json.transform_keys! do |key|
|
|
2445
2445
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2446
2446
|
end
|
|
2447
|
-
response_body = Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse.create(json)
|
|
2447
|
+
response_body = Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse.create(json)
|
|
2448
2448
|
[response_body, 200, response.each_header.to_h]
|
|
2449
2449
|
when 400
|
|
2450
2450
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2451
2451
|
json.transform_keys! do |key|
|
|
2452
2452
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2453
2453
|
end
|
|
2454
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2454
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2455
2455
|
[response_body, 400, response.each_header.to_h]
|
|
2456
2456
|
else
|
|
2457
2457
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2491,7 +2491,7 @@ module Line
|
|
|
2491
2491
|
# @see https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
|
|
2492
2492
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2493
2493
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2494
|
-
def mark_messages_as_read_with_http_info(
|
|
2494
|
+
def mark_messages_as_read_with_http_info(
|
|
2495
2495
|
mark_messages_as_read_request:
|
|
2496
2496
|
)
|
|
2497
2497
|
path = "/v2/bot/message/markAsRead"
|
|
@@ -2536,7 +2536,7 @@ module Line
|
|
|
2536
2536
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2537
2537
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2538
2538
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2539
|
-
def mark_messages_as_read_by_token_with_http_info(
|
|
2539
|
+
def mark_messages_as_read_by_token_with_http_info(
|
|
2540
2540
|
mark_messages_as_read_by_token_request:
|
|
2541
2541
|
)
|
|
2542
2542
|
path = "/v2/bot/chat/markAsRead"
|
|
@@ -2554,7 +2554,7 @@ module Line
|
|
|
2554
2554
|
json.transform_keys! do |key|
|
|
2555
2555
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2556
2556
|
end
|
|
2557
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2557
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2558
2558
|
[response_body, 400, response.each_header.to_h]
|
|
2559
2559
|
else
|
|
2560
2560
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2593,7 +2593,7 @@ module Line
|
|
|
2593
2593
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2594
2594
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2595
2595
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2596
|
-
def multicast_with_http_info(
|
|
2596
|
+
def multicast_with_http_info(
|
|
2597
2597
|
multicast_request:,
|
|
2598
2598
|
x_line_retry_key: nil
|
|
2599
2599
|
)
|
|
@@ -2616,28 +2616,28 @@ module Line
|
|
|
2616
2616
|
json.transform_keys! do |key|
|
|
2617
2617
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2618
2618
|
end
|
|
2619
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2619
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2620
2620
|
[response_body, 400, response.each_header.to_h]
|
|
2621
2621
|
when 403
|
|
2622
2622
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2623
2623
|
json.transform_keys! do |key|
|
|
2624
2624
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2625
2625
|
end
|
|
2626
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2626
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2627
2627
|
[response_body, 403, response.each_header.to_h]
|
|
2628
2628
|
when 409
|
|
2629
2629
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2630
2630
|
json.transform_keys! do |key|
|
|
2631
2631
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2632
2632
|
end
|
|
2633
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2633
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2634
2634
|
[response_body, 409, response.each_header.to_h]
|
|
2635
2635
|
when 429
|
|
2636
2636
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2637
2637
|
json.transform_keys! do |key|
|
|
2638
2638
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2639
2639
|
end
|
|
2640
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2640
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2641
2641
|
[response_body, 429, response.each_header.to_h]
|
|
2642
2642
|
else
|
|
2643
2643
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2682,7 +2682,7 @@ module Line
|
|
|
2682
2682
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2683
2683
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2684
2684
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2685
|
-
def narrowcast_with_http_info(
|
|
2685
|
+
def narrowcast_with_http_info(
|
|
2686
2686
|
narrowcast_request:,
|
|
2687
2687
|
x_line_retry_key: nil
|
|
2688
2688
|
)
|
|
@@ -2705,28 +2705,28 @@ module Line
|
|
|
2705
2705
|
json.transform_keys! do |key|
|
|
2706
2706
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2707
2707
|
end
|
|
2708
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2708
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2709
2709
|
[response_body, 400, response.each_header.to_h]
|
|
2710
2710
|
when 403
|
|
2711
2711
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2712
2712
|
json.transform_keys! do |key|
|
|
2713
2713
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2714
2714
|
end
|
|
2715
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2715
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2716
2716
|
[response_body, 403, response.each_header.to_h]
|
|
2717
2717
|
when 409
|
|
2718
2718
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2719
2719
|
json.transform_keys! do |key|
|
|
2720
2720
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2721
2721
|
end
|
|
2722
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2722
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2723
2723
|
[response_body, 409, response.each_header.to_h]
|
|
2724
2724
|
when 429
|
|
2725
2725
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2726
2726
|
json.transform_keys! do |key|
|
|
2727
2727
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2728
2728
|
end
|
|
2729
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2729
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2730
2730
|
[response_body, 429, response.each_header.to_h]
|
|
2731
2731
|
else
|
|
2732
2732
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2771,7 +2771,7 @@ module Line
|
|
|
2771
2771
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2772
2772
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2773
2773
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2774
|
-
def push_message_with_http_info(
|
|
2774
|
+
def push_message_with_http_info(
|
|
2775
2775
|
push_message_request:,
|
|
2776
2776
|
x_line_retry_key: nil
|
|
2777
2777
|
)
|
|
@@ -2792,35 +2792,35 @@ module Line
|
|
|
2792
2792
|
json.transform_keys! do |key|
|
|
2793
2793
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2794
2794
|
end
|
|
2795
|
-
response_body = Line::Bot::V2::MessagingApi::PushMessageResponse.create(json)
|
|
2795
|
+
response_body = Line::Bot::V2::MessagingApi::PushMessageResponse.create(json)
|
|
2796
2796
|
[response_body, 200, response.each_header.to_h]
|
|
2797
2797
|
when 400
|
|
2798
2798
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2799
2799
|
json.transform_keys! do |key|
|
|
2800
2800
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2801
2801
|
end
|
|
2802
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2802
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2803
2803
|
[response_body, 400, response.each_header.to_h]
|
|
2804
2804
|
when 403
|
|
2805
2805
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2806
2806
|
json.transform_keys! do |key|
|
|
2807
2807
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2808
2808
|
end
|
|
2809
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2809
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2810
2810
|
[response_body, 403, response.each_header.to_h]
|
|
2811
2811
|
when 409
|
|
2812
2812
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2813
2813
|
json.transform_keys! do |key|
|
|
2814
2814
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2815
2815
|
end
|
|
2816
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2816
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2817
2817
|
[response_body, 409, response.each_header.to_h]
|
|
2818
2818
|
when 429
|
|
2819
2819
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2820
2820
|
json.transform_keys! do |key|
|
|
2821
2821
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2822
2822
|
end
|
|
2823
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2823
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2824
2824
|
[response_body, 429, response.each_header.to_h]
|
|
2825
2825
|
else
|
|
2826
2826
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2862,7 +2862,7 @@ module Line
|
|
|
2862
2862
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2863
2863
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 422
|
|
2864
2864
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2865
|
-
def push_messages_by_phone_with_http_info(
|
|
2865
|
+
def push_messages_by_phone_with_http_info(
|
|
2866
2866
|
pnp_messages_request:,
|
|
2867
2867
|
x_line_delivery_tag: nil
|
|
2868
2868
|
)
|
|
@@ -2885,7 +2885,7 @@ module Line
|
|
|
2885
2885
|
json.transform_keys! do |key|
|
|
2886
2886
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2887
2887
|
end
|
|
2888
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2888
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2889
2889
|
[response_body, 422, response.each_header.to_h]
|
|
2890
2890
|
else
|
|
2891
2891
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2924,7 +2924,7 @@ module Line
|
|
|
2924
2924
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2925
2925
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2926
2926
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2927
|
-
def reply_message_with_http_info(
|
|
2927
|
+
def reply_message_with_http_info(
|
|
2928
2928
|
reply_message_request:
|
|
2929
2929
|
)
|
|
2930
2930
|
path = "/v2/bot/message/reply"
|
|
@@ -2940,21 +2940,21 @@ module Line
|
|
|
2940
2940
|
json.transform_keys! do |key|
|
|
2941
2941
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2942
2942
|
end
|
|
2943
|
-
response_body = Line::Bot::V2::MessagingApi::ReplyMessageResponse.create(json)
|
|
2943
|
+
response_body = Line::Bot::V2::MessagingApi::ReplyMessageResponse.create(json)
|
|
2944
2944
|
[response_body, 200, response.each_header.to_h]
|
|
2945
2945
|
when 400
|
|
2946
2946
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2947
2947
|
json.transform_keys! do |key|
|
|
2948
2948
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2949
2949
|
end
|
|
2950
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2950
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2951
2951
|
[response_body, 400, response.each_header.to_h]
|
|
2952
2952
|
when 429
|
|
2953
2953
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2954
2954
|
json.transform_keys! do |key|
|
|
2955
2955
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2956
2956
|
end
|
|
2957
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2957
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2958
2958
|
[response_body, 429, response.each_header.to_h]
|
|
2959
2959
|
else
|
|
2960
2960
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2989,7 +2989,7 @@ module Line
|
|
|
2989
2989
|
# @see https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users
|
|
2990
2990
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
2991
2991
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
2992
|
-
def rich_menu_batch_with_http_info(
|
|
2992
|
+
def rich_menu_batch_with_http_info(
|
|
2993
2993
|
rich_menu_batch_request:
|
|
2994
2994
|
)
|
|
2995
2995
|
path = "/v2/bot/richmenu/batch"
|
|
@@ -3033,7 +3033,7 @@ module Line
|
|
|
3033
3033
|
# @see https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu
|
|
3034
3034
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3035
3035
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3036
|
-
def set_default_rich_menu_with_http_info(
|
|
3036
|
+
def set_default_rich_menu_with_http_info(
|
|
3037
3037
|
rich_menu_id:
|
|
3038
3038
|
)
|
|
3039
3039
|
path = "/v2/bot/user/all/richmenu/{richMenuId}"
|
|
@@ -3077,7 +3077,7 @@ module Line
|
|
|
3077
3077
|
# @see https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url
|
|
3078
3078
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3079
3079
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3080
|
-
def set_webhook_endpoint_with_http_info(
|
|
3080
|
+
def set_webhook_endpoint_with_http_info(
|
|
3081
3081
|
set_webhook_endpoint_request:
|
|
3082
3082
|
)
|
|
3083
3083
|
path = "/v2/bot/channel/webhook/endpoint"
|
|
@@ -3122,7 +3122,7 @@ module Line
|
|
|
3122
3122
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
3123
3123
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
3124
3124
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3125
|
-
def show_loading_animation_with_http_info(
|
|
3125
|
+
def show_loading_animation_with_http_info(
|
|
3126
3126
|
show_loading_animation_request:
|
|
3127
3127
|
)
|
|
3128
3128
|
path = "/v2/bot/chat/loading/start"
|
|
@@ -3140,7 +3140,7 @@ module Line
|
|
|
3140
3140
|
json.transform_keys! do |key|
|
|
3141
3141
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3142
3142
|
end
|
|
3143
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3143
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3144
3144
|
[response_body, 400, response.each_header.to_h]
|
|
3145
3145
|
else
|
|
3146
3146
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3174,7 +3174,7 @@ module Line
|
|
|
3174
3174
|
# @see https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
|
|
3175
3175
|
# @return [Array(Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
3176
3176
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3177
|
-
def test_webhook_endpoint_with_http_info(
|
|
3177
|
+
def test_webhook_endpoint_with_http_info(
|
|
3178
3178
|
test_webhook_endpoint_request: nil
|
|
3179
3179
|
)
|
|
3180
3180
|
path = "/v2/bot/channel/webhook/test"
|
|
@@ -3190,7 +3190,7 @@ module Line
|
|
|
3190
3190
|
json.transform_keys! do |key|
|
|
3191
3191
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3192
3192
|
end
|
|
3193
|
-
response_body = Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse.create(json)
|
|
3193
|
+
response_body = Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse.create(json)
|
|
3194
3194
|
[response_body, 200, response.each_header.to_h]
|
|
3195
3195
|
else
|
|
3196
3196
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3223,7 +3223,7 @@ module Line
|
|
|
3223
3223
|
# @see https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user
|
|
3224
3224
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3225
3225
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3226
|
-
def unlink_rich_menu_id_from_user_with_http_info(
|
|
3226
|
+
def unlink_rich_menu_id_from_user_with_http_info(
|
|
3227
3227
|
user_id:
|
|
3228
3228
|
)
|
|
3229
3229
|
path = "/v2/bot/user/{userId}/richmenu"
|
|
@@ -3267,7 +3267,7 @@ module Line
|
|
|
3267
3267
|
# @see https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users
|
|
3268
3268
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
3269
3269
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3270
|
-
def unlink_rich_menu_id_from_users_with_http_info(
|
|
3270
|
+
def unlink_rich_menu_id_from_users_with_http_info(
|
|
3271
3271
|
rich_menu_bulk_unlink_request:
|
|
3272
3272
|
)
|
|
3273
3273
|
path = "/v2/bot/richmenu/bulk/unlink"
|
|
@@ -3313,7 +3313,7 @@ module Line
|
|
|
3313
3313
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3314
3314
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
3315
3315
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3316
|
-
def update_rich_menu_alias_with_http_info(
|
|
3316
|
+
def update_rich_menu_alias_with_http_info(
|
|
3317
3317
|
rich_menu_alias_id:,
|
|
3318
3318
|
update_rich_menu_alias_request:
|
|
3319
3319
|
)
|
|
@@ -3333,7 +3333,7 @@ module Line
|
|
|
3333
3333
|
json.transform_keys! do |key|
|
|
3334
3334
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3335
3335
|
end
|
|
3336
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3336
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3337
3337
|
[response_body, 400, response.each_header.to_h]
|
|
3338
3338
|
else
|
|
3339
3339
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3370,7 +3370,7 @@ module Line
|
|
|
3370
3370
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message
|
|
3371
3371
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3372
3372
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3373
|
-
def validate_broadcast_with_http_info(
|
|
3373
|
+
def validate_broadcast_with_http_info(
|
|
3374
3374
|
validate_message_request:
|
|
3375
3375
|
)
|
|
3376
3376
|
path = "/v2/bot/message/validate/broadcast"
|
|
@@ -3414,7 +3414,7 @@ module Line
|
|
|
3414
3414
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message
|
|
3415
3415
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3416
3416
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3417
|
-
def validate_multicast_with_http_info(
|
|
3417
|
+
def validate_multicast_with_http_info(
|
|
3418
3418
|
validate_message_request:
|
|
3419
3419
|
)
|
|
3420
3420
|
path = "/v2/bot/message/validate/multicast"
|
|
@@ -3458,7 +3458,7 @@ module Line
|
|
|
3458
3458
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message
|
|
3459
3459
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3460
3460
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3461
|
-
def validate_narrowcast_with_http_info(
|
|
3461
|
+
def validate_narrowcast_with_http_info(
|
|
3462
3462
|
validate_message_request:
|
|
3463
3463
|
)
|
|
3464
3464
|
path = "/v2/bot/message/validate/narrowcast"
|
|
@@ -3502,7 +3502,7 @@ module Line
|
|
|
3502
3502
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message
|
|
3503
3503
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3504
3504
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3505
|
-
def validate_push_with_http_info(
|
|
3505
|
+
def validate_push_with_http_info(
|
|
3506
3506
|
validate_message_request:
|
|
3507
3507
|
)
|
|
3508
3508
|
path = "/v2/bot/message/validate/push"
|
|
@@ -3546,7 +3546,7 @@ module Line
|
|
|
3546
3546
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message
|
|
3547
3547
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3548
3548
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3549
|
-
def validate_reply_with_http_info(
|
|
3549
|
+
def validate_reply_with_http_info(
|
|
3550
3550
|
validate_message_request:
|
|
3551
3551
|
)
|
|
3552
3552
|
path = "/v2/bot/message/validate/reply"
|
|
@@ -3590,7 +3590,7 @@ module Line
|
|
|
3590
3590
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request
|
|
3591
3591
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3592
3592
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3593
|
-
def validate_rich_menu_batch_request_with_http_info(
|
|
3593
|
+
def validate_rich_menu_batch_request_with_http_info(
|
|
3594
3594
|
rich_menu_batch_request:
|
|
3595
3595
|
)
|
|
3596
3596
|
path = "/v2/bot/richmenu/validate/batch"
|
|
@@ -3634,7 +3634,7 @@ module Line
|
|
|
3634
3634
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object
|
|
3635
3635
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3636
3636
|
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
|
|
3637
|
-
def validate_rich_menu_object_with_http_info(
|
|
3637
|
+
def validate_rich_menu_object_with_http_info(
|
|
3638
3638
|
rich_menu_request:
|
|
3639
3639
|
)
|
|
3640
3640
|
path = "/v2/bot/richmenu/validate"
|