line-bot-api 2.7.0 → 2.8.1
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 +12 -10
- 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 +31 -27
- 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 +25 -20
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +222 -198
- 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 +11 -9
- 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/utils.rb +25 -0
- 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
- data/sig/line/bot/v2/utils.rbs +4 -0
- 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,11 +183,12 @@ 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
|
-
path = "/v2/bot/coupon/{couponId}/close"
|
|
190
|
-
|
|
189
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/coupon/{couponId}/close", {
|
|
190
|
+
"couponId": coupon_id
|
|
191
|
+
})
|
|
191
192
|
|
|
192
193
|
response = @http_client.put(
|
|
193
194
|
path: path,
|
|
@@ -201,21 +202,21 @@ module Line
|
|
|
201
202
|
json.transform_keys! do |key|
|
|
202
203
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
203
204
|
end
|
|
204
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
205
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
205
206
|
[response_body, 400, response.each_header.to_h]
|
|
206
207
|
when 404
|
|
207
208
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
208
209
|
json.transform_keys! do |key|
|
|
209
210
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
210
211
|
end
|
|
211
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
212
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
212
213
|
[response_body, 404, response.each_header.to_h]
|
|
213
214
|
when 410
|
|
214
215
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
215
216
|
json.transform_keys! do |key|
|
|
216
217
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
217
218
|
end
|
|
218
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
219
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
219
220
|
[response_body, 410, response.each_header.to_h]
|
|
220
221
|
else
|
|
221
222
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -252,7 +253,7 @@ module Line
|
|
|
252
253
|
# @return [Array(Line::Bot::V2::MessagingApi::CouponCreateResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
253
254
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
254
255
|
# @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(
|
|
256
|
+
def create_coupon_with_http_info(
|
|
256
257
|
coupon_create_request: nil
|
|
257
258
|
)
|
|
258
259
|
path = "/v2/bot/coupon"
|
|
@@ -268,14 +269,14 @@ module Line
|
|
|
268
269
|
json.transform_keys! do |key|
|
|
269
270
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
270
271
|
end
|
|
271
|
-
response_body = Line::Bot::V2::MessagingApi::CouponCreateResponse.create(json)
|
|
272
|
+
response_body = Line::Bot::V2::MessagingApi::CouponCreateResponse.create(json)
|
|
272
273
|
[response_body, 200, response.each_header.to_h]
|
|
273
274
|
when 400
|
|
274
275
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
275
276
|
json.transform_keys! do |key|
|
|
276
277
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
277
278
|
end
|
|
278
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
279
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
279
280
|
[response_body, 400, response.each_header.to_h]
|
|
280
281
|
else
|
|
281
282
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -309,7 +310,7 @@ module Line
|
|
|
309
310
|
# @see https://developers.line.biz/en/reference/messaging-api/#create-rich-menu
|
|
310
311
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
311
312
|
# @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(
|
|
313
|
+
def create_rich_menu_with_http_info(
|
|
313
314
|
rich_menu_request:
|
|
314
315
|
)
|
|
315
316
|
path = "/v2/bot/richmenu"
|
|
@@ -325,7 +326,7 @@ module Line
|
|
|
325
326
|
json.transform_keys! do |key|
|
|
326
327
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
327
328
|
end
|
|
328
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
329
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
329
330
|
[response_body, 200, response.each_header.to_h]
|
|
330
331
|
else
|
|
331
332
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -359,7 +360,7 @@ module Line
|
|
|
359
360
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
360
361
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
361
362
|
# @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(
|
|
363
|
+
def create_rich_menu_alias_with_http_info(
|
|
363
364
|
create_rich_menu_alias_request:
|
|
364
365
|
)
|
|
365
366
|
path = "/v2/bot/richmenu/alias"
|
|
@@ -377,7 +378,7 @@ module Line
|
|
|
377
378
|
json.transform_keys! do |key|
|
|
378
379
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
379
380
|
end
|
|
380
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
381
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
381
382
|
[response_body, 400, response.each_header.to_h]
|
|
382
383
|
else
|
|
383
384
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -411,11 +412,12 @@ module Line
|
|
|
411
412
|
# @see https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu
|
|
412
413
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
413
414
|
# @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(
|
|
415
|
+
def delete_rich_menu_with_http_info(
|
|
415
416
|
rich_menu_id:
|
|
416
417
|
)
|
|
417
|
-
path = "/v2/bot/richmenu/{richMenuId}"
|
|
418
|
-
|
|
418
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}", {
|
|
419
|
+
"richMenuId": rich_menu_id
|
|
420
|
+
})
|
|
419
421
|
|
|
420
422
|
response = @http_client.delete(
|
|
421
423
|
path: path,
|
|
@@ -456,11 +458,12 @@ module Line
|
|
|
456
458
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
457
459
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
458
460
|
# @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(
|
|
461
|
+
def delete_rich_menu_alias_with_http_info(
|
|
460
462
|
rich_menu_alias_id:
|
|
461
463
|
)
|
|
462
|
-
path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
|
|
463
|
-
|
|
464
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
465
|
+
"richMenuAliasId": rich_menu_alias_id
|
|
466
|
+
})
|
|
464
467
|
|
|
465
468
|
response = @http_client.delete(
|
|
466
469
|
path: path,
|
|
@@ -474,7 +477,7 @@ module Line
|
|
|
474
477
|
json.transform_keys! do |key|
|
|
475
478
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
476
479
|
end
|
|
477
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
480
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
478
481
|
[response_body, 400, response.each_header.to_h]
|
|
479
482
|
else
|
|
480
483
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -509,7 +512,7 @@ module Line
|
|
|
509
512
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month
|
|
510
513
|
# @return [Array(Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
511
514
|
# @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(
|
|
515
|
+
def get_aggregation_unit_name_list_with_http_info(
|
|
513
516
|
limit: nil,
|
|
514
517
|
start: nil
|
|
515
518
|
)
|
|
@@ -530,7 +533,7 @@ module Line
|
|
|
530
533
|
json.transform_keys! do |key|
|
|
531
534
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
532
535
|
end
|
|
533
|
-
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse.create(json)
|
|
536
|
+
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse.create(json)
|
|
534
537
|
[response_body, 200, response.each_header.to_h]
|
|
535
538
|
else
|
|
536
539
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -565,7 +568,7 @@ module Line
|
|
|
565
568
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month
|
|
566
569
|
# @return [Array(Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
567
570
|
# @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(
|
|
571
|
+
def get_aggregation_unit_usage_with_http_info(
|
|
569
572
|
)
|
|
570
573
|
path = "/v2/bot/message/aggregation/info"
|
|
571
574
|
|
|
@@ -579,7 +582,7 @@ module Line
|
|
|
579
582
|
json.transform_keys! do |key|
|
|
580
583
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
581
584
|
end
|
|
582
|
-
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse.create(json)
|
|
585
|
+
response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse.create(json)
|
|
583
586
|
[response_body, 200, response.each_header.to_h]
|
|
584
587
|
else
|
|
585
588
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -608,7 +611,7 @@ module Line
|
|
|
608
611
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-bot-info
|
|
609
612
|
# @return [Array(Line::Bot::V2::MessagingApi::BotInfoResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
610
613
|
# @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(
|
|
614
|
+
def get_bot_info_with_http_info(
|
|
612
615
|
)
|
|
613
616
|
path = "/v2/bot/info"
|
|
614
617
|
|
|
@@ -622,7 +625,7 @@ module Line
|
|
|
622
625
|
json.transform_keys! do |key|
|
|
623
626
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
624
627
|
end
|
|
625
|
-
response_body = Line::Bot::V2::MessagingApi::BotInfoResponse.create(json)
|
|
628
|
+
response_body = Line::Bot::V2::MessagingApi::BotInfoResponse.create(json)
|
|
626
629
|
[response_body, 200, response.each_header.to_h]
|
|
627
630
|
else
|
|
628
631
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -654,11 +657,12 @@ module Line
|
|
|
654
657
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
655
658
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
656
659
|
# @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(
|
|
660
|
+
def get_coupon_detail_with_http_info(
|
|
658
661
|
coupon_id:
|
|
659
662
|
)
|
|
660
|
-
path = "/v2/bot/coupon/{couponId}"
|
|
661
|
-
|
|
663
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/coupon/{couponId}", {
|
|
664
|
+
"couponId": coupon_id
|
|
665
|
+
})
|
|
662
666
|
|
|
663
667
|
response = @http_client.get(
|
|
664
668
|
path: path,
|
|
@@ -670,21 +674,21 @@ module Line
|
|
|
670
674
|
json.transform_keys! do |key|
|
|
671
675
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
672
676
|
end
|
|
673
|
-
response_body = Line::Bot::V2::MessagingApi::CouponResponse.create(json)
|
|
677
|
+
response_body = Line::Bot::V2::MessagingApi::CouponResponse.create(json)
|
|
674
678
|
[response_body, 200, response.each_header.to_h]
|
|
675
679
|
when 400
|
|
676
680
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
677
681
|
json.transform_keys! do |key|
|
|
678
682
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
679
683
|
end
|
|
680
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
684
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
681
685
|
[response_body, 400, response.each_header.to_h]
|
|
682
686
|
when 404
|
|
683
687
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
684
688
|
json.transform_keys! do |key|
|
|
685
689
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
686
690
|
end
|
|
687
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
691
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
688
692
|
[response_body, 404, response.each_header.to_h]
|
|
689
693
|
else
|
|
690
694
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -718,7 +722,7 @@ module Line
|
|
|
718
722
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id
|
|
719
723
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
720
724
|
# @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(
|
|
725
|
+
def get_default_rich_menu_id_with_http_info(
|
|
722
726
|
)
|
|
723
727
|
path = "/v2/bot/user/all/richmenu"
|
|
724
728
|
|
|
@@ -732,7 +736,7 @@ module Line
|
|
|
732
736
|
json.transform_keys! do |key|
|
|
733
737
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
734
738
|
end
|
|
735
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
739
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
736
740
|
[response_body, 200, response.each_header.to_h]
|
|
737
741
|
else
|
|
738
742
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -763,7 +767,7 @@ module Line
|
|
|
763
767
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-follower-ids
|
|
764
768
|
# @return [Array(Line::Bot::V2::MessagingApi::GetFollowersResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
765
769
|
# @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(
|
|
770
|
+
def get_followers_with_http_info(
|
|
767
771
|
start: nil,
|
|
768
772
|
limit: nil
|
|
769
773
|
)
|
|
@@ -784,7 +788,7 @@ module Line
|
|
|
784
788
|
json.transform_keys! do |key|
|
|
785
789
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
786
790
|
end
|
|
787
|
-
response_body = Line::Bot::V2::MessagingApi::GetFollowersResponse.create(json)
|
|
791
|
+
response_body = Line::Bot::V2::MessagingApi::GetFollowersResponse.create(json)
|
|
788
792
|
[response_body, 200, response.each_header.to_h]
|
|
789
793
|
else
|
|
790
794
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -820,11 +824,12 @@ module Line
|
|
|
820
824
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
|
|
821
825
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupMemberCountResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
822
826
|
# @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(
|
|
827
|
+
def get_group_member_count_with_http_info(
|
|
824
828
|
group_id:
|
|
825
829
|
)
|
|
826
|
-
path = "/v2/bot/group/{groupId}/members/count"
|
|
827
|
-
|
|
830
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/members/count", {
|
|
831
|
+
"groupId": group_id
|
|
832
|
+
})
|
|
828
833
|
|
|
829
834
|
response = @http_client.get(
|
|
830
835
|
path: path,
|
|
@@ -836,7 +841,7 @@ module Line
|
|
|
836
841
|
json.transform_keys! do |key|
|
|
837
842
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
838
843
|
end
|
|
839
|
-
response_body = Line::Bot::V2::MessagingApi::GroupMemberCountResponse.create(json)
|
|
844
|
+
response_body = Line::Bot::V2::MessagingApi::GroupMemberCountResponse.create(json)
|
|
840
845
|
[response_body, 200, response.each_header.to_h]
|
|
841
846
|
else
|
|
842
847
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -870,13 +875,14 @@ module Line
|
|
|
870
875
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
|
|
871
876
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupUserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
872
877
|
# @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(
|
|
878
|
+
def get_group_member_profile_with_http_info(
|
|
874
879
|
group_id:,
|
|
875
880
|
user_id:
|
|
876
881
|
)
|
|
877
|
-
path = "/v2/bot/group/{groupId}/member/{userId}"
|
|
878
|
-
|
|
879
|
-
|
|
882
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/member/{userId}", {
|
|
883
|
+
"groupId": group_id,
|
|
884
|
+
"userId": user_id
|
|
885
|
+
})
|
|
880
886
|
|
|
881
887
|
response = @http_client.get(
|
|
882
888
|
path: path,
|
|
@@ -888,7 +894,7 @@ module Line
|
|
|
888
894
|
json.transform_keys! do |key|
|
|
889
895
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
890
896
|
end
|
|
891
|
-
response_body = Line::Bot::V2::MessagingApi::GroupUserProfileResponse.create(json)
|
|
897
|
+
response_body = Line::Bot::V2::MessagingApi::GroupUserProfileResponse.create(json)
|
|
892
898
|
[response_body, 200, response.each_header.to_h]
|
|
893
899
|
else
|
|
894
900
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -925,12 +931,13 @@ module Line
|
|
|
925
931
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids
|
|
926
932
|
# @return [Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
927
933
|
# @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(
|
|
934
|
+
def get_group_members_ids_with_http_info(
|
|
929
935
|
group_id:,
|
|
930
936
|
start: nil
|
|
931
937
|
)
|
|
932
|
-
path = "/v2/bot/group/{groupId}/members/ids"
|
|
933
|
-
|
|
938
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/members/ids", {
|
|
939
|
+
"groupId": group_id
|
|
940
|
+
})
|
|
934
941
|
query_params = {
|
|
935
942
|
"start": start
|
|
936
943
|
}.compact
|
|
@@ -946,7 +953,7 @@ module Line
|
|
|
946
953
|
json.transform_keys! do |key|
|
|
947
954
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
948
955
|
end
|
|
949
|
-
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
956
|
+
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
950
957
|
[response_body, 200, response.each_header.to_h]
|
|
951
958
|
else
|
|
952
959
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -982,11 +989,12 @@ module Line
|
|
|
982
989
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-group-summary
|
|
983
990
|
# @return [Array(Line::Bot::V2::MessagingApi::GroupSummaryResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
984
991
|
# @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(
|
|
992
|
+
def get_group_summary_with_http_info(
|
|
986
993
|
group_id:
|
|
987
994
|
)
|
|
988
|
-
path = "/v2/bot/group/{groupId}/summary"
|
|
989
|
-
|
|
995
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/summary", {
|
|
996
|
+
"groupId": group_id
|
|
997
|
+
})
|
|
990
998
|
|
|
991
999
|
response = @http_client.get(
|
|
992
1000
|
path: path,
|
|
@@ -998,7 +1006,7 @@ module Line
|
|
|
998
1006
|
json.transform_keys! do |key|
|
|
999
1007
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1000
1008
|
end
|
|
1001
|
-
response_body = Line::Bot::V2::MessagingApi::GroupSummaryResponse.create(json)
|
|
1009
|
+
response_body = Line::Bot::V2::MessagingApi::GroupSummaryResponse.create(json)
|
|
1002
1010
|
[response_body, 200, response.each_header.to_h]
|
|
1003
1011
|
else
|
|
1004
1012
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1035,13 +1043,14 @@ module Line
|
|
|
1035
1043
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
1036
1044
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1037
1045
|
# @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(
|
|
1046
|
+
def get_joined_membership_users_with_http_info(
|
|
1039
1047
|
membership_id:,
|
|
1040
1048
|
start: nil,
|
|
1041
1049
|
limit: nil
|
|
1042
1050
|
)
|
|
1043
|
-
path = "/v2/bot/membership/{membershipId}/users/ids"
|
|
1044
|
-
|
|
1051
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/membership/{membershipId}/users/ids", {
|
|
1052
|
+
"membershipId": membership_id
|
|
1053
|
+
})
|
|
1045
1054
|
query_params = {
|
|
1046
1055
|
"start": start,
|
|
1047
1056
|
"limit": limit
|
|
@@ -1058,21 +1067,21 @@ module Line
|
|
|
1058
1067
|
json.transform_keys! do |key|
|
|
1059
1068
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1060
1069
|
end
|
|
1061
|
-
response_body = Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse.create(json)
|
|
1070
|
+
response_body = Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse.create(json)
|
|
1062
1071
|
[response_body, 200, response.each_header.to_h]
|
|
1063
1072
|
when 400
|
|
1064
1073
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1065
1074
|
json.transform_keys! do |key|
|
|
1066
1075
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1067
1076
|
end
|
|
1068
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1077
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1069
1078
|
[response_body, 400, response.each_header.to_h]
|
|
1070
1079
|
when 404
|
|
1071
1080
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1072
1081
|
json.transform_keys! do |key|
|
|
1073
1082
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1074
1083
|
end
|
|
1075
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1084
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1076
1085
|
[response_body, 404, response.each_header.to_h]
|
|
1077
1086
|
else
|
|
1078
1087
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1113,7 +1122,7 @@ module Line
|
|
|
1113
1122
|
# @return [Array(Line::Bot::V2::MessagingApi::MembershipListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1114
1123
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1115
1124
|
# @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(
|
|
1125
|
+
def get_membership_list_with_http_info(
|
|
1117
1126
|
)
|
|
1118
1127
|
path = "/v2/bot/membership/list"
|
|
1119
1128
|
|
|
@@ -1127,14 +1136,14 @@ module Line
|
|
|
1127
1136
|
json.transform_keys! do |key|
|
|
1128
1137
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1129
1138
|
end
|
|
1130
|
-
response_body = Line::Bot::V2::MessagingApi::MembershipListResponse.create(json)
|
|
1139
|
+
response_body = Line::Bot::V2::MessagingApi::MembershipListResponse.create(json)
|
|
1131
1140
|
[response_body, 200, response.each_header.to_h]
|
|
1132
1141
|
when 404
|
|
1133
1142
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1134
1143
|
json.transform_keys! do |key|
|
|
1135
1144
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1136
1145
|
end
|
|
1137
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1146
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1138
1147
|
[response_body, 404, response.each_header.to_h]
|
|
1139
1148
|
else
|
|
1140
1149
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1167,11 +1176,12 @@ module Line
|
|
|
1167
1176
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
1168
1177
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
1169
1178
|
# @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(
|
|
1179
|
+
def get_membership_subscription_with_http_info(
|
|
1171
1180
|
user_id:
|
|
1172
1181
|
)
|
|
1173
|
-
path = "/v2/bot/membership/subscription/{userId}"
|
|
1174
|
-
|
|
1182
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/membership/subscription/{userId}", {
|
|
1183
|
+
"userId": user_id
|
|
1184
|
+
})
|
|
1175
1185
|
|
|
1176
1186
|
response = @http_client.get(
|
|
1177
1187
|
path: path,
|
|
@@ -1183,21 +1193,21 @@ module Line
|
|
|
1183
1193
|
json.transform_keys! do |key|
|
|
1184
1194
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1185
1195
|
end
|
|
1186
|
-
response_body = Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse.create(json)
|
|
1196
|
+
response_body = Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse.create(json)
|
|
1187
1197
|
[response_body, 200, response.each_header.to_h]
|
|
1188
1198
|
when 400
|
|
1189
1199
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1190
1200
|
json.transform_keys! do |key|
|
|
1191
1201
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1192
1202
|
end
|
|
1193
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1203
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1194
1204
|
[response_body, 400, response.each_header.to_h]
|
|
1195
1205
|
when 404
|
|
1196
1206
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
1197
1207
|
json.transform_keys! do |key|
|
|
1198
1208
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1199
1209
|
end
|
|
1200
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1210
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
1201
1211
|
[response_body, 404, response.each_header.to_h]
|
|
1202
1212
|
else
|
|
1203
1213
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1231,7 +1241,7 @@ module Line
|
|
|
1231
1241
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-quota
|
|
1232
1242
|
# @return [Array(Line::Bot::V2::MessagingApi::MessageQuotaResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1233
1243
|
# @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(
|
|
1244
|
+
def get_message_quota_with_http_info(
|
|
1235
1245
|
)
|
|
1236
1246
|
path = "/v2/bot/message/quota"
|
|
1237
1247
|
|
|
@@ -1245,7 +1255,7 @@ module Line
|
|
|
1245
1255
|
json.transform_keys! do |key|
|
|
1246
1256
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1247
1257
|
end
|
|
1248
|
-
response_body = Line::Bot::V2::MessagingApi::MessageQuotaResponse.create(json)
|
|
1258
|
+
response_body = Line::Bot::V2::MessagingApi::MessageQuotaResponse.create(json)
|
|
1249
1259
|
[response_body, 200, response.each_header.to_h]
|
|
1250
1260
|
else
|
|
1251
1261
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1274,7 +1284,7 @@ module Line
|
|
|
1274
1284
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-consumption
|
|
1275
1285
|
# @return [Array(Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1276
1286
|
# @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(
|
|
1287
|
+
def get_message_quota_consumption_with_http_info(
|
|
1278
1288
|
)
|
|
1279
1289
|
path = "/v2/bot/message/quota/consumption"
|
|
1280
1290
|
|
|
@@ -1288,7 +1298,7 @@ module Line
|
|
|
1288
1298
|
json.transform_keys! do |key|
|
|
1289
1299
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1290
1300
|
end
|
|
1291
|
-
response_body = Line::Bot::V2::MessagingApi::QuotaConsumptionResponse.create(json)
|
|
1301
|
+
response_body = Line::Bot::V2::MessagingApi::QuotaConsumptionResponse.create(json)
|
|
1292
1302
|
[response_body, 200, response.each_header.to_h]
|
|
1293
1303
|
else
|
|
1294
1304
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1318,7 +1328,7 @@ module Line
|
|
|
1318
1328
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
|
|
1319
1329
|
# @return [Array(Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1320
1330
|
# @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(
|
|
1331
|
+
def get_narrowcast_progress_with_http_info(
|
|
1322
1332
|
request_id:
|
|
1323
1333
|
)
|
|
1324
1334
|
path = "/v2/bot/message/progress/narrowcast"
|
|
@@ -1337,7 +1347,7 @@ module Line
|
|
|
1337
1347
|
json.transform_keys! do |key|
|
|
1338
1348
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1339
1349
|
end
|
|
1340
|
-
response_body = Line::Bot::V2::MessagingApi::NarrowcastProgressResponse.create(json)
|
|
1350
|
+
response_body = Line::Bot::V2::MessagingApi::NarrowcastProgressResponse.create(json)
|
|
1341
1351
|
[response_body, 200, response.each_header.to_h]
|
|
1342
1352
|
else
|
|
1343
1353
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1370,7 +1380,7 @@ module Line
|
|
|
1370
1380
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages
|
|
1371
1381
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1372
1382
|
# @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(
|
|
1383
|
+
def get_number_of_sent_broadcast_messages_with_http_info(
|
|
1374
1384
|
date:
|
|
1375
1385
|
)
|
|
1376
1386
|
path = "/v2/bot/message/delivery/broadcast"
|
|
@@ -1389,7 +1399,7 @@ module Line
|
|
|
1389
1399
|
json.transform_keys! do |key|
|
|
1390
1400
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1391
1401
|
end
|
|
1392
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1402
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1393
1403
|
[response_body, 200, response.each_header.to_h]
|
|
1394
1404
|
else
|
|
1395
1405
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1422,7 +1432,7 @@ module Line
|
|
|
1422
1432
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages
|
|
1423
1433
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1424
1434
|
# @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(
|
|
1435
|
+
def get_number_of_sent_multicast_messages_with_http_info(
|
|
1426
1436
|
date:
|
|
1427
1437
|
)
|
|
1428
1438
|
path = "/v2/bot/message/delivery/multicast"
|
|
@@ -1441,7 +1451,7 @@ module Line
|
|
|
1441
1451
|
json.transform_keys! do |key|
|
|
1442
1452
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1443
1453
|
end
|
|
1444
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1454
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1445
1455
|
[response_body, 200, response.each_header.to_h]
|
|
1446
1456
|
else
|
|
1447
1457
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1474,7 +1484,7 @@ module Line
|
|
|
1474
1484
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages
|
|
1475
1485
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1476
1486
|
# @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(
|
|
1487
|
+
def get_number_of_sent_push_messages_with_http_info(
|
|
1478
1488
|
date:
|
|
1479
1489
|
)
|
|
1480
1490
|
path = "/v2/bot/message/delivery/push"
|
|
@@ -1493,7 +1503,7 @@ module Line
|
|
|
1493
1503
|
json.transform_keys! do |key|
|
|
1494
1504
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1495
1505
|
end
|
|
1496
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1506
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1497
1507
|
[response_body, 200, response.each_header.to_h]
|
|
1498
1508
|
else
|
|
1499
1509
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1526,7 +1536,7 @@ module Line
|
|
|
1526
1536
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages
|
|
1527
1537
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1528
1538
|
# @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(
|
|
1539
|
+
def get_number_of_sent_reply_messages_with_http_info(
|
|
1530
1540
|
date:
|
|
1531
1541
|
)
|
|
1532
1542
|
path = "/v2/bot/message/delivery/reply"
|
|
@@ -1545,7 +1555,7 @@ module Line
|
|
|
1545
1555
|
json.transform_keys! do |key|
|
|
1546
1556
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1547
1557
|
end
|
|
1548
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1558
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1549
1559
|
[response_body, 200, response.each_header.to_h]
|
|
1550
1560
|
else
|
|
1551
1561
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1570,7 +1580,7 @@ module Line
|
|
|
1570
1580
|
response_body
|
|
1571
1581
|
end
|
|
1572
1582
|
|
|
1573
|
-
# Get number of sent LINE notification messages
|
|
1583
|
+
# Get number of sent LINE notification messages
|
|
1574
1584
|
# This requests to <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
|
|
1575
1585
|
# This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
|
|
1576
1586
|
#
|
|
@@ -1578,7 +1588,7 @@ module Line
|
|
|
1578
1588
|
# @see https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages
|
|
1579
1589
|
# @return [Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1580
1590
|
# @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(
|
|
1591
|
+
def get_pnp_message_statistics_with_http_info(
|
|
1582
1592
|
date:
|
|
1583
1593
|
)
|
|
1584
1594
|
path = "/v2/bot/message/delivery/pnp"
|
|
@@ -1597,14 +1607,14 @@ module Line
|
|
|
1597
1607
|
json.transform_keys! do |key|
|
|
1598
1608
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1599
1609
|
end
|
|
1600
|
-
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1610
|
+
response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json)
|
|
1601
1611
|
[response_body, 200, response.each_header.to_h]
|
|
1602
1612
|
else
|
|
1603
1613
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
1604
1614
|
end
|
|
1605
1615
|
end
|
|
1606
1616
|
|
|
1607
|
-
# Get number of sent LINE notification messages
|
|
1617
|
+
# Get number of sent LINE notification messages
|
|
1608
1618
|
# This requests to <code>GET https://api.line.me/v2/bot/message/delivery/pnp</code>
|
|
1609
1619
|
# When you want to get HTTP status code or response headers, use {#get_pnp_message_statistics_with_http_info} instead of this.
|
|
1610
1620
|
#
|
|
@@ -1630,11 +1640,12 @@ module Line
|
|
|
1630
1640
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-profile
|
|
1631
1641
|
# @return [Array(Line::Bot::V2::MessagingApi::UserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1632
1642
|
# @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(
|
|
1643
|
+
def get_profile_with_http_info(
|
|
1634
1644
|
user_id:
|
|
1635
1645
|
)
|
|
1636
|
-
path = "/v2/bot/profile/{userId}"
|
|
1637
|
-
|
|
1646
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/profile/{userId}", {
|
|
1647
|
+
"userId": user_id
|
|
1648
|
+
})
|
|
1638
1649
|
|
|
1639
1650
|
response = @http_client.get(
|
|
1640
1651
|
path: path,
|
|
@@ -1646,7 +1657,7 @@ module Line
|
|
|
1646
1657
|
json.transform_keys! do |key|
|
|
1647
1658
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1648
1659
|
end
|
|
1649
|
-
response_body = Line::Bot::V2::MessagingApi::UserProfileResponse.create(json)
|
|
1660
|
+
response_body = Line::Bot::V2::MessagingApi::UserProfileResponse.create(json)
|
|
1650
1661
|
[response_body, 200, response.each_header.to_h]
|
|
1651
1662
|
else
|
|
1652
1663
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1679,11 +1690,12 @@ module Line
|
|
|
1679
1690
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu
|
|
1680
1691
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1681
1692
|
# @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(
|
|
1693
|
+
def get_rich_menu_with_http_info(
|
|
1683
1694
|
rich_menu_id:
|
|
1684
1695
|
)
|
|
1685
|
-
path = "/v2/bot/richmenu/{richMenuId}"
|
|
1686
|
-
|
|
1696
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}", {
|
|
1697
|
+
"richMenuId": rich_menu_id
|
|
1698
|
+
})
|
|
1687
1699
|
|
|
1688
1700
|
response = @http_client.get(
|
|
1689
1701
|
path: path,
|
|
@@ -1695,7 +1707,7 @@ module Line
|
|
|
1695
1707
|
json.transform_keys! do |key|
|
|
1696
1708
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1697
1709
|
end
|
|
1698
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuResponse.create(json)
|
|
1710
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuResponse.create(json)
|
|
1699
1711
|
[response_body, 200, response.each_header.to_h]
|
|
1700
1712
|
else
|
|
1701
1713
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1728,11 +1740,12 @@ module Line
|
|
|
1728
1740
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id
|
|
1729
1741
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuAliasResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1730
1742
|
# @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(
|
|
1743
|
+
def get_rich_menu_alias_with_http_info(
|
|
1732
1744
|
rich_menu_alias_id:
|
|
1733
1745
|
)
|
|
1734
|
-
path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
|
|
1735
|
-
|
|
1746
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
1747
|
+
"richMenuAliasId": rich_menu_alias_id
|
|
1748
|
+
})
|
|
1736
1749
|
|
|
1737
1750
|
response = @http_client.get(
|
|
1738
1751
|
path: path,
|
|
@@ -1744,7 +1757,7 @@ module Line
|
|
|
1744
1757
|
json.transform_keys! do |key|
|
|
1745
1758
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1746
1759
|
end
|
|
1747
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasResponse.create(json)
|
|
1760
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasResponse.create(json)
|
|
1748
1761
|
[response_body, 200, response.each_header.to_h]
|
|
1749
1762
|
else
|
|
1750
1763
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1776,7 +1789,7 @@ module Line
|
|
|
1776
1789
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list
|
|
1777
1790
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1778
1791
|
# @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(
|
|
1792
|
+
def get_rich_menu_alias_list_with_http_info(
|
|
1780
1793
|
)
|
|
1781
1794
|
path = "/v2/bot/richmenu/alias/list"
|
|
1782
1795
|
|
|
@@ -1790,7 +1803,7 @@ module Line
|
|
|
1790
1803
|
json.transform_keys! do |key|
|
|
1791
1804
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1792
1805
|
end
|
|
1793
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasListResponse.create(json)
|
|
1806
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuAliasListResponse.create(json)
|
|
1794
1807
|
[response_body, 200, response.each_header.to_h]
|
|
1795
1808
|
else
|
|
1796
1809
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1820,7 +1833,7 @@ module Line
|
|
|
1820
1833
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status
|
|
1821
1834
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1822
1835
|
# @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(
|
|
1836
|
+
def get_rich_menu_batch_progress_with_http_info(
|
|
1824
1837
|
request_id:
|
|
1825
1838
|
)
|
|
1826
1839
|
path = "/v2/bot/richmenu/progress/batch"
|
|
@@ -1839,7 +1852,7 @@ module Line
|
|
|
1839
1852
|
json.transform_keys! do |key|
|
|
1840
1853
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1841
1854
|
end
|
|
1842
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse.create(json)
|
|
1855
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse.create(json)
|
|
1843
1856
|
[response_body, 200, response.each_header.to_h]
|
|
1844
1857
|
else
|
|
1845
1858
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1872,11 +1885,12 @@ module Line
|
|
|
1872
1885
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user
|
|
1873
1886
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1874
1887
|
# @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(
|
|
1888
|
+
def get_rich_menu_id_of_user_with_http_info(
|
|
1876
1889
|
user_id:
|
|
1877
1890
|
)
|
|
1878
|
-
path = "/v2/bot/user/{userId}/richmenu"
|
|
1879
|
-
|
|
1891
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu", {
|
|
1892
|
+
"userId": user_id
|
|
1893
|
+
})
|
|
1880
1894
|
|
|
1881
1895
|
response = @http_client.get(
|
|
1882
1896
|
path: path,
|
|
@@ -1888,7 +1902,7 @@ module Line
|
|
|
1888
1902
|
json.transform_keys! do |key|
|
|
1889
1903
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1890
1904
|
end
|
|
1891
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
1905
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json)
|
|
1892
1906
|
[response_body, 200, response.each_header.to_h]
|
|
1893
1907
|
else
|
|
1894
1908
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1920,7 +1934,7 @@ module Line
|
|
|
1920
1934
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list
|
|
1921
1935
|
# @return [Array(Line::Bot::V2::MessagingApi::RichMenuListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1922
1936
|
# @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(
|
|
1937
|
+
def get_rich_menu_list_with_http_info(
|
|
1924
1938
|
)
|
|
1925
1939
|
path = "/v2/bot/richmenu/list"
|
|
1926
1940
|
|
|
@@ -1934,7 +1948,7 @@ module Line
|
|
|
1934
1948
|
json.transform_keys! do |key|
|
|
1935
1949
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1936
1950
|
end
|
|
1937
|
-
response_body = Line::Bot::V2::MessagingApi::RichMenuListResponse.create(json)
|
|
1951
|
+
response_body = Line::Bot::V2::MessagingApi::RichMenuListResponse.create(json)
|
|
1938
1952
|
[response_body, 200, response.each_header.to_h]
|
|
1939
1953
|
else
|
|
1940
1954
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -1964,11 +1978,12 @@ module Line
|
|
|
1964
1978
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
|
|
1965
1979
|
# @return [Array(Line::Bot::V2::MessagingApi::RoomMemberCountResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
1966
1980
|
# @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(
|
|
1981
|
+
def get_room_member_count_with_http_info(
|
|
1968
1982
|
room_id:
|
|
1969
1983
|
)
|
|
1970
|
-
path = "/v2/bot/room/{roomId}/members/count"
|
|
1971
|
-
|
|
1984
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/members/count", {
|
|
1985
|
+
"roomId": room_id
|
|
1986
|
+
})
|
|
1972
1987
|
|
|
1973
1988
|
response = @http_client.get(
|
|
1974
1989
|
path: path,
|
|
@@ -1980,7 +1995,7 @@ module Line
|
|
|
1980
1995
|
json.transform_keys! do |key|
|
|
1981
1996
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
1982
1997
|
end
|
|
1983
|
-
response_body = Line::Bot::V2::MessagingApi::RoomMemberCountResponse.create(json)
|
|
1998
|
+
response_body = Line::Bot::V2::MessagingApi::RoomMemberCountResponse.create(json)
|
|
1984
1999
|
[response_body, 200, response.each_header.to_h]
|
|
1985
2000
|
else
|
|
1986
2001
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2014,13 +2029,14 @@ module Line
|
|
|
2014
2029
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
|
|
2015
2030
|
# @return [Array(Line::Bot::V2::MessagingApi::RoomUserProfileResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2016
2031
|
# @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(
|
|
2032
|
+
def get_room_member_profile_with_http_info(
|
|
2018
2033
|
room_id:,
|
|
2019
2034
|
user_id:
|
|
2020
2035
|
)
|
|
2021
|
-
path = "/v2/bot/room/{roomId}/member/{userId}"
|
|
2022
|
-
|
|
2023
|
-
|
|
2036
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/member/{userId}", {
|
|
2037
|
+
"roomId": room_id,
|
|
2038
|
+
"userId": user_id
|
|
2039
|
+
})
|
|
2024
2040
|
|
|
2025
2041
|
response = @http_client.get(
|
|
2026
2042
|
path: path,
|
|
@@ -2032,7 +2048,7 @@ module Line
|
|
|
2032
2048
|
json.transform_keys! do |key|
|
|
2033
2049
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2034
2050
|
end
|
|
2035
|
-
response_body = Line::Bot::V2::MessagingApi::RoomUserProfileResponse.create(json)
|
|
2051
|
+
response_body = Line::Bot::V2::MessagingApi::RoomUserProfileResponse.create(json)
|
|
2036
2052
|
[response_body, 200, response.each_header.to_h]
|
|
2037
2053
|
else
|
|
2038
2054
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2069,12 +2085,13 @@ module Line
|
|
|
2069
2085
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids
|
|
2070
2086
|
# @return [Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2071
2087
|
# @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(
|
|
2088
|
+
def get_room_members_ids_with_http_info(
|
|
2073
2089
|
room_id:,
|
|
2074
2090
|
start: nil
|
|
2075
2091
|
)
|
|
2076
|
-
path = "/v2/bot/room/{roomId}/members/ids"
|
|
2077
|
-
|
|
2092
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/members/ids", {
|
|
2093
|
+
"roomId": room_id
|
|
2094
|
+
})
|
|
2078
2095
|
query_params = {
|
|
2079
2096
|
"start": start
|
|
2080
2097
|
}.compact
|
|
@@ -2090,7 +2107,7 @@ module Line
|
|
|
2090
2107
|
json.transform_keys! do |key|
|
|
2091
2108
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2092
2109
|
end
|
|
2093
|
-
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
2110
|
+
response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json)
|
|
2094
2111
|
[response_body, 200, response.each_header.to_h]
|
|
2095
2112
|
else
|
|
2096
2113
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2125,7 +2142,7 @@ module Line
|
|
|
2125
2142
|
# @see https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information
|
|
2126
2143
|
# @return [Array(Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2127
2144
|
# @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(
|
|
2145
|
+
def get_webhook_endpoint_with_http_info(
|
|
2129
2146
|
)
|
|
2130
2147
|
path = "/v2/bot/channel/webhook/endpoint"
|
|
2131
2148
|
|
|
@@ -2139,7 +2156,7 @@ module Line
|
|
|
2139
2156
|
json.transform_keys! do |key|
|
|
2140
2157
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2141
2158
|
end
|
|
2142
|
-
response_body = Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse.create(json)
|
|
2159
|
+
response_body = Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse.create(json)
|
|
2143
2160
|
[response_body, 200, response.each_header.to_h]
|
|
2144
2161
|
else
|
|
2145
2162
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2169,11 +2186,12 @@ module Line
|
|
|
2169
2186
|
# @see https://developers.line.biz/en/reference/messaging-api/#issue-link-token
|
|
2170
2187
|
# @return [Array(Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2171
2188
|
# @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(
|
|
2189
|
+
def issue_link_token_with_http_info(
|
|
2173
2190
|
user_id:
|
|
2174
2191
|
)
|
|
2175
|
-
path = "/v2/bot/user/{userId}/linkToken"
|
|
2176
|
-
|
|
2192
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/linkToken", {
|
|
2193
|
+
"userId": user_id
|
|
2194
|
+
})
|
|
2177
2195
|
|
|
2178
2196
|
response = @http_client.post(
|
|
2179
2197
|
path: path,
|
|
@@ -2185,7 +2203,7 @@ module Line
|
|
|
2185
2203
|
json.transform_keys! do |key|
|
|
2186
2204
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2187
2205
|
end
|
|
2188
|
-
response_body = Line::Bot::V2::MessagingApi::IssueLinkTokenResponse.create(json)
|
|
2206
|
+
response_body = Line::Bot::V2::MessagingApi::IssueLinkTokenResponse.create(json)
|
|
2189
2207
|
[response_body, 200, response.each_header.to_h]
|
|
2190
2208
|
else
|
|
2191
2209
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2220,11 +2238,12 @@ module Line
|
|
|
2220
2238
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2221
2239
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404
|
|
2222
2240
|
# @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(
|
|
2241
|
+
def leave_group_with_http_info(
|
|
2224
2242
|
group_id:
|
|
2225
2243
|
)
|
|
2226
|
-
path = "/v2/bot/group/{groupId}/leave"
|
|
2227
|
-
|
|
2244
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/leave", {
|
|
2245
|
+
"groupId": group_id
|
|
2246
|
+
})
|
|
2228
2247
|
|
|
2229
2248
|
response = @http_client.post(
|
|
2230
2249
|
path: path,
|
|
@@ -2238,14 +2257,14 @@ module Line
|
|
|
2238
2257
|
json.transform_keys! do |key|
|
|
2239
2258
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2240
2259
|
end
|
|
2241
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2260
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2242
2261
|
[response_body, 400, response.each_header.to_h]
|
|
2243
2262
|
when 404
|
|
2244
2263
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2245
2264
|
json.transform_keys! do |key|
|
|
2246
2265
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2247
2266
|
end
|
|
2248
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2267
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2249
2268
|
[response_body, 404, response.each_header.to_h]
|
|
2250
2269
|
else
|
|
2251
2270
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2280,11 +2299,12 @@ module Line
|
|
|
2280
2299
|
# @see https://developers.line.biz/en/reference/messaging-api/#leave-room
|
|
2281
2300
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2282
2301
|
# @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(
|
|
2302
|
+
def leave_room_with_http_info(
|
|
2284
2303
|
room_id:
|
|
2285
2304
|
)
|
|
2286
|
-
path = "/v2/bot/room/{roomId}/leave"
|
|
2287
|
-
|
|
2305
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/leave", {
|
|
2306
|
+
"roomId": room_id
|
|
2307
|
+
})
|
|
2288
2308
|
|
|
2289
2309
|
response = @http_client.post(
|
|
2290
2310
|
path: path,
|
|
@@ -2325,13 +2345,14 @@ module Line
|
|
|
2325
2345
|
# @see https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user
|
|
2326
2346
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2327
2347
|
# @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(
|
|
2348
|
+
def link_rich_menu_id_to_user_with_http_info(
|
|
2329
2349
|
user_id:,
|
|
2330
2350
|
rich_menu_id:
|
|
2331
2351
|
)
|
|
2332
|
-
path = "/v2/bot/user/{userId}/richmenu/{richMenuId}"
|
|
2333
|
-
|
|
2334
|
-
|
|
2352
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu/{richMenuId}", {
|
|
2353
|
+
"userId": user_id,
|
|
2354
|
+
"richMenuId": rich_menu_id
|
|
2355
|
+
})
|
|
2335
2356
|
|
|
2336
2357
|
response = @http_client.post(
|
|
2337
2358
|
path: path,
|
|
@@ -2374,7 +2395,7 @@ module Line
|
|
|
2374
2395
|
# @see https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users
|
|
2375
2396
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
2376
2397
|
# @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(
|
|
2398
|
+
def link_rich_menu_id_to_users_with_http_info(
|
|
2378
2399
|
rich_menu_bulk_link_request:
|
|
2379
2400
|
)
|
|
2380
2401
|
path = "/v2/bot/richmenu/bulk/link"
|
|
@@ -2421,7 +2442,7 @@ module Line
|
|
|
2421
2442
|
# @return [Array(Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
2422
2443
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2423
2444
|
# @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(
|
|
2445
|
+
def list_coupon_with_http_info(
|
|
2425
2446
|
status: nil,
|
|
2426
2447
|
start: nil,
|
|
2427
2448
|
limit: nil
|
|
@@ -2444,14 +2465,14 @@ module Line
|
|
|
2444
2465
|
json.transform_keys! do |key|
|
|
2445
2466
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2446
2467
|
end
|
|
2447
|
-
response_body = Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse.create(json)
|
|
2468
|
+
response_body = Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse.create(json)
|
|
2448
2469
|
[response_body, 200, response.each_header.to_h]
|
|
2449
2470
|
when 400
|
|
2450
2471
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2451
2472
|
json.transform_keys! do |key|
|
|
2452
2473
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2453
2474
|
end
|
|
2454
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2475
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2455
2476
|
[response_body, 400, response.each_header.to_h]
|
|
2456
2477
|
else
|
|
2457
2478
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2491,7 +2512,7 @@ module Line
|
|
|
2491
2512
|
# @see https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
|
|
2492
2513
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2493
2514
|
# @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(
|
|
2515
|
+
def mark_messages_as_read_with_http_info(
|
|
2495
2516
|
mark_messages_as_read_request:
|
|
2496
2517
|
)
|
|
2497
2518
|
path = "/v2/bot/message/markAsRead"
|
|
@@ -2536,7 +2557,7 @@ module Line
|
|
|
2536
2557
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2537
2558
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2538
2559
|
# @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(
|
|
2560
|
+
def mark_messages_as_read_by_token_with_http_info(
|
|
2540
2561
|
mark_messages_as_read_by_token_request:
|
|
2541
2562
|
)
|
|
2542
2563
|
path = "/v2/bot/chat/markAsRead"
|
|
@@ -2554,7 +2575,7 @@ module Line
|
|
|
2554
2575
|
json.transform_keys! do |key|
|
|
2555
2576
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2556
2577
|
end
|
|
2557
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2578
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2558
2579
|
[response_body, 400, response.each_header.to_h]
|
|
2559
2580
|
else
|
|
2560
2581
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2593,7 +2614,7 @@ module Line
|
|
|
2593
2614
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2594
2615
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2595
2616
|
# @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(
|
|
2617
|
+
def multicast_with_http_info(
|
|
2597
2618
|
multicast_request:,
|
|
2598
2619
|
x_line_retry_key: nil
|
|
2599
2620
|
)
|
|
@@ -2616,28 +2637,28 @@ module Line
|
|
|
2616
2637
|
json.transform_keys! do |key|
|
|
2617
2638
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2618
2639
|
end
|
|
2619
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2640
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2620
2641
|
[response_body, 400, response.each_header.to_h]
|
|
2621
2642
|
when 403
|
|
2622
2643
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2623
2644
|
json.transform_keys! do |key|
|
|
2624
2645
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2625
2646
|
end
|
|
2626
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2647
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2627
2648
|
[response_body, 403, response.each_header.to_h]
|
|
2628
2649
|
when 409
|
|
2629
2650
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2630
2651
|
json.transform_keys! do |key|
|
|
2631
2652
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2632
2653
|
end
|
|
2633
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2654
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2634
2655
|
[response_body, 409, response.each_header.to_h]
|
|
2635
2656
|
when 429
|
|
2636
2657
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2637
2658
|
json.transform_keys! do |key|
|
|
2638
2659
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2639
2660
|
end
|
|
2640
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2661
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2641
2662
|
[response_body, 429, response.each_header.to_h]
|
|
2642
2663
|
else
|
|
2643
2664
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2682,7 +2703,7 @@ module Line
|
|
|
2682
2703
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2683
2704
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2684
2705
|
# @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(
|
|
2706
|
+
def narrowcast_with_http_info(
|
|
2686
2707
|
narrowcast_request:,
|
|
2687
2708
|
x_line_retry_key: nil
|
|
2688
2709
|
)
|
|
@@ -2705,28 +2726,28 @@ module Line
|
|
|
2705
2726
|
json.transform_keys! do |key|
|
|
2706
2727
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2707
2728
|
end
|
|
2708
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2729
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2709
2730
|
[response_body, 400, response.each_header.to_h]
|
|
2710
2731
|
when 403
|
|
2711
2732
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2712
2733
|
json.transform_keys! do |key|
|
|
2713
2734
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2714
2735
|
end
|
|
2715
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2736
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2716
2737
|
[response_body, 403, response.each_header.to_h]
|
|
2717
2738
|
when 409
|
|
2718
2739
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2719
2740
|
json.transform_keys! do |key|
|
|
2720
2741
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2721
2742
|
end
|
|
2722
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2743
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2723
2744
|
[response_body, 409, response.each_header.to_h]
|
|
2724
2745
|
when 429
|
|
2725
2746
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2726
2747
|
json.transform_keys! do |key|
|
|
2727
2748
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2728
2749
|
end
|
|
2729
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2750
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2730
2751
|
[response_body, 429, response.each_header.to_h]
|
|
2731
2752
|
else
|
|
2732
2753
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2771,7 +2792,7 @@ module Line
|
|
|
2771
2792
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 409
|
|
2772
2793
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2773
2794
|
# @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(
|
|
2795
|
+
def push_message_with_http_info(
|
|
2775
2796
|
push_message_request:,
|
|
2776
2797
|
x_line_retry_key: nil
|
|
2777
2798
|
)
|
|
@@ -2792,35 +2813,35 @@ module Line
|
|
|
2792
2813
|
json.transform_keys! do |key|
|
|
2793
2814
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2794
2815
|
end
|
|
2795
|
-
response_body = Line::Bot::V2::MessagingApi::PushMessageResponse.create(json)
|
|
2816
|
+
response_body = Line::Bot::V2::MessagingApi::PushMessageResponse.create(json)
|
|
2796
2817
|
[response_body, 200, response.each_header.to_h]
|
|
2797
2818
|
when 400
|
|
2798
2819
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2799
2820
|
json.transform_keys! do |key|
|
|
2800
2821
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2801
2822
|
end
|
|
2802
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2823
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2803
2824
|
[response_body, 400, response.each_header.to_h]
|
|
2804
2825
|
when 403
|
|
2805
2826
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2806
2827
|
json.transform_keys! do |key|
|
|
2807
2828
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2808
2829
|
end
|
|
2809
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2830
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2810
2831
|
[response_body, 403, response.each_header.to_h]
|
|
2811
2832
|
when 409
|
|
2812
2833
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2813
2834
|
json.transform_keys! do |key|
|
|
2814
2835
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2815
2836
|
end
|
|
2816
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2837
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2817
2838
|
[response_body, 409, response.each_header.to_h]
|
|
2818
2839
|
when 429
|
|
2819
2840
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2820
2841
|
json.transform_keys! do |key|
|
|
2821
2842
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2822
2843
|
end
|
|
2823
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2844
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2824
2845
|
[response_body, 429, response.each_header.to_h]
|
|
2825
2846
|
else
|
|
2826
2847
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2862,7 +2883,7 @@ module Line
|
|
|
2862
2883
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
2863
2884
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 422
|
|
2864
2885
|
# @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(
|
|
2886
|
+
def push_messages_by_phone_with_http_info(
|
|
2866
2887
|
pnp_messages_request:,
|
|
2867
2888
|
x_line_delivery_tag: nil
|
|
2868
2889
|
)
|
|
@@ -2885,7 +2906,7 @@ module Line
|
|
|
2885
2906
|
json.transform_keys! do |key|
|
|
2886
2907
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2887
2908
|
end
|
|
2888
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2909
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2889
2910
|
[response_body, 422, response.each_header.to_h]
|
|
2890
2911
|
else
|
|
2891
2912
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2924,7 +2945,7 @@ module Line
|
|
|
2924
2945
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
2925
2946
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 429
|
|
2926
2947
|
# @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(
|
|
2948
|
+
def reply_message_with_http_info(
|
|
2928
2949
|
reply_message_request:
|
|
2929
2950
|
)
|
|
2930
2951
|
path = "/v2/bot/message/reply"
|
|
@@ -2940,21 +2961,21 @@ module Line
|
|
|
2940
2961
|
json.transform_keys! do |key|
|
|
2941
2962
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2942
2963
|
end
|
|
2943
|
-
response_body = Line::Bot::V2::MessagingApi::ReplyMessageResponse.create(json)
|
|
2964
|
+
response_body = Line::Bot::V2::MessagingApi::ReplyMessageResponse.create(json)
|
|
2944
2965
|
[response_body, 200, response.each_header.to_h]
|
|
2945
2966
|
when 400
|
|
2946
2967
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2947
2968
|
json.transform_keys! do |key|
|
|
2948
2969
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2949
2970
|
end
|
|
2950
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2971
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2951
2972
|
[response_body, 400, response.each_header.to_h]
|
|
2952
2973
|
when 429
|
|
2953
2974
|
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
|
|
2954
2975
|
json.transform_keys! do |key|
|
|
2955
2976
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
2956
2977
|
end
|
|
2957
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2978
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
2958
2979
|
[response_body, 429, response.each_header.to_h]
|
|
2959
2980
|
else
|
|
2960
2981
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -2989,7 +3010,7 @@ module Line
|
|
|
2989
3010
|
# @see https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users
|
|
2990
3011
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
2991
3012
|
# @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(
|
|
3013
|
+
def rich_menu_batch_with_http_info(
|
|
2993
3014
|
rich_menu_batch_request:
|
|
2994
3015
|
)
|
|
2995
3016
|
path = "/v2/bot/richmenu/batch"
|
|
@@ -3033,11 +3054,12 @@ module Line
|
|
|
3033
3054
|
# @see https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu
|
|
3034
3055
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3035
3056
|
# @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(
|
|
3057
|
+
def set_default_rich_menu_with_http_info(
|
|
3037
3058
|
rich_menu_id:
|
|
3038
3059
|
)
|
|
3039
|
-
path = "/v2/bot/user/all/richmenu/{richMenuId}"
|
|
3040
|
-
|
|
3060
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/user/all/richmenu/{richMenuId}", {
|
|
3061
|
+
"richMenuId": rich_menu_id
|
|
3062
|
+
})
|
|
3041
3063
|
|
|
3042
3064
|
response = @http_client.post(
|
|
3043
3065
|
path: path,
|
|
@@ -3077,7 +3099,7 @@ module Line
|
|
|
3077
3099
|
# @see https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url
|
|
3078
3100
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3079
3101
|
# @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(
|
|
3102
|
+
def set_webhook_endpoint_with_http_info(
|
|
3081
3103
|
set_webhook_endpoint_request:
|
|
3082
3104
|
)
|
|
3083
3105
|
path = "/v2/bot/channel/webhook/endpoint"
|
|
@@ -3122,7 +3144,7 @@ module Line
|
|
|
3122
3144
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
3123
3145
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
3124
3146
|
# @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(
|
|
3147
|
+
def show_loading_animation_with_http_info(
|
|
3126
3148
|
show_loading_animation_request:
|
|
3127
3149
|
)
|
|
3128
3150
|
path = "/v2/bot/chat/loading/start"
|
|
@@ -3140,7 +3162,7 @@ module Line
|
|
|
3140
3162
|
json.transform_keys! do |key|
|
|
3141
3163
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3142
3164
|
end
|
|
3143
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3165
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3144
3166
|
[response_body, 400, response.each_header.to_h]
|
|
3145
3167
|
else
|
|
3146
3168
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3174,7 +3196,7 @@ module Line
|
|
|
3174
3196
|
# @see https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
|
|
3175
3197
|
# @return [Array(Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, Integer, Hash{String => String})] when HTTP status code is 200
|
|
3176
3198
|
# @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(
|
|
3199
|
+
def test_webhook_endpoint_with_http_info(
|
|
3178
3200
|
test_webhook_endpoint_request: nil
|
|
3179
3201
|
)
|
|
3180
3202
|
path = "/v2/bot/channel/webhook/test"
|
|
@@ -3190,7 +3212,7 @@ module Line
|
|
|
3190
3212
|
json.transform_keys! do |key|
|
|
3191
3213
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3192
3214
|
end
|
|
3193
|
-
response_body = Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse.create(json)
|
|
3215
|
+
response_body = Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse.create(json)
|
|
3194
3216
|
[response_body, 200, response.each_header.to_h]
|
|
3195
3217
|
else
|
|
3196
3218
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3223,11 +3245,12 @@ module Line
|
|
|
3223
3245
|
# @see https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user
|
|
3224
3246
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3225
3247
|
# @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(
|
|
3248
|
+
def unlink_rich_menu_id_from_user_with_http_info(
|
|
3227
3249
|
user_id:
|
|
3228
3250
|
)
|
|
3229
|
-
path = "/v2/bot/user/{userId}/richmenu"
|
|
3230
|
-
|
|
3251
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu", {
|
|
3252
|
+
"userId": user_id
|
|
3253
|
+
})
|
|
3231
3254
|
|
|
3232
3255
|
response = @http_client.delete(
|
|
3233
3256
|
path: path,
|
|
@@ -3267,7 +3290,7 @@ module Line
|
|
|
3267
3290
|
# @see https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users
|
|
3268
3291
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 202
|
|
3269
3292
|
# @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(
|
|
3293
|
+
def unlink_rich_menu_id_from_users_with_http_info(
|
|
3271
3294
|
rich_menu_bulk_unlink_request:
|
|
3272
3295
|
)
|
|
3273
3296
|
path = "/v2/bot/richmenu/bulk/unlink"
|
|
@@ -3313,12 +3336,13 @@ module Line
|
|
|
3313
3336
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3314
3337
|
# @return [Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
|
|
3315
3338
|
# @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(
|
|
3339
|
+
def update_rich_menu_alias_with_http_info(
|
|
3317
3340
|
rich_menu_alias_id:,
|
|
3318
3341
|
update_rich_menu_alias_request:
|
|
3319
3342
|
)
|
|
3320
|
-
path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
|
|
3321
|
-
|
|
3343
|
+
path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
|
|
3344
|
+
"richMenuAliasId": rich_menu_alias_id
|
|
3345
|
+
})
|
|
3322
3346
|
|
|
3323
3347
|
response = @http_client.post(
|
|
3324
3348
|
path: path,
|
|
@@ -3333,7 +3357,7 @@ module Line
|
|
|
3333
3357
|
json.transform_keys! do |key|
|
|
3334
3358
|
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
|
|
3335
3359
|
end
|
|
3336
|
-
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3360
|
+
response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json)
|
|
3337
3361
|
[response_body, 400, response.each_header.to_h]
|
|
3338
3362
|
else
|
|
3339
3363
|
[response.body, response.code.to_i, response.each_header.to_h]
|
|
@@ -3370,7 +3394,7 @@ module Line
|
|
|
3370
3394
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-broadcast-message
|
|
3371
3395
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3372
3396
|
# @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(
|
|
3397
|
+
def validate_broadcast_with_http_info(
|
|
3374
3398
|
validate_message_request:
|
|
3375
3399
|
)
|
|
3376
3400
|
path = "/v2/bot/message/validate/broadcast"
|
|
@@ -3414,7 +3438,7 @@ module Line
|
|
|
3414
3438
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-multicast-message
|
|
3415
3439
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3416
3440
|
# @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(
|
|
3441
|
+
def validate_multicast_with_http_info(
|
|
3418
3442
|
validate_message_request:
|
|
3419
3443
|
)
|
|
3420
3444
|
path = "/v2/bot/message/validate/multicast"
|
|
@@ -3458,7 +3482,7 @@ module Line
|
|
|
3458
3482
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-narrowcast-message
|
|
3459
3483
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3460
3484
|
# @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(
|
|
3485
|
+
def validate_narrowcast_with_http_info(
|
|
3462
3486
|
validate_message_request:
|
|
3463
3487
|
)
|
|
3464
3488
|
path = "/v2/bot/message/validate/narrowcast"
|
|
@@ -3502,7 +3526,7 @@ module Line
|
|
|
3502
3526
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message
|
|
3503
3527
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3504
3528
|
# @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(
|
|
3529
|
+
def validate_push_with_http_info(
|
|
3506
3530
|
validate_message_request:
|
|
3507
3531
|
)
|
|
3508
3532
|
path = "/v2/bot/message/validate/push"
|
|
@@ -3546,7 +3570,7 @@ module Line
|
|
|
3546
3570
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message
|
|
3547
3571
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3548
3572
|
# @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(
|
|
3573
|
+
def validate_reply_with_http_info(
|
|
3550
3574
|
validate_message_request:
|
|
3551
3575
|
)
|
|
3552
3576
|
path = "/v2/bot/message/validate/reply"
|
|
@@ -3590,7 +3614,7 @@ module Line
|
|
|
3590
3614
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request
|
|
3591
3615
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3592
3616
|
# @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(
|
|
3617
|
+
def validate_rich_menu_batch_request_with_http_info(
|
|
3594
3618
|
rich_menu_batch_request:
|
|
3595
3619
|
)
|
|
3596
3620
|
path = "/v2/bot/richmenu/validate/batch"
|
|
@@ -3634,7 +3658,7 @@ module Line
|
|
|
3634
3658
|
# @see https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object
|
|
3635
3659
|
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
|
|
3636
3660
|
# @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(
|
|
3661
|
+
def validate_rich_menu_object_with_http_info(
|
|
3638
3662
|
rich_menu_request:
|
|
3639
3663
|
)
|
|
3640
3664
|
path = "/v2/bot/richmenu/validate"
|