Class: Line::Bot::V2::MessagingApi::ApiClient
- Inherits:
-
Object
- Object
- Line::Bot::V2::MessagingApi::ApiClient
- Defined in:
- lib/line/bot/v2/messaging_api/api/messaging_api_client.rb
Instance Method Summary collapse
-
#broadcast(broadcast_request:, x_line_retry_key: nil) ⇒ String, ...
Sends a message to multiple users at any time.
-
#broadcast_with_http_info(broadcast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Sends a message to multiple users at any time.
-
#cancel_default_rich_menu ⇒ String?
Cancel default rich menu This requests to
DELETE https://api.line.me/v2/bot/user/all/richmenu
When you want to get HTTP status code or response headers, use #cancel_default_rich_menu_with_http_info instead of this. -
#cancel_default_rich_menu_with_http_info ⇒ Array((String|nil), Integer, Hash{String => String})
Cancel default rich menu This requests to
DELETE https://api.line.me/v2/bot/user/all/richmenu
This returns an array containing response, HTTP status code, and header in order. -
#close_coupon(coupon_id:) ⇒ String, ...
Close coupon This requests to
PUT https://api.line.me/v2/bot/coupon/{couponId}/close
When you want to get HTTP status code or response headers, use #close_coupon_with_http_info instead of this. -
#close_coupon_with_http_info(coupon_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Close coupon This requests to
PUT https://api.line.me/v2/bot/coupon/{couponId}/close
This returns an array containing response, HTTP status code, and header in order. -
#create_coupon(coupon_create_request: nil) ⇒ Line::Bot::V2::MessagingApi::CouponCreateResponse, ...
Create a new coupon.
-
#create_coupon_with_http_info(coupon_create_request: nil) ⇒ Array(Line::Bot::V2::MessagingApi::CouponCreateResponse, Integer, Hash{String => String}), ...
Create a new coupon.
-
#create_rich_menu(rich_menu_request:) ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Create rich menu This requests to
POST https://api.line.me/v2/bot/richmenu
When you want to get HTTP status code or response headers, use #create_rich_menu_with_http_info instead of this. -
#create_rich_menu_alias(create_rich_menu_alias_request:) ⇒ String, ...
Create rich menu alias This requests to
POST https://api.line.me/v2/bot/richmenu/alias
When you want to get HTTP status code or response headers, use #create_rich_menu_alias_with_http_info instead of this. -
#create_rich_menu_alias_with_http_info(create_rich_menu_alias_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Create rich menu alias This requests to
POST https://api.line.me/v2/bot/richmenu/alias
This returns an array containing response, HTTP status code, and header in order. -
#create_rich_menu_with_http_info(rich_menu_request:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Create rich menu This requests to
POST https://api.line.me/v2/bot/richmenu
This returns an array containing response, HTTP status code, and header in order. -
#delete_rich_menu(rich_menu_id:) ⇒ String?
Deletes a rich menu.
-
#delete_rich_menu_alias(rich_menu_alias_id:) ⇒ String, ...
Delete rich menu alias This requests to
DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #delete_rich_menu_alias_with_http_info instead of this. -
#delete_rich_menu_alias_with_http_info(rich_menu_alias_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Delete rich menu alias This requests to
DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. -
#delete_rich_menu_with_http_info(rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Deletes a rich menu.
-
#get_aggregation_unit_name_list(limit: nil, start: nil) ⇒ Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, ...
Get name list of units used this month This requests to
GET https://api.line.me/v2/bot/message/aggregation/list
When you want to get HTTP status code or response headers, use #get_aggregation_unit_name_list_with_http_info instead of this. -
#get_aggregation_unit_name_list_with_http_info(limit: nil, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get name list of units used this month This requests to
GET https://api.line.me/v2/bot/message/aggregation/list
This returns an array containing response, HTTP status code, and header in order. -
#get_aggregation_unit_usage ⇒ Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, ...
Get number of units used this month This requests to
GET https://api.line.me/v2/bot/message/aggregation/info
When you want to get HTTP status code or response headers, use #get_aggregation_unit_usage_with_http_info instead of this. -
#get_aggregation_unit_usage_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of units used this month This requests to
GET https://api.line.me/v2/bot/message/aggregation/info
This returns an array containing response, HTTP status code, and header in order. -
#get_bot_info ⇒ Line::Bot::V2::MessagingApi::BotInfoResponse, ...
Get bot info This requests to
GET https://api.line.me/v2/bot/info
When you want to get HTTP status code or response headers, use #get_bot_info_with_http_info instead of this. -
#get_bot_info_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::BotInfoResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get bot info This requests to
GET https://api.line.me/v2/bot/info
This returns an array containing response, HTTP status code, and header in order. -
#get_coupon_detail(coupon_id:) ⇒ Line::Bot::V2::MessagingApi::CouponResponse, ...
Get coupon detail This requests to
GET https://api.line.me/v2/bot/coupon/{couponId}
When you want to get HTTP status code or response headers, use #get_coupon_detail_with_http_info instead of this. -
#get_coupon_detail_with_http_info(coupon_id:) ⇒ Array(Line::Bot::V2::MessagingApi::CouponResponse, Integer, Hash{String => String}), ...
Get coupon detail This requests to
GET https://api.line.me/v2/bot/coupon/{couponId}
This returns an array containing response, HTTP status code, and header in order. -
#get_default_rich_menu_id ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Gets the ID of the default rich menu set with the Messaging API.
-
#get_default_rich_menu_id_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the ID of the default rich menu set with the Messaging API.
-
#get_followers(start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::GetFollowersResponse, ...
Get a list of users who added your LINE Official Account as a friend This requests to
GET https://api.line.me/v2/bot/followers/ids
When you want to get HTTP status code or response headers, use #get_followers_with_http_info instead of this. -
#get_followers_with_http_info(start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetFollowersResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get a list of users who added your LINE Official Account as a friend This requests to
GET https://api.line.me/v2/bot/followers/ids
This returns an array containing response, HTTP status code, and header in order. -
#get_group_member_count(group_id:) ⇒ Line::Bot::V2::MessagingApi::GroupMemberCountResponse, ...
Get number of users in a group chat This requests to
GET https://api.line.me/v2/bot/group/{groupId}/members/count
When you want to get HTTP status code or response headers, use #get_group_member_count_with_http_info instead of this. -
#get_group_member_count_with_http_info(group_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupMemberCountResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of users in a group chat This requests to
GET https://api.line.me/v2/bot/group/{groupId}/members/count
This returns an array containing response, HTTP status code, and header in order. -
#get_group_member_profile(group_id:, user_id:) ⇒ Line::Bot::V2::MessagingApi::GroupUserProfileResponse, ...
Get group chat member profile This requests to
GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}
When you want to get HTTP status code or response headers, use #get_group_member_profile_with_http_info instead of this. -
#get_group_member_profile_with_http_info(group_id:, user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupUserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat member profile This requests to
GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}
This returns an array containing response, HTTP status code, and header in order. -
#get_group_members_ids(group_id:, start: nil) ⇒ Line::Bot::V2::MessagingApi::MembersIdsResponse, ...
Get group chat member user IDs This requests to
GET https://api.line.me/v2/bot/group/{groupId}/members/ids
When you want to get HTTP status code or response headers, use #get_group_members_ids_with_http_info instead of this. -
#get_group_members_ids_with_http_info(group_id:, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat member user IDs This requests to
GET https://api.line.me/v2/bot/group/{groupId}/members/ids
This returns an array containing response, HTTP status code, and header in order. -
#get_group_summary(group_id:) ⇒ Line::Bot::V2::MessagingApi::GroupSummaryResponse, ...
Get group chat summary This requests to
GET https://api.line.me/v2/bot/group/{groupId}/summary
When you want to get HTTP status code or response headers, use #get_group_summary_with_http_info instead of this. -
#get_group_summary_with_http_info(group_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupSummaryResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat summary This requests to
GET https://api.line.me/v2/bot/group/{groupId}/summary
This returns an array containing response, HTTP status code, and header in order. -
#get_joined_membership_users(membership_id:, start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse, ...
Get a list of user IDs who joined the membership.
-
#get_joined_membership_users_with_http_info(membership_id:, start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse, Integer, Hash{String => String}), ...
Get a list of user IDs who joined the membership.
-
#get_membership_list ⇒ Line::Bot::V2::MessagingApi::MembershipListResponse, ...
Get a list of memberships.
-
#get_membership_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::MembershipListResponse, Integer, Hash{String => String}), ...
Get a list of memberships.
-
#get_membership_subscription(user_id:) ⇒ Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse, ...
Get a user’s membership subscription.
-
#get_membership_subscription_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse, Integer, Hash{String => String}), ...
Get a user’s membership subscription.
-
#get_message_quota ⇒ Line::Bot::V2::MessagingApi::MessageQuotaResponse, ...
Gets the target limit for sending messages in the current month.
-
#get_message_quota_consumption ⇒ Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, ...
Gets the number of messages sent in the current month.
-
#get_message_quota_consumption_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the number of messages sent in the current month.
-
#get_message_quota_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::MessageQuotaResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the target limit for sending messages in the current month.
-
#get_narrowcast_progress(request_id:) ⇒ Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, ...
Gets the status of a narrowcast message.
-
#get_narrowcast_progress_with_http_info(request_id:) ⇒ Array(Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the status of a narrowcast message.
-
#get_number_of_sent_broadcast_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent broadcast messages This requests to
GET https://api.line.me/v2/bot/message/delivery/broadcast
When you want to get HTTP status code or response headers, use #get_number_of_sent_broadcast_messages_with_http_info instead of this. -
#get_number_of_sent_broadcast_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent broadcast messages This requests to
GET https://api.line.me/v2/bot/message/delivery/broadcast
This returns an array containing response, HTTP status code, and header in order. -
#get_number_of_sent_multicast_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent multicast messages This requests to
GET https://api.line.me/v2/bot/message/delivery/multicast
When you want to get HTTP status code or response headers, use #get_number_of_sent_multicast_messages_with_http_info instead of this. -
#get_number_of_sent_multicast_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent multicast messages This requests to
GET https://api.line.me/v2/bot/message/delivery/multicast
This returns an array containing response, HTTP status code, and header in order. -
#get_number_of_sent_push_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent push messages This requests to
GET https://api.line.me/v2/bot/message/delivery/push
When you want to get HTTP status code or response headers, use #get_number_of_sent_push_messages_with_http_info instead of this. -
#get_number_of_sent_push_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent push messages This requests to
GET https://api.line.me/v2/bot/message/delivery/push
This returns an array containing response, HTTP status code, and header in order. -
#get_number_of_sent_reply_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent reply messages This requests to
GET https://api.line.me/v2/bot/message/delivery/reply
When you want to get HTTP status code or response headers, use #get_number_of_sent_reply_messages_with_http_info instead of this. -
#get_number_of_sent_reply_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent reply messages This requests to
GET https://api.line.me/v2/bot/message/delivery/reply
This returns an array containing response, HTTP status code, and header in order. -
#get_pnp_message_statistics(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent LINE notification messages This requests to
GET https://api.line.me/v2/bot/message/delivery/pnp
When you want to get HTTP status code or response headers, use #get_pnp_message_statistics_with_http_info instead of this. -
#get_pnp_message_statistics_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent LINE notification messages This requests to
GET https://api.line.me/v2/bot/message/delivery/pnp
This returns an array containing response, HTTP status code, and header in order. -
#get_profile(user_id:) ⇒ Line::Bot::V2::MessagingApi::UserProfileResponse, ...
Get profile This requests to
GET https://api.line.me/v2/bot/profile/{userId}
When you want to get HTTP status code or response headers, use #get_profile_with_http_info instead of this. -
#get_profile_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::UserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get profile This requests to
GET https://api.line.me/v2/bot/profile/{userId}
This returns an array containing response, HTTP status code, and header in order. -
#get_rich_menu(rich_menu_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuResponse, ...
Gets a rich menu via a rich menu ID.
-
#get_rich_menu_alias(rich_menu_alias_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuAliasResponse, ...
Get rich menu alias information This requests to
GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #get_rich_menu_alias_with_http_info instead of this. -
#get_rich_menu_alias_list ⇒ Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, ...
Get list of rich menu alias This requests to
GET https://api.line.me/v2/bot/richmenu/alias/list
When you want to get HTTP status code or response headers, use #get_rich_menu_alias_list_with_http_info instead of this. -
#get_rich_menu_alias_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get list of rich menu alias This requests to
GET https://api.line.me/v2/bot/richmenu/alias/list
This returns an array containing response, HTTP status code, and header in order. -
#get_rich_menu_alias_with_http_info(rich_menu_alias_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuAliasResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu alias information This requests to
GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. -
#get_rich_menu_batch_progress(request_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, ...
Get the status of Replace or unlink a linked rich menus in batches.
-
#get_rich_menu_batch_progress_with_http_info(request_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get the status of Replace or unlink a linked rich menus in batches.
-
#get_rich_menu_id_of_user(user_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Get rich menu ID of user This requests to
GET https://api.line.me/v2/bot/user/{userId}/richmenu
When you want to get HTTP status code or response headers, use #get_rich_menu_id_of_user_with_http_info instead of this. -
#get_rich_menu_id_of_user_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu ID of user This requests to
GET https://api.line.me/v2/bot/user/{userId}/richmenu
This returns an array containing response, HTTP status code, and header in order. -
#get_rich_menu_list ⇒ Line::Bot::V2::MessagingApi::RichMenuListResponse, ...
Get rich menu list This requests to
GET https://api.line.me/v2/bot/richmenu/list
When you want to get HTTP status code or response headers, use #get_rich_menu_list_with_http_info instead of this. -
#get_rich_menu_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu list This requests to
GET https://api.line.me/v2/bot/richmenu/list
This returns an array containing response, HTTP status code, and header in order. -
#get_rich_menu_with_http_info(rich_menu_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets a rich menu via a rich menu ID.
-
#get_room_member_count(room_id:) ⇒ Line::Bot::V2::MessagingApi::RoomMemberCountResponse, ...
Get number of users in a multi-person chat This requests to
GET https://api.line.me/v2/bot/room/{roomId}/members/count
When you want to get HTTP status code or response headers, use #get_room_member_count_with_http_info instead of this. -
#get_room_member_count_with_http_info(room_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RoomMemberCountResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of users in a multi-person chat This requests to
GET https://api.line.me/v2/bot/room/{roomId}/members/count
This returns an array containing response, HTTP status code, and header in order. -
#get_room_member_profile(room_id:, user_id:) ⇒ Line::Bot::V2::MessagingApi::RoomUserProfileResponse, ...
Get multi-person chat member profile This requests to
GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}
When you want to get HTTP status code or response headers, use #get_room_member_profile_with_http_info instead of this. -
#get_room_member_profile_with_http_info(room_id:, user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RoomUserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get multi-person chat member profile This requests to
GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}
This returns an array containing response, HTTP status code, and header in order. -
#get_room_members_ids(room_id:, start: nil) ⇒ Line::Bot::V2::MessagingApi::MembersIdsResponse, ...
Get multi-person chat member user IDs This requests to
GET https://api.line.me/v2/bot/room/{roomId}/members/ids
When you want to get HTTP status code or response headers, use #get_room_members_ids_with_http_info instead of this. -
#get_room_members_ids_with_http_info(room_id:, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get multi-person chat member user IDs This requests to
GET https://api.line.me/v2/bot/room/{roomId}/members/ids
This returns an array containing response, HTTP status code, and header in order. -
#get_webhook_endpoint ⇒ Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, ...
Get webhook endpoint information This requests to
GET https://api.line.me/v2/bot/channel/webhook/endpoint
When you want to get HTTP status code or response headers, use #get_webhook_endpoint_with_http_info instead of this. -
#get_webhook_endpoint_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get webhook endpoint information This requests to
GET https://api.line.me/v2/bot/channel/webhook/endpoint
This returns an array containing response, HTTP status code, and header in order. -
#initialize(base_url: nil, channel_access_token:, http_options: {}) ⇒ ApiClient
constructor
Initializes a new ApiClient instance.
-
#issue_link_token(user_id:) ⇒ Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, ...
Issue link token This requests to
POST https://api.line.me/v2/bot/user/{userId}/linkToken
When you want to get HTTP status code or response headers, use #issue_link_token_with_http_info instead of this. -
#issue_link_token_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Issue link token This requests to
POST https://api.line.me/v2/bot/user/{userId}/linkToken
This returns an array containing response, HTTP status code, and header in order. -
#leave_group(group_id:) ⇒ String, ...
Leave group chat This requests to
POST https://api.line.me/v2/bot/group/{groupId}/leave
When you want to get HTTP status code or response headers, use #leave_group_with_http_info instead of this. -
#leave_group_with_http_info(group_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Leave group chat This requests to
POST https://api.line.me/v2/bot/group/{groupId}/leave
This returns an array containing response, HTTP status code, and header in order. -
#leave_room(room_id:) ⇒ String?
Leave multi-person chat This requests to
POST https://api.line.me/v2/bot/room/{roomId}/leave
When you want to get HTTP status code or response headers, use #leave_room_with_http_info instead of this. -
#leave_room_with_http_info(room_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Leave multi-person chat This requests to
POST https://api.line.me/v2/bot/room/{roomId}/leave
This returns an array containing response, HTTP status code, and header in order. -
#link_rich_menu_id_to_user(user_id:, rich_menu_id:) ⇒ String?
Link rich menu to user.
-
#link_rich_menu_id_to_user_with_http_info(user_id:, rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Link rich menu to user.
-
#link_rich_menu_id_to_users(rich_menu_bulk_link_request:) ⇒ String?
Link rich menu to multiple users This requests to
POST https://api.line.me/v2/bot/richmenu/bulk/link
When you want to get HTTP status code or response headers, use #link_rich_menu_id_to_users_with_http_info instead of this. -
#link_rich_menu_id_to_users_with_http_info(rich_menu_bulk_link_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Link rich menu to multiple users This requests to
POST https://api.line.me/v2/bot/richmenu/bulk/link
This returns an array containing response, HTTP status code, and header in order. -
#list_coupon(status: nil, start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, ...
Get a paginated list of coupons.
-
#list_coupon_with_http_info(status: nil, start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, Integer, Hash{String => String}), ...
Get a paginated list of coupons.
-
#mark_messages_as_read(mark_messages_as_read_request:) ⇒ String?
Mark messages from users as read This requests to
POST https://api.line.me/v2/bot/message/markAsRead
When you want to get HTTP status code or response headers, use #mark_messages_as_read_with_http_info instead of this. -
#mark_messages_as_read_with_http_info(mark_messages_as_read_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Mark messages from users as read This requests to
POST https://api.line.me/v2/bot/message/markAsRead
This returns an array containing response, HTTP status code, and header in order. -
#multicast(multicast_request:, x_line_retry_key: nil) ⇒ String, ...
An API that efficiently sends the same message to multiple user IDs.
-
#multicast_with_http_info(multicast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
An API that efficiently sends the same message to multiple user IDs.
-
#narrowcast(narrowcast_request:, x_line_retry_key: nil) ⇒ String, ...
Send narrowcast message This requests to
POST https://api.line.me/v2/bot/message/narrowcast
When you want to get HTTP status code or response headers, use #narrowcast_with_http_info instead of this. -
#narrowcast_with_http_info(narrowcast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Send narrowcast message This requests to
POST https://api.line.me/v2/bot/message/narrowcast
This returns an array containing response, HTTP status code, and header in order. -
#push_message(push_message_request:, x_line_retry_key: nil) ⇒ Line::Bot::V2::MessagingApi::PushMessageResponse, ...
Sends a message to a user, group chat, or multi-person chat at any time.
-
#push_message_with_http_info(push_message_request:, x_line_retry_key: nil) ⇒ Array(Line::Bot::V2::MessagingApi::PushMessageResponse, Integer, Hash{String => String}), ...
Sends a message to a user, group chat, or multi-person chat at any time.
-
#push_messages_by_phone(pnp_messages_request:, x_line_delivery_tag: nil) ⇒ String, ...
Send LINE notification message This requests to
POST https://api.line.me/bot/pnp/push
When you want to get HTTP status code or response headers, use #push_messages_by_phone_with_http_info instead of this. -
#push_messages_by_phone_with_http_info(pnp_messages_request:, x_line_delivery_tag: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Send LINE notification message This requests to
POST https://api.line.me/bot/pnp/push
This returns an array containing response, HTTP status code, and header in order. -
#reply_message(reply_message_request:) ⇒ Line::Bot::V2::MessagingApi::ReplyMessageResponse, ...
Send reply message This requests to
POST https://api.line.me/v2/bot/message/reply
When you want to get HTTP status code or response headers, use #reply_message_with_http_info instead of this. -
#reply_message_with_http_info(reply_message_request:) ⇒ Array(Line::Bot::V2::MessagingApi::ReplyMessageResponse, Integer, Hash{String => String}), ...
Send reply message This requests to
POST https://api.line.me/v2/bot/message/reply
This returns an array containing response, HTTP status code, and header in order. -
#rich_menu_batch(rich_menu_batch_request:) ⇒ String?
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user.
-
#rich_menu_batch_with_http_info(rich_menu_batch_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user.
-
#set_default_rich_menu(rich_menu_id:) ⇒ String?
Set default rich menu This requests to
POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}
When you want to get HTTP status code or response headers, use #set_default_rich_menu_with_http_info instead of this. -
#set_default_rich_menu_with_http_info(rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Set default rich menu This requests to
POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}
This returns an array containing response, HTTP status code, and header in order. -
#set_webhook_endpoint(set_webhook_endpoint_request:) ⇒ String?
Set webhook endpoint URL This requests to
PUT https://api.line.me/v2/bot/channel/webhook/endpoint
When you want to get HTTP status code or response headers, use #set_webhook_endpoint_with_http_info instead of this. -
#set_webhook_endpoint_with_http_info(set_webhook_endpoint_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Set webhook endpoint URL This requests to
PUT https://api.line.me/v2/bot/channel/webhook/endpoint
This returns an array containing response, HTTP status code, and header in order. -
#show_loading_animation(show_loading_animation_request:) ⇒ String, ...
Display a loading animation in one-on-one chats between users and LINE Official Accounts.
-
#show_loading_animation_with_http_info(show_loading_animation_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Display a loading animation in one-on-one chats between users and LINE Official Accounts.
-
#test_webhook_endpoint(test_webhook_endpoint_request: nil) ⇒ Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, ...
Test webhook endpoint This requests to
POST https://api.line.me/v2/bot/channel/webhook/test
When you want to get HTTP status code or response headers, use #test_webhook_endpoint_with_http_info instead of this. -
#test_webhook_endpoint_with_http_info(test_webhook_endpoint_request: nil) ⇒ Array(Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Test webhook endpoint This requests to
POST https://api.line.me/v2/bot/channel/webhook/test
This returns an array containing response, HTTP status code, and header in order. -
#unlink_rich_menu_id_from_user(user_id:) ⇒ String?
Unlink rich menu from user This requests to
DELETE https://api.line.me/v2/bot/user/{userId}/richmenu
When you want to get HTTP status code or response headers, use #unlink_rich_menu_id_from_user_with_http_info instead of this. -
#unlink_rich_menu_id_from_user_with_http_info(user_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Unlink rich menu from user This requests to
DELETE https://api.line.me/v2/bot/user/{userId}/richmenu
This returns an array containing response, HTTP status code, and header in order. -
#unlink_rich_menu_id_from_users(rich_menu_bulk_unlink_request:) ⇒ String?
Unlink rich menus from multiple users This requests to
POST https://api.line.me/v2/bot/richmenu/bulk/unlink
When you want to get HTTP status code or response headers, use #unlink_rich_menu_id_from_users_with_http_info instead of this. -
#unlink_rich_menu_id_from_users_with_http_info(rich_menu_bulk_unlink_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Unlink rich menus from multiple users This requests to
POST https://api.line.me/v2/bot/richmenu/bulk/unlink
This returns an array containing response, HTTP status code, and header in order. -
#update_rich_menu_alias(rich_menu_alias_id:, update_rich_menu_alias_request:) ⇒ String, ...
Update rich menu alias This requests to
POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #update_rich_menu_alias_with_http_info instead of this. -
#update_rich_menu_alias_with_http_info(rich_menu_alias_id:, update_rich_menu_alias_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Update rich menu alias This requests to
POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. -
#validate_broadcast(validate_message_request:) ⇒ String?
Validate message objects of a broadcast message This requests to
POST https://api.line.me/v2/bot/message/validate/broadcast
When you want to get HTTP status code or response headers, use #validate_broadcast_with_http_info instead of this. -
#validate_broadcast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a broadcast message This requests to
POST https://api.line.me/v2/bot/message/validate/broadcast
This returns an array containing response, HTTP status code, and header in order. -
#validate_multicast(validate_message_request:) ⇒ String?
Validate message objects of a multicast message This requests to
POST https://api.line.me/v2/bot/message/validate/multicast
When you want to get HTTP status code or response headers, use #validate_multicast_with_http_info instead of this. -
#validate_multicast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a multicast message This requests to
POST https://api.line.me/v2/bot/message/validate/multicast
This returns an array containing response, HTTP status code, and header in order. -
#validate_narrowcast(validate_message_request:) ⇒ String?
Validate message objects of a narrowcast message This requests to
POST https://api.line.me/v2/bot/message/validate/narrowcast
When you want to get HTTP status code or response headers, use #validate_narrowcast_with_http_info instead of this. -
#validate_narrowcast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a narrowcast message This requests to
POST https://api.line.me/v2/bot/message/validate/narrowcast
This returns an array containing response, HTTP status code, and header in order. -
#validate_push(validate_message_request:) ⇒ String?
Validate message objects of a push message This requests to
POST https://api.line.me/v2/bot/message/validate/push
When you want to get HTTP status code or response headers, use #validate_push_with_http_info instead of this. -
#validate_push_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a push message This requests to
POST https://api.line.me/v2/bot/message/validate/push
This returns an array containing response, HTTP status code, and header in order. -
#validate_reply(validate_message_request:) ⇒ String?
Validate message objects of a reply message This requests to
POST https://api.line.me/v2/bot/message/validate/reply
When you want to get HTTP status code or response headers, use #validate_reply_with_http_info instead of this. -
#validate_reply_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a reply message This requests to
POST https://api.line.me/v2/bot/message/validate/reply
This returns an array containing response, HTTP status code, and header in order. -
#validate_rich_menu_batch_request(rich_menu_batch_request:) ⇒ String?
Validate a request body of the Replace or unlink the linked rich menus in batches endpoint.
-
#validate_rich_menu_batch_request_with_http_info(rich_menu_batch_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate a request body of the Replace or unlink the linked rich menus in batches endpoint.
-
#validate_rich_menu_object(rich_menu_request:) ⇒ String?
Validate rich menu object This requests to
POST https://api.line.me/v2/bot/richmenu/validate
When you want to get HTTP status code or response headers, use #validate_rich_menu_object_with_http_info instead of this. -
#validate_rich_menu_object_with_http_info(rich_menu_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate rich menu object This requests to
POST https://api.line.me/v2/bot/richmenu/validate
This returns an array containing response, HTTP status code, and header in order.
Constructor Details
#initialize(base_url: nil, channel_access_token:, http_options: {}) ⇒ ApiClient
Initializes a new Line::Bot::V2::MessagingApi::ApiClient instance.
38 39 40 41 42 43 44 45 46 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 38 def initialize(base_url: nil, channel_access_token:, http_options: {}) @http_client = HttpClient.new( base_url: base_url || 'https://api.line.me', http_headers: { Authorization: "Bearer #{channel_access_token}" }, http_options: ) end |
Instance Method Details
#broadcast(broadcast_request:, x_line_retry_key: nil) ⇒ String, ...
Sends a message to multiple users at any time. This requests to POST https://api.line.me/v2/bot/message/broadcast
When you want to get HTTP status code or response headers, use #broadcast_with_http_info instead of this.
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 125 def broadcast( broadcast_request:, x_line_retry_key: nil ) response_body, _status_code, _headers = broadcast_with_http_info( broadcast_request: broadcast_request, x_line_retry_key: x_line_retry_key ) response_body end |
#broadcast_with_http_info(broadcast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Sends a message to multiple users at any time. This requests to POST https://api.line.me/v2/bot/message/broadcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 61 def broadcast_with_http_info( # steep:ignore MethodBodyTypeMismatch broadcast_request:, x_line_retry_key: nil ) path = "/v2/bot/message/broadcast" header_params = { "X-Line-Retry-Key": x_line_retry_key }.compact response = @http_client.post( path: path, body_params: broadcast_request, headers: header_params ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 403 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 403, response.each_header.to_h] when 409 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 409, response.each_header.to_h] when 429 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 429, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#cancel_default_rich_menu ⇒ String?
Cancel default rich menu This requests to DELETE https://api.line.me/v2/bot/user/all/richmenu
When you want to get HTTP status code or response headers, use #cancel_default_rich_menu_with_http_info instead of this.
167 168 169 170 171 172 173 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 167 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#cancel_default_rich_menu_with_http_info ⇒ Array((String|nil), Integer, Hash{String => String})
Cancel default rich menu This requests to DELETE https://api.line.me/v2/bot/user/all/richmenu
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 144 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/user/all/richmenu" response = @http_client.delete( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#close_coupon(coupon_id:) ⇒ String, ...
Close coupon This requests to PUT https://api.line.me/v2/bot/coupon/{couponId}/close
When you want to get HTTP status code or response headers, use #close_coupon_with_http_info instead of this.
236 237 238 239 240 241 242 243 244 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 236 def close_coupon( coupon_id: ) response_body, _status_code, _headers = close_coupon_with_http_info( coupon_id: coupon_id ) response_body end |
#close_coupon_with_http_info(coupon_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Close coupon This requests to PUT https://api.line.me/v2/bot/coupon/{couponId}/close
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 186 def close_coupon_with_http_info( # steep:ignore MethodBodyTypeMismatch coupon_id: ) path = "/v2/bot/coupon/{couponId}/close" .gsub(/{couponId}/, coupon_id.to_s) response = @http_client.put( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] when 410 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 410, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#create_coupon(coupon_create_request: nil) ⇒ Line::Bot::V2::MessagingApi::CouponCreateResponse, ...
Create a new coupon. Define coupon details such as type, title, and validity period. This requests to POST https://api.line.me/v2/bot/coupon
When you want to get HTTP status code or response headers, use #create_coupon_with_http_info instead of this.
294 295 296 297 298 299 300 301 302 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 294 def create_coupon( coupon_create_request: nil ) response_body, _status_code, _headers = create_coupon_with_http_info( coupon_create_request: coupon_create_request ) response_body end |
#create_coupon_with_http_info(coupon_create_request: nil) ⇒ Array(Line::Bot::V2::MessagingApi::CouponCreateResponse, Integer, Hash{String => String}), ...
Create a new coupon. Define coupon details such as type, title, and validity period. This requests to POST https://api.line.me/v2/bot/coupon
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 255 def create_coupon_with_http_info( # steep:ignore MethodBodyTypeMismatch coupon_create_request: nil ) path = "/v2/bot/coupon" response = @http_client.post( path: path, body_params: coupon_create_request, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::CouponCreateResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#create_rich_menu(rich_menu_request:) ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Create rich menu This requests to POST https://api.line.me/v2/bot/richmenu
When you want to get HTTP status code or response headers, use #create_rich_menu_with_http_info instead of this.
343 344 345 346 347 348 349 350 351 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 343 def ( rich_menu_request: ) response_body, _status_code, _headers = ( rich_menu_request: ) response_body end |
#create_rich_menu_alias(create_rich_menu_alias_request:) ⇒ String, ...
Create rich menu alias This requests to POST https://api.line.me/v2/bot/richmenu/alias
When you want to get HTTP status code or response headers, use #create_rich_menu_alias_with_http_info instead of this.
396 397 398 399 400 401 402 403 404 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 396 def ( create_rich_menu_alias_request: ) response_body, _status_code, _headers = ( create_rich_menu_alias_request: ) response_body end |
#create_rich_menu_alias_with_http_info(create_rich_menu_alias_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Create rich menu alias This requests to POST https://api.line.me/v2/bot/richmenu/alias
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 362 def ( # steep:ignore MethodBodyTypeMismatch create_rich_menu_alias_request: ) path = "/v2/bot/richmenu/alias" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#create_rich_menu_with_http_info(rich_menu_request:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Create rich menu This requests to POST https://api.line.me/v2/bot/richmenu
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 312 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_request: ) path = "/v2/bot/richmenu" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#delete_rich_menu(rich_menu_id:) ⇒ String?
Deletes a rich menu. This requests to DELETE https://api.line.me/v2/bot/richmenu/{richMenuId}
When you want to get HTTP status code or response headers, use #delete_rich_menu_with_http_info instead of this.
440 441 442 443 444 445 446 447 448 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 440 def ( rich_menu_id: ) response_body, _status_code, _headers = ( rich_menu_id: ) response_body end |
#delete_rich_menu_alias(rich_menu_alias_id:) ⇒ String, ...
Delete rich menu alias This requests to DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #delete_rich_menu_alias_with_http_info instead of this.
493 494 495 496 497 498 499 500 501 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 493 def ( rich_menu_alias_id: ) response_body, _status_code, _headers = ( rich_menu_alias_id: ) response_body end |
#delete_rich_menu_alias_with_http_info(rich_menu_alias_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Delete rich menu alias This requests to DELETE https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 459 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_alias_id: ) path = "/v2/bot/richmenu/alias/{richMenuAliasId}" .gsub(/{richMenuAliasId}/, .to_s) response = @http_client.delete( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#delete_rich_menu_with_http_info(rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Deletes a rich menu. This requests to DELETE https://api.line.me/v2/bot/richmenu/{richMenuId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 414 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_id: ) path = "/v2/bot/richmenu/{richMenuId}" .gsub(/{richMenuId}/, .to_s) response = @http_client.delete( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_aggregation_unit_name_list(limit: nil, start: nil) ⇒ Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, ...
Get name list of units used this month This requests to GET https://api.line.me/v2/bot/message/aggregation/list
When you want to get HTTP status code or response headers, use #get_aggregation_unit_name_list_with_http_info instead of this.
549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 549 def get_aggregation_unit_name_list( limit: nil, start: nil ) response_body, _status_code, _headers = get_aggregation_unit_name_list_with_http_info( limit: limit, start: start ) response_body end |
#get_aggregation_unit_name_list_with_http_info(limit: nil, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get name list of units used this month This requests to GET https://api.line.me/v2/bot/message/aggregation/list
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 512 def get_aggregation_unit_name_list_with_http_info( # steep:ignore MethodBodyTypeMismatch limit: nil, start: nil ) path = "/v2/bot/message/aggregation/list" query_params = { "limit": limit, "start": start }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitNameListResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_aggregation_unit_usage ⇒ Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, ...
Get number of units used this month This requests to GET https://api.line.me/v2/bot/message/aggregation/info
When you want to get HTTP status code or response headers, use #get_aggregation_unit_usage_with_http_info instead of this.
596 597 598 599 600 601 602 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 596 def get_aggregation_unit_usage( ) response_body, _status_code, _headers = get_aggregation_unit_usage_with_http_info( ) response_body end |
#get_aggregation_unit_usage_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of units used this month This requests to GET https://api.line.me/v2/bot/message/aggregation/info
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 568 def get_aggregation_unit_usage_with_http_info( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/message/aggregation/info" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetAggregationUnitUsageResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_bot_info ⇒ Line::Bot::V2::MessagingApi::BotInfoResponse, ...
Get bot info This requests to GET https://api.line.me/v2/bot/info
When you want to get HTTP status code or response headers, use #get_bot_info_with_http_info instead of this.
639 640 641 642 643 644 645 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 639 def get_bot_info( ) response_body, _status_code, _headers = get_bot_info_with_http_info( ) response_body end |
#get_bot_info_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::BotInfoResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get bot info This requests to GET https://api.line.me/v2/bot/info
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 611 def get_bot_info_with_http_info( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/info" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::BotInfoResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_coupon_detail(coupon_id:) ⇒ Line::Bot::V2::MessagingApi::CouponResponse, ...
Get coupon detail This requests to GET https://api.line.me/v2/bot/coupon/{couponId}
When you want to get HTTP status code or response headers, use #get_coupon_detail_with_http_info instead of this.
704 705 706 707 708 709 710 711 712 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 704 def get_coupon_detail( coupon_id: ) response_body, _status_code, _headers = get_coupon_detail_with_http_info( coupon_id: coupon_id ) response_body end |
#get_coupon_detail_with_http_info(coupon_id:) ⇒ Array(Line::Bot::V2::MessagingApi::CouponResponse, Integer, Hash{String => String}), ...
Get coupon detail This requests to GET https://api.line.me/v2/bot/coupon/{couponId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 657 def get_coupon_detail_with_http_info( # steep:ignore MethodBodyTypeMismatch coupon_id: ) path = "/v2/bot/coupon/{couponId}" .gsub(/{couponId}/, coupon_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::CouponResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_default_rich_menu_id ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Gets the ID of the default rich menu set with the Messaging API. This requests to GET https://api.line.me/v2/bot/user/all/richmenu
When you want to get HTTP status code or response headers, use #get_default_rich_menu_id_with_http_info instead of this.
749 750 751 752 753 754 755 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 749 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#get_default_rich_menu_id_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the ID of the default rich menu set with the Messaging API. This requests to GET https://api.line.me/v2/bot/user/all/richmenu
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 721 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/user/all/richmenu" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_followers(start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::GetFollowersResponse, ...
Get a list of users who added your LINE Official Account as a friend This requests to GET https://api.line.me/v2/bot/followers/ids
When you want to get HTTP status code or response headers, use #get_followers_with_http_info instead of this.
803 804 805 806 807 808 809 810 811 812 813 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 803 def get_followers( start: nil, limit: nil ) response_body, _status_code, _headers = get_followers_with_http_info( start: start, limit: limit ) response_body end |
#get_followers_with_http_info(start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetFollowersResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get a list of users who added your LINE Official Account as a friend This requests to GET https://api.line.me/v2/bot/followers/ids
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 766 def get_followers_with_http_info( # steep:ignore MethodBodyTypeMismatch start: nil, limit: nil ) path = "/v2/bot/followers/ids" query_params = { "start": start, "limit": limit }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetFollowersResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_group_member_count(group_id:) ⇒ Line::Bot::V2::MessagingApi::GroupMemberCountResponse, ...
Get number of users in a group chat This requests to GET https://api.line.me/v2/bot/group/{groupId}/members/count
When you want to get HTTP status code or response headers, use #get_group_member_count_with_http_info instead of this.
854 855 856 857 858 859 860 861 862 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 854 def get_group_member_count( group_id: ) response_body, _status_code, _headers = get_group_member_count_with_http_info( group_id: group_id ) response_body end |
#get_group_member_count_with_http_info(group_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupMemberCountResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of users in a group chat This requests to GET https://api.line.me/v2/bot/group/{groupId}/members/count
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 823 def get_group_member_count_with_http_info( # steep:ignore MethodBodyTypeMismatch group_id: ) path = "/v2/bot/group/{groupId}/members/count" .gsub(/{groupId}/, group_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GroupMemberCountResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_group_member_profile(group_id:, user_id:) ⇒ Line::Bot::V2::MessagingApi::GroupUserProfileResponse, ...
Get group chat member profile This requests to GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}
When you want to get HTTP status code or response headers, use #get_group_member_profile_with_http_info instead of this.
907 908 909 910 911 912 913 914 915 916 917 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 907 def get_group_member_profile( group_id:, user_id: ) response_body, _status_code, _headers = get_group_member_profile_with_http_info( group_id: group_id, user_id: user_id ) response_body end |
#get_group_member_profile_with_http_info(group_id:, user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupUserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat member profile This requests to GET https://api.line.me/v2/bot/group/{groupId}/member/{userId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 873 def get_group_member_profile_with_http_info( # steep:ignore MethodBodyTypeMismatch group_id:, user_id: ) path = "/v2/bot/group/{groupId}/member/{userId}" .gsub(/{groupId}/, group_id.to_s) .gsub(/{userId}/, user_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GroupUserProfileResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_group_members_ids(group_id:, start: nil) ⇒ Line::Bot::V2::MessagingApi::MembersIdsResponse, ...
Get group chat member user IDs This requests to GET https://api.line.me/v2/bot/group/{groupId}/members/ids
When you want to get HTTP status code or response headers, use #get_group_members_ids_with_http_info instead of this.
965 966 967 968 969 970 971 972 973 974 975 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 965 def get_group_members_ids( group_id:, start: nil ) response_body, _status_code, _headers = get_group_members_ids_with_http_info( group_id: group_id, start: start ) response_body end |
#get_group_members_ids_with_http_info(group_id:, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat member user IDs This requests to GET https://api.line.me/v2/bot/group/{groupId}/members/ids
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 928 def get_group_members_ids_with_http_info( # steep:ignore MethodBodyTypeMismatch group_id:, start: nil ) path = "/v2/bot/group/{groupId}/members/ids" .gsub(/{groupId}/, group_id.to_s) query_params = { "start": start }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_group_summary(group_id:) ⇒ Line::Bot::V2::MessagingApi::GroupSummaryResponse, ...
Get group chat summary This requests to GET https://api.line.me/v2/bot/group/{groupId}/summary
When you want to get HTTP status code or response headers, use #get_group_summary_with_http_info instead of this.
1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1016 def get_group_summary( group_id: ) response_body, _status_code, _headers = get_group_summary_with_http_info( group_id: group_id ) response_body end |
#get_group_summary_with_http_info(group_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GroupSummaryResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get group chat summary This requests to GET https://api.line.me/v2/bot/group/{groupId}/summary
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 985 def get_group_summary_with_http_info( # steep:ignore MethodBodyTypeMismatch group_id: ) path = "/v2/bot/group/{groupId}/summary" .gsub(/{groupId}/, group_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GroupSummaryResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_joined_membership_users(membership_id:, start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse, ...
Get a list of user IDs who joined the membership. This requests to GET https://api.line.me/v2/bot/membership/{membershipId}/users/ids
When you want to get HTTP status code or response headers, use #get_joined_membership_users_with_http_info instead of this.
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1094 def get_joined_membership_users( membership_id:, start: nil, limit: nil ) response_body, _status_code, _headers = get_joined_membership_users_with_http_info( membership_id: membership_id, start: start, limit: limit ) response_body end |
#get_joined_membership_users_with_http_info(membership_id:, start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse, Integer, Hash{String => String}), ...
Get a list of user IDs who joined the membership. This requests to GET https://api.line.me/v2/bot/membership/{membershipId}/users/ids
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1038 def get_joined_membership_users_with_http_info( # steep:ignore MethodBodyTypeMismatch membership_id:, start: nil, limit: nil ) path = "/v2/bot/membership/{membershipId}/users/ids" .gsub(/{membershipId}/, membership_id.to_s) query_params = { "start": start, "limit": limit }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetJoinedMembershipUsersResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_membership_list ⇒ Line::Bot::V2::MessagingApi::MembershipListResponse, ...
Get a list of memberships. This requests to GET https://api.line.me/v2/bot/membership/list
When you want to get HTTP status code or response headers, use #get_membership_list_with_http_info instead of this.
1152 1153 1154 1155 1156 1157 1158 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1152 def get_membership_list( ) response_body, _status_code, _headers = get_membership_list_with_http_info( ) response_body end |
#get_membership_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::MembershipListResponse, Integer, Hash{String => String}), ...
Get a list of memberships. This requests to GET https://api.line.me/v2/bot/membership/list
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1116 def get_membership_list_with_http_info( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/membership/list" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::MembershipListResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_membership_subscription(user_id:) ⇒ Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse, ...
Get a user’s membership subscription. This requests to GET https://api.line.me/v2/bot/membership/subscription/{userId}
When you want to get HTTP status code or response headers, use #get_membership_subscription_with_http_info instead of this.
1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1217 def get_membership_subscription( user_id: ) response_body, _status_code, _headers = get_membership_subscription_with_http_info( user_id: user_id ) response_body end |
#get_membership_subscription_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse, Integer, Hash{String => String}), ...
Get a user’s membership subscription. This requests to GET https://api.line.me/v2/bot/membership/subscription/{userId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1170 def get_membership_subscription_with_http_info( # steep:ignore MethodBodyTypeMismatch user_id: ) path = "/v2/bot/membership/subscription/{userId}" .gsub(/{userId}/, user_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetMembershipSubscriptionResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_message_quota ⇒ Line::Bot::V2::MessagingApi::MessageQuotaResponse, ...
Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned. This requests to GET https://api.line.me/v2/bot/message/quota
When you want to get HTTP status code or response headers, use #get_message_quota_with_http_info instead of this.
1262 1263 1264 1265 1266 1267 1268 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1262 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#get_message_quota_consumption ⇒ Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, ...
Gets the number of messages sent in the current month. This requests to GET https://api.line.me/v2/bot/message/quota/consumption
When you want to get HTTP status code or response headers, use #get_message_quota_consumption_with_http_info instead of this.
1305 1306 1307 1308 1309 1310 1311 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1305 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#get_message_quota_consumption_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::QuotaConsumptionResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the number of messages sent in the current month. This requests to GET https://api.line.me/v2/bot/message/quota/consumption
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1277 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/message/quota/consumption" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::QuotaConsumptionResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_message_quota_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::MessageQuotaResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned. This requests to GET https://api.line.me/v2/bot/message/quota
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1234 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/message/quota" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::MessageQuotaResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_narrowcast_progress(request_id:) ⇒ Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, ...
Gets the status of a narrowcast message. This requests to GET https://api.line.me/v2/bot/message/progress/narrowcast
When you want to get HTTP status code or response headers, use #get_narrowcast_progress_with_http_info instead of this.
1355 1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1355 def get_narrowcast_progress( request_id: ) response_body, _status_code, _headers = get_narrowcast_progress_with_http_info( request_id: request_id ) response_body end |
#get_narrowcast_progress_with_http_info(request_id:) ⇒ Array(Line::Bot::V2::MessagingApi::NarrowcastProgressResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets the status of a narrowcast message. This requests to GET https://api.line.me/v2/bot/message/progress/narrowcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1321 def get_narrowcast_progress_with_http_info( # steep:ignore MethodBodyTypeMismatch request_id: ) path = "/v2/bot/message/progress/narrowcast" query_params = { "requestId": request_id }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NarrowcastProgressResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_number_of_sent_broadcast_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent broadcast messages This requests to GET https://api.line.me/v2/bot/message/delivery/broadcast
When you want to get HTTP status code or response headers, use #get_number_of_sent_broadcast_messages_with_http_info instead of this.
1407 1408 1409 1410 1411 1412 1413 1414 1415 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1407 def ( date: ) response_body, _status_code, _headers = ( date: date ) response_body end |
#get_number_of_sent_broadcast_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent broadcast messages This requests to GET https://api.line.me/v2/bot/message/delivery/broadcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1373 def ( # steep:ignore MethodBodyTypeMismatch date: ) path = "/v2/bot/message/delivery/broadcast" query_params = { "date": date }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_number_of_sent_multicast_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent multicast messages This requests to GET https://api.line.me/v2/bot/message/delivery/multicast
When you want to get HTTP status code or response headers, use #get_number_of_sent_multicast_messages_with_http_info instead of this.
1459 1460 1461 1462 1463 1464 1465 1466 1467 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1459 def ( date: ) response_body, _status_code, _headers = ( date: date ) response_body end |
#get_number_of_sent_multicast_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent multicast messages This requests to GET https://api.line.me/v2/bot/message/delivery/multicast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1425 def ( # steep:ignore MethodBodyTypeMismatch date: ) path = "/v2/bot/message/delivery/multicast" query_params = { "date": date }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_number_of_sent_push_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent push messages This requests to GET https://api.line.me/v2/bot/message/delivery/push
When you want to get HTTP status code or response headers, use #get_number_of_sent_push_messages_with_http_info instead of this.
1511 1512 1513 1514 1515 1516 1517 1518 1519 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1511 def ( date: ) response_body, _status_code, _headers = ( date: date ) response_body end |
#get_number_of_sent_push_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent push messages This requests to GET https://api.line.me/v2/bot/message/delivery/push
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1477 def ( # steep:ignore MethodBodyTypeMismatch date: ) path = "/v2/bot/message/delivery/push" query_params = { "date": date }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_number_of_sent_reply_messages(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent reply messages This requests to GET https://api.line.me/v2/bot/message/delivery/reply
When you want to get HTTP status code or response headers, use #get_number_of_sent_reply_messages_with_http_info instead of this.
1563 1564 1565 1566 1567 1568 1569 1570 1571 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1563 def ( date: ) response_body, _status_code, _headers = ( date: date ) response_body end |
#get_number_of_sent_reply_messages_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent reply messages This requests to GET https://api.line.me/v2/bot/message/delivery/reply
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1529 def ( # steep:ignore MethodBodyTypeMismatch date: ) path = "/v2/bot/message/delivery/reply" query_params = { "date": date }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_pnp_message_statistics(date:) ⇒ Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, ...
Get number of sent LINE notification messages This requests to GET https://api.line.me/v2/bot/message/delivery/pnp
When you want to get HTTP status code or response headers, use #get_pnp_message_statistics_with_http_info instead of this.
1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1615 def ( date: ) response_body, _status_code, _headers = ( date: date ) response_body end |
#get_pnp_message_statistics_with_http_info(date:) ⇒ Array(Line::Bot::V2::MessagingApi::NumberOfMessagesResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of sent LINE notification messages This requests to GET https://api.line.me/v2/bot/message/delivery/pnp
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1581 def ( # steep:ignore MethodBodyTypeMismatch date: ) path = "/v2/bot/message/delivery/pnp" query_params = { "date": date }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::NumberOfMessagesResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_profile(user_id:) ⇒ Line::Bot::V2::MessagingApi::UserProfileResponse, ...
Get profile This requests to GET https://api.line.me/v2/bot/profile/{userId}
When you want to get HTTP status code or response headers, use #get_profile_with_http_info instead of this.
1664 1665 1666 1667 1668 1669 1670 1671 1672 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1664 def get_profile( user_id: ) response_body, _status_code, _headers = get_profile_with_http_info( user_id: user_id ) response_body end |
#get_profile_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::UserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get profile This requests to GET https://api.line.me/v2/bot/profile/{userId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1633 def get_profile_with_http_info( # steep:ignore MethodBodyTypeMismatch user_id: ) path = "/v2/bot/profile/{userId}" .gsub(/{userId}/, user_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::UserProfileResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu(rich_menu_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuResponse, ...
Gets a rich menu via a rich menu ID. This requests to GET https://api.line.me/v2/bot/richmenu/{richMenuId}
When you want to get HTTP status code or response headers, use #get_rich_menu_with_http_info instead of this.
1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1713 def ( rich_menu_id: ) response_body, _status_code, _headers = ( rich_menu_id: ) response_body end |
#get_rich_menu_alias(rich_menu_alias_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuAliasResponse, ...
Get rich menu alias information This requests to GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #get_rich_menu_alias_with_http_info instead of this.
1762 1763 1764 1765 1766 1767 1768 1769 1770 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1762 def ( rich_menu_alias_id: ) response_body, _status_code, _headers = ( rich_menu_alias_id: ) response_body end |
#get_rich_menu_alias_list ⇒ Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, ...
Get list of rich menu alias This requests to GET https://api.line.me/v2/bot/richmenu/alias/list
When you want to get HTTP status code or response headers, use #get_rich_menu_alias_list_with_http_info instead of this.
1807 1808 1809 1810 1811 1812 1813 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1807 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#get_rich_menu_alias_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuAliasListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get list of rich menu alias This requests to GET https://api.line.me/v2/bot/richmenu/alias/list
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1779 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/richmenu/alias/list" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuAliasListResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu_alias_with_http_info(rich_menu_alias_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuAliasResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu alias information This requests to GET https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1731 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_alias_id: ) path = "/v2/bot/richmenu/alias/{richMenuAliasId}" .gsub(/{richMenuAliasId}/, .to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuAliasResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu_batch_progress(request_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, ...
Get the status of Replace or unlink a linked rich menus in batches. This requests to GET https://api.line.me/v2/bot/richmenu/progress/batch
When you want to get HTTP status code or response headers, use #get_rich_menu_batch_progress_with_http_info instead of this.
1857 1858 1859 1860 1861 1862 1863 1864 1865 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1857 def ( request_id: ) response_body, _status_code, _headers = ( request_id: request_id ) response_body end |
#get_rich_menu_batch_progress_with_http_info(request_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get the status of Replace or unlink a linked rich menus in batches. This requests to GET https://api.line.me/v2/bot/richmenu/progress/batch
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1823 def ( # steep:ignore MethodBodyTypeMismatch request_id: ) path = "/v2/bot/richmenu/progress/batch" query_params = { "requestId": request_id }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuBatchProgressResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu_id_of_user(user_id:) ⇒ Line::Bot::V2::MessagingApi::RichMenuIdResponse, ...
Get rich menu ID of user This requests to GET https://api.line.me/v2/bot/user/{userId}/richmenu
When you want to get HTTP status code or response headers, use #get_rich_menu_id_of_user_with_http_info instead of this.
1906 1907 1908 1909 1910 1911 1912 1913 1914 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1906 def ( user_id: ) response_body, _status_code, _headers = ( user_id: user_id ) response_body end |
#get_rich_menu_id_of_user_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuIdResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu ID of user This requests to GET https://api.line.me/v2/bot/user/{userId}/richmenu
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1875 def ( # steep:ignore MethodBodyTypeMismatch user_id: ) path = "/v2/bot/user/{userId}/richmenu" .gsub(/{userId}/, user_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuIdResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu_list ⇒ Line::Bot::V2::MessagingApi::RichMenuListResponse, ...
Get rich menu list This requests to GET https://api.line.me/v2/bot/richmenu/list
When you want to get HTTP status code or response headers, use #get_rich_menu_list_with_http_info instead of this.
1951 1952 1953 1954 1955 1956 1957 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1951 def ( ) response_body, _status_code, _headers = ( ) response_body end |
#get_rich_menu_list_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuListResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get rich menu list This requests to GET https://api.line.me/v2/bot/richmenu/list
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1923 def ( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/richmenu/list" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuListResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_rich_menu_with_http_info(rich_menu_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RichMenuResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Gets a rich menu via a rich menu ID. This requests to GET https://api.line.me/v2/bot/richmenu/{richMenuId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1682 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_id: ) path = "/v2/bot/richmenu/{richMenuId}" .gsub(/{richMenuId}/, .to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RichMenuResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_room_member_count(room_id:) ⇒ Line::Bot::V2::MessagingApi::RoomMemberCountResponse, ...
Get number of users in a multi-person chat This requests to GET https://api.line.me/v2/bot/room/{roomId}/members/count
When you want to get HTTP status code or response headers, use #get_room_member_count_with_http_info instead of this.
1998 1999 2000 2001 2002 2003 2004 2005 2006 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1998 def get_room_member_count( room_id: ) response_body, _status_code, _headers = get_room_member_count_with_http_info( room_id: room_id ) response_body end |
#get_room_member_count_with_http_info(room_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RoomMemberCountResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get number of users in a multi-person chat This requests to GET https://api.line.me/v2/bot/room/{roomId}/members/count
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 1967 def get_room_member_count_with_http_info( # steep:ignore MethodBodyTypeMismatch room_id: ) path = "/v2/bot/room/{roomId}/members/count" .gsub(/{roomId}/, room_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RoomMemberCountResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_room_member_profile(room_id:, user_id:) ⇒ Line::Bot::V2::MessagingApi::RoomUserProfileResponse, ...
Get multi-person chat member profile This requests to GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}
When you want to get HTTP status code or response headers, use #get_room_member_profile_with_http_info instead of this.
2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2051 def get_room_member_profile( room_id:, user_id: ) response_body, _status_code, _headers = get_room_member_profile_with_http_info( room_id: room_id, user_id: user_id ) response_body end |
#get_room_member_profile_with_http_info(room_id:, user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::RoomUserProfileResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get multi-person chat member profile This requests to GET https://api.line.me/v2/bot/room/{roomId}/member/{userId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2017 def get_room_member_profile_with_http_info( # steep:ignore MethodBodyTypeMismatch room_id:, user_id: ) path = "/v2/bot/room/{roomId}/member/{userId}" .gsub(/{roomId}/, room_id.to_s) .gsub(/{userId}/, user_id.to_s) response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::RoomUserProfileResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_room_members_ids(room_id:, start: nil) ⇒ Line::Bot::V2::MessagingApi::MembersIdsResponse, ...
Get multi-person chat member user IDs This requests to GET https://api.line.me/v2/bot/room/{roomId}/members/ids
When you want to get HTTP status code or response headers, use #get_room_members_ids_with_http_info instead of this.
2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2109 def get_room_members_ids( room_id:, start: nil ) response_body, _status_code, _headers = get_room_members_ids_with_http_info( room_id: room_id, start: start ) response_body end |
#get_room_members_ids_with_http_info(room_id:, start: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MembersIdsResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get multi-person chat member user IDs This requests to GET https://api.line.me/v2/bot/room/{roomId}/members/ids
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2072 def get_room_members_ids_with_http_info( # steep:ignore MethodBodyTypeMismatch room_id:, start: nil ) path = "/v2/bot/room/{roomId}/members/ids" .gsub(/{roomId}/, room_id.to_s) query_params = { "start": start }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::MembersIdsResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#get_webhook_endpoint ⇒ Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, ...
Get webhook endpoint information This requests to GET https://api.line.me/v2/bot/channel/webhook/endpoint
When you want to get HTTP status code or response headers, use #get_webhook_endpoint_with_http_info instead of this.
2156 2157 2158 2159 2160 2161 2162 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2156 def get_webhook_endpoint( ) response_body, _status_code, _headers = get_webhook_endpoint_with_http_info( ) response_body end |
#get_webhook_endpoint_with_http_info ⇒ Array(Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Get webhook endpoint information This requests to GET https://api.line.me/v2/bot/channel/webhook/endpoint
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2128 def get_webhook_endpoint_with_http_info( # steep:ignore MethodBodyTypeMismatch ) path = "/v2/bot/channel/webhook/endpoint" response = @http_client.get( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::GetWebhookEndpointResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#issue_link_token(user_id:) ⇒ Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, ...
Issue link token This requests to POST https://api.line.me/v2/bot/user/{userId}/linkToken
When you want to get HTTP status code or response headers, use #issue_link_token_with_http_info instead of this.
2203 2204 2205 2206 2207 2208 2209 2210 2211 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2203 def issue_link_token( user_id: ) response_body, _status_code, _headers = issue_link_token_with_http_info( user_id: user_id ) response_body end |
#issue_link_token_with_http_info(user_id:) ⇒ Array(Line::Bot::V2::MessagingApi::IssueLinkTokenResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Issue link token This requests to POST https://api.line.me/v2/bot/user/{userId}/linkToken
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2172 def issue_link_token_with_http_info( # steep:ignore MethodBodyTypeMismatch user_id: ) path = "/v2/bot/user/{userId}/linkToken" .gsub(/{userId}/, user_id.to_s) response = @http_client.post( path: path, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::IssueLinkTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#leave_group(group_id:) ⇒ String, ...
Leave group chat This requests to POST https://api.line.me/v2/bot/group/{groupId}/leave
When you want to get HTTP status code or response headers, use #leave_group_with_http_info instead of this.
2265 2266 2267 2268 2269 2270 2271 2272 2273 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2265 def leave_group( group_id: ) response_body, _status_code, _headers = leave_group_with_http_info( group_id: group_id ) response_body end |
#leave_group_with_http_info(group_id:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Leave group chat This requests to POST https://api.line.me/v2/bot/group/{groupId}/leave
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2223 def leave_group_with_http_info( # steep:ignore MethodBodyTypeMismatch group_id: ) path = "/v2/bot/group/{groupId}/leave" .gsub(/{groupId}/, group_id.to_s) response = @http_client.post( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 404 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 404, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#leave_room(room_id:) ⇒ String?
Leave multi-person chat This requests to POST https://api.line.me/v2/bot/room/{roomId}/leave
When you want to get HTTP status code or response headers, use #leave_room_with_http_info instead of this.
2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2309 def leave_room( room_id: ) response_body, _status_code, _headers = leave_room_with_http_info( room_id: room_id ) response_body end |
#leave_room_with_http_info(room_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Leave multi-person chat This requests to POST https://api.line.me/v2/bot/room/{roomId}/leave
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2283 def leave_room_with_http_info( # steep:ignore MethodBodyTypeMismatch room_id: ) path = "/v2/bot/room/{roomId}/leave" .gsub(/{roomId}/, room_id.to_s) response = @http_client.post( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#link_rich_menu_id_to_user(user_id:, rich_menu_id:) ⇒ String?
Link rich menu to user. This requests to POST https://api.line.me/v2/bot/user/{userId}/richmenu/{richMenuId}
When you want to get HTTP status code or response headers, use #link_rich_menu_id_to_user_with_http_info instead of this.
2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2357 def ( user_id:, rich_menu_id: ) response_body, _status_code, _headers = ( user_id: user_id, rich_menu_id: ) response_body end |
#link_rich_menu_id_to_user_with_http_info(user_id:, rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Link rich menu to user. This requests to POST https://api.line.me/v2/bot/user/{userId}/richmenu/{richMenuId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2328 def ( # steep:ignore MethodBodyTypeMismatch user_id:, rich_menu_id: ) path = "/v2/bot/user/{userId}/richmenu/{richMenuId}" .gsub(/{userId}/, user_id.to_s) .gsub(/{richMenuId}/, .to_s) response = @http_client.post( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#link_rich_menu_id_to_users(rich_menu_bulk_link_request:) ⇒ String?
Link rich menu to multiple users This requests to POST https://api.line.me/v2/bot/richmenu/bulk/link
When you want to get HTTP status code or response headers, use #link_rich_menu_id_to_users_with_http_info instead of this.
2403 2404 2405 2406 2407 2408 2409 2410 2411 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2403 def ( rich_menu_bulk_link_request: ) response_body, _status_code, _headers = ( rich_menu_bulk_link_request: ) response_body end |
#link_rich_menu_id_to_users_with_http_info(rich_menu_bulk_link_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Link rich menu to multiple users This requests to POST https://api.line.me/v2/bot/richmenu/bulk/link
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2377 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_bulk_link_request: ) path = "/v2/bot/richmenu/bulk/link" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 202 [response.body, 202, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#list_coupon(status: nil, start: nil, limit: nil) ⇒ Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, ...
Get a paginated list of coupons. This requests to GET https://api.line.me/v2/bot/coupon
When you want to get HTTP status code or response headers, use #list_coupon_with_http_info instead of this.
2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2472 def list_coupon( status: nil, start: nil, limit: nil ) response_body, _status_code, _headers = list_coupon_with_http_info( status: status, start: start, limit: limit ) response_body end |
#list_coupon_with_http_info(status: nil, start: nil, limit: nil) ⇒ Array(Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse, Integer, Hash{String => String}), ...
Get a paginated list of coupons. This requests to GET https://api.line.me/v2/bot/coupon
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2424 def list_coupon_with_http_info( # steep:ignore MethodBodyTypeMismatch status: nil, start: nil, limit: nil ) path = "/v2/bot/coupon" query_params = { "status": status&.join(','), "start": start, "limit": limit }.compact response = @http_client.get( path: path, query_params: query_params, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::MessagingApiPagerCouponListResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#mark_messages_as_read(mark_messages_as_read_request:) ⇒ String?
Mark messages from users as read This requests to POST https://api.line.me/v2/bot/message/markAsRead
When you want to get HTTP status code or response headers, use #mark_messages_as_read_with_http_info instead of this.
2520 2521 2522 2523 2524 2525 2526 2527 2528 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2520 def ( mark_messages_as_read_request: ) response_body, _status_code, _headers = ( mark_messages_as_read_request: ) response_body end |
#mark_messages_as_read_with_http_info(mark_messages_as_read_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Mark messages from users as read This requests to POST https://api.line.me/v2/bot/message/markAsRead
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2494 def ( # steep:ignore MethodBodyTypeMismatch mark_messages_as_read_request: ) path = "/v2/bot/message/markAsRead" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#multicast(multicast_request:, x_line_retry_key: nil) ⇒ String, ...
An API that efficiently sends the same message to multiple user IDs. You can’t send messages to group chats or multi-person chats. This requests to POST https://api.line.me/v2/bot/message/multicast
When you want to get HTTP status code or response headers, use #multicast_with_http_info instead of this.
2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2607 def multicast( multicast_request:, x_line_retry_key: nil ) response_body, _status_code, _headers = multicast_with_http_info( multicast_request: multicast_request, x_line_retry_key: x_line_retry_key ) response_body end |
#multicast_with_http_info(multicast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
An API that efficiently sends the same message to multiple user IDs. You can’t send messages to group chats or multi-person chats. This requests to POST https://api.line.me/v2/bot/message/multicast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2543 def multicast_with_http_info( # steep:ignore MethodBodyTypeMismatch multicast_request:, x_line_retry_key: nil ) path = "/v2/bot/message/multicast" header_params = { "X-Line-Retry-Key": x_line_retry_key }.compact response = @http_client.post( path: path, body_params: multicast_request, headers: header_params ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 403 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 403, response.each_header.to_h] when 409 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 409, response.each_header.to_h] when 429 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 429, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#narrowcast(narrowcast_request:, x_line_retry_key: nil) ⇒ String, ...
Send narrowcast message This requests to POST https://api.line.me/v2/bot/message/narrowcast
When you want to get HTTP status code or response headers, use #narrowcast_with_http_info instead of this.
2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2696 def narrowcast( narrowcast_request:, x_line_retry_key: nil ) response_body, _status_code, _headers = narrowcast_with_http_info( narrowcast_request: narrowcast_request, x_line_retry_key: x_line_retry_key ) response_body end |
#narrowcast_with_http_info(narrowcast_request:, x_line_retry_key: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Send narrowcast message This requests to POST https://api.line.me/v2/bot/message/narrowcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2632 def narrowcast_with_http_info( # steep:ignore MethodBodyTypeMismatch narrowcast_request:, x_line_retry_key: nil ) path = "/v2/bot/message/narrowcast" header_params = { "X-Line-Retry-Key": x_line_retry_key }.compact response = @http_client.post( path: path, body_params: narrowcast_request, headers: header_params ) case response.code.to_i when 202 [response.body, 202, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 403 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 403, response.each_header.to_h] when 409 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 409, response.each_header.to_h] when 429 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 429, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#push_message(push_message_request:, x_line_retry_key: nil) ⇒ Line::Bot::V2::MessagingApi::PushMessageResponse, ...
Sends a message to a user, group chat, or multi-person chat at any time. This requests to POST https://api.line.me/v2/bot/message/push
When you want to get HTTP status code or response headers, use #push_message_with_http_info instead of this.
2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2790 def ( push_message_request:, x_line_retry_key: nil ) response_body, _status_code, _headers = ( push_message_request: , x_line_retry_key: x_line_retry_key ) response_body end |
#push_message_with_http_info(push_message_request:, x_line_retry_key: nil) ⇒ Array(Line::Bot::V2::MessagingApi::PushMessageResponse, Integer, Hash{String => String}), ...
Sends a message to a user, group chat, or multi-person chat at any time. This requests to POST https://api.line.me/v2/bot/message/push
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2721 def ( # steep:ignore MethodBodyTypeMismatch push_message_request:, x_line_retry_key: nil ) path = "/v2/bot/message/push" header_params = { "X-Line-Retry-Key": x_line_retry_key }.compact response = @http_client.post( path: path, body_params: , headers: header_params ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::PushMessageResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 403 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 403, response.each_header.to_h] when 409 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 409, response.each_header.to_h] when 429 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 429, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#push_messages_by_phone(pnp_messages_request:, x_line_delivery_tag: nil) ⇒ String, ...
Send LINE notification message This requests to POST https://api.line.me/bot/pnp/push
When you want to get HTTP status code or response headers, use #push_messages_by_phone_with_http_info instead of this.
2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2852 def ( pnp_messages_request:, x_line_delivery_tag: nil ) response_body, _status_code, _headers = ( pnp_messages_request: , x_line_delivery_tag: x_line_delivery_tag ) response_body end |
#push_messages_by_phone_with_http_info(pnp_messages_request:, x_line_delivery_tag: nil) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Send LINE notification message This requests to POST https://api.line.me/bot/pnp/push
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2812 def ( # steep:ignore MethodBodyTypeMismatch pnp_messages_request:, x_line_delivery_tag: nil ) path = "/bot/pnp/push" header_params = { "X-Line-Delivery-Tag": x_line_delivery_tag }.compact response = @http_client.post( path: path, body_params: , headers: header_params ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 422 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 422, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#reply_message(reply_message_request:) ⇒ Line::Bot::V2::MessagingApi::ReplyMessageResponse, ...
Send reply message This requests to POST https://api.line.me/v2/bot/message/reply
When you want to get HTTP status code or response headers, use #reply_message_with_http_info instead of this.
2921 2922 2923 2924 2925 2926 2927 2928 2929 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2921 def ( reply_message_request: ) response_body, _status_code, _headers = ( reply_message_request: ) response_body end |
#reply_message_with_http_info(reply_message_request:) ⇒ Array(Line::Bot::V2::MessagingApi::ReplyMessageResponse, Integer, Hash{String => String}), ...
Send reply message This requests to POST https://api.line.me/v2/bot/message/reply
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2874 def ( # steep:ignore MethodBodyTypeMismatch reply_message_request: ) path = "/v2/bot/message/reply" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ReplyMessageResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] when 429 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 429, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#rich_menu_batch(rich_menu_batch_request:) ⇒ String?
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu This requests to POST https://api.line.me/v2/bot/richmenu/batch
When you want to get HTTP status code or response headers, use #rich_menu_batch_with_http_info instead of this.
2965 2966 2967 2968 2969 2970 2971 2972 2973 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2965 def ( rich_menu_batch_request: ) response_body, _status_code, _headers = ( rich_menu_batch_request: ) response_body end |
#rich_menu_batch_with_http_info(rich_menu_batch_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
You can use this endpoint to batch control the rich menu linked to the users using the endpoint such as Link rich menu to user. The following operations are available: 1. Replace a rich menu with another rich menu for all users linked to a specific rich menu 2. Unlink a rich menu for all users linked to a specific rich menu 3. Unlink a rich menu for all users linked the rich menu This requests to POST https://api.line.me/v2/bot/richmenu/batch
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2939 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_batch_request: ) path = "/v2/bot/richmenu/batch" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 202 [response.body, 202, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#set_default_rich_menu(rich_menu_id:) ⇒ String?
Set default rich menu This requests to POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}
When you want to get HTTP status code or response headers, use #set_default_rich_menu_with_http_info instead of this.
3009 3010 3011 3012 3013 3014 3015 3016 3017 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3009 def ( rich_menu_id: ) response_body, _status_code, _headers = ( rich_menu_id: ) response_body end |
#set_default_rich_menu_with_http_info(rich_menu_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Set default rich menu This requests to POST https://api.line.me/v2/bot/user/all/richmenu/{richMenuId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 2983 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_id: ) path = "/v2/bot/user/all/richmenu/{richMenuId}" .gsub(/{richMenuId}/, .to_s) response = @http_client.post( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#set_webhook_endpoint(set_webhook_endpoint_request:) ⇒ String?
Set webhook endpoint URL This requests to PUT https://api.line.me/v2/bot/channel/webhook/endpoint
When you want to get HTTP status code or response headers, use #set_webhook_endpoint_with_http_info instead of this.
3053 3054 3055 3056 3057 3058 3059 3060 3061 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3053 def set_webhook_endpoint( set_webhook_endpoint_request: ) response_body, _status_code, _headers = set_webhook_endpoint_with_http_info( set_webhook_endpoint_request: set_webhook_endpoint_request ) response_body end |
#set_webhook_endpoint_with_http_info(set_webhook_endpoint_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Set webhook endpoint URL This requests to PUT https://api.line.me/v2/bot/channel/webhook/endpoint
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3027 def set_webhook_endpoint_with_http_info( # steep:ignore MethodBodyTypeMismatch set_webhook_endpoint_request: ) path = "/v2/bot/channel/webhook/endpoint" response = @http_client.put( path: path, body_params: set_webhook_endpoint_request, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#show_loading_animation(show_loading_animation_request:) ⇒ String, ...
Display a loading animation in one-on-one chats between users and LINE Official Accounts. This requests to POST https://api.line.me/v2/bot/chat/loading/start
When you want to get HTTP status code or response headers, use #show_loading_animation_with_http_info instead of this.
3106 3107 3108 3109 3110 3111 3112 3113 3114 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3106 def show_loading_animation( show_loading_animation_request: ) response_body, _status_code, _headers = show_loading_animation_with_http_info( show_loading_animation_request: show_loading_animation_request ) response_body end |
#show_loading_animation_with_http_info(show_loading_animation_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Display a loading animation in one-on-one chats between users and LINE Official Accounts. This requests to POST https://api.line.me/v2/bot/chat/loading/start
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3072 def show_loading_animation_with_http_info( # steep:ignore MethodBodyTypeMismatch show_loading_animation_request: ) path = "/v2/bot/chat/loading/start" response = @http_client.post( path: path, body_params: show_loading_animation_request, ) case response.code.to_i when 202 [response.body, 202, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#test_webhook_endpoint(test_webhook_endpoint_request: nil) ⇒ Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, ...
Test webhook endpoint This requests to POST https://api.line.me/v2/bot/channel/webhook/test
When you want to get HTTP status code or response headers, use #test_webhook_endpoint_with_http_info instead of this.
3155 3156 3157 3158 3159 3160 3161 3162 3163 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3155 def test_webhook_endpoint( test_webhook_endpoint_request: nil ) response_body, _status_code, _headers = test_webhook_endpoint_with_http_info( test_webhook_endpoint_request: test_webhook_endpoint_request ) response_body end |
#test_webhook_endpoint_with_http_info(test_webhook_endpoint_request: nil) ⇒ Array(Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse, Integer, Hash{String => String}), Array((String|nil), Integer, Hash{String => String})
Test webhook endpoint This requests to POST https://api.line.me/v2/bot/channel/webhook/test
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3124 def test_webhook_endpoint_with_http_info( # steep:ignore MethodBodyTypeMismatch test_webhook_endpoint_request: nil ) path = "/v2/bot/channel/webhook/test" response = @http_client.post( path: path, body_params: test_webhook_endpoint_request, ) case response.code.to_i when 200 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::TestWebhookEndpointResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#unlink_rich_menu_id_from_user(user_id:) ⇒ String?
Unlink rich menu from user This requests to DELETE https://api.line.me/v2/bot/user/{userId}/richmenu
When you want to get HTTP status code or response headers, use #unlink_rich_menu_id_from_user_with_http_info instead of this.
3199 3200 3201 3202 3203 3204 3205 3206 3207 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3199 def ( user_id: ) response_body, _status_code, _headers = ( user_id: user_id ) response_body end |
#unlink_rich_menu_id_from_user_with_http_info(user_id:) ⇒ Array((String|nil), Integer, Hash{String => String})
Unlink rich menu from user This requests to DELETE https://api.line.me/v2/bot/user/{userId}/richmenu
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3173 def ( # steep:ignore MethodBodyTypeMismatch user_id: ) path = "/v2/bot/user/{userId}/richmenu" .gsub(/{userId}/, user_id.to_s) response = @http_client.delete( path: path, ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#unlink_rich_menu_id_from_users(rich_menu_bulk_unlink_request:) ⇒ String?
Unlink rich menus from multiple users This requests to POST https://api.line.me/v2/bot/richmenu/bulk/unlink
When you want to get HTTP status code or response headers, use #unlink_rich_menu_id_from_users_with_http_info instead of this.
3243 3244 3245 3246 3247 3248 3249 3250 3251 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3243 def ( rich_menu_bulk_unlink_request: ) response_body, _status_code, _headers = ( rich_menu_bulk_unlink_request: ) response_body end |
#unlink_rich_menu_id_from_users_with_http_info(rich_menu_bulk_unlink_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Unlink rich menus from multiple users This requests to POST https://api.line.me/v2/bot/richmenu/bulk/unlink
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3217 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_bulk_unlink_request: ) path = "/v2/bot/richmenu/bulk/unlink" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 202 [response.body, 202, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#update_rich_menu_alias(rich_menu_alias_id:, update_rich_menu_alias_request:) ⇒ String, ...
Update rich menu alias This requests to POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
When you want to get HTTP status code or response headers, use #update_rich_menu_alias_with_http_info instead of this.
3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3300 def ( rich_menu_alias_id:, update_rich_menu_alias_request: ) response_body, _status_code, _headers = ( rich_menu_alias_id: , update_rich_menu_alias_request: ) response_body end |
#update_rich_menu_alias_with_http_info(rich_menu_alias_id:, update_rich_menu_alias_request:) ⇒ Array((String|nil), Integer, Hash{String => String}), Array(Line::Bot::V2::MessagingApi::ErrorResponse, Integer, Hash{String => String})
Update rich menu alias This requests to POST https://api.line.me/v2/bot/richmenu/alias/{richMenuAliasId}
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3263 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_alias_id:, update_rich_menu_alias_request: ) path = "/v2/bot/richmenu/alias/{richMenuAliasId}" .gsub(/{richMenuAliasId}/, .to_s) response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] when 400 json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) json.transform_keys! do |key| Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key end response_body = Line::Bot::V2::MessagingApi::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments [response_body, 400, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_broadcast(validate_message_request:) ⇒ String?
Validate message objects of a broadcast message This requests to POST https://api.line.me/v2/bot/message/validate/broadcast
When you want to get HTTP status code or response headers, use #validate_broadcast_with_http_info instead of this.
3346 3347 3348 3349 3350 3351 3352 3353 3354 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3346 def validate_broadcast( validate_message_request: ) response_body, _status_code, _headers = validate_broadcast_with_http_info( validate_message_request: ) response_body end |
#validate_broadcast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a broadcast message This requests to POST https://api.line.me/v2/bot/message/validate/broadcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3320 def validate_broadcast_with_http_info( # steep:ignore MethodBodyTypeMismatch validate_message_request: ) path = "/v2/bot/message/validate/broadcast" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_multicast(validate_message_request:) ⇒ String?
Validate message objects of a multicast message This requests to POST https://api.line.me/v2/bot/message/validate/multicast
When you want to get HTTP status code or response headers, use #validate_multicast_with_http_info instead of this.
3390 3391 3392 3393 3394 3395 3396 3397 3398 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3390 def validate_multicast( validate_message_request: ) response_body, _status_code, _headers = validate_multicast_with_http_info( validate_message_request: ) response_body end |
#validate_multicast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a multicast message This requests to POST https://api.line.me/v2/bot/message/validate/multicast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3364 def validate_multicast_with_http_info( # steep:ignore MethodBodyTypeMismatch validate_message_request: ) path = "/v2/bot/message/validate/multicast" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_narrowcast(validate_message_request:) ⇒ String?
Validate message objects of a narrowcast message This requests to POST https://api.line.me/v2/bot/message/validate/narrowcast
When you want to get HTTP status code or response headers, use #validate_narrowcast_with_http_info instead of this.
3434 3435 3436 3437 3438 3439 3440 3441 3442 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3434 def validate_narrowcast( validate_message_request: ) response_body, _status_code, _headers = validate_narrowcast_with_http_info( validate_message_request: ) response_body end |
#validate_narrowcast_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a narrowcast message This requests to POST https://api.line.me/v2/bot/message/validate/narrowcast
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3408 def validate_narrowcast_with_http_info( # steep:ignore MethodBodyTypeMismatch validate_message_request: ) path = "/v2/bot/message/validate/narrowcast" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_push(validate_message_request:) ⇒ String?
Validate message objects of a push message This requests to POST https://api.line.me/v2/bot/message/validate/push
When you want to get HTTP status code or response headers, use #validate_push_with_http_info instead of this.
3478 3479 3480 3481 3482 3483 3484 3485 3486 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3478 def validate_push( validate_message_request: ) response_body, _status_code, _headers = validate_push_with_http_info( validate_message_request: ) response_body end |
#validate_push_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a push message This requests to POST https://api.line.me/v2/bot/message/validate/push
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3452 def validate_push_with_http_info( # steep:ignore MethodBodyTypeMismatch validate_message_request: ) path = "/v2/bot/message/validate/push" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_reply(validate_message_request:) ⇒ String?
Validate message objects of a reply message This requests to POST https://api.line.me/v2/bot/message/validate/reply
When you want to get HTTP status code or response headers, use #validate_reply_with_http_info instead of this.
3522 3523 3524 3525 3526 3527 3528 3529 3530 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3522 def validate_reply( validate_message_request: ) response_body, _status_code, _headers = validate_reply_with_http_info( validate_message_request: ) response_body end |
#validate_reply_with_http_info(validate_message_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate message objects of a reply message This requests to POST https://api.line.me/v2/bot/message/validate/reply
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3496 def validate_reply_with_http_info( # steep:ignore MethodBodyTypeMismatch validate_message_request: ) path = "/v2/bot/message/validate/reply" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_rich_menu_batch_request(rich_menu_batch_request:) ⇒ String?
Validate a request body of the Replace or unlink the linked rich menus in batches endpoint. This requests to POST https://api.line.me/v2/bot/richmenu/validate/batch
When you want to get HTTP status code or response headers, use #validate_rich_menu_batch_request_with_http_info instead of this.
3566 3567 3568 3569 3570 3571 3572 3573 3574 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3566 def ( rich_menu_batch_request: ) response_body, _status_code, _headers = ( rich_menu_batch_request: ) response_body end |
#validate_rich_menu_batch_request_with_http_info(rich_menu_batch_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate a request body of the Replace or unlink the linked rich menus in batches endpoint. This requests to POST https://api.line.me/v2/bot/richmenu/validate/batch
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3540 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_batch_request: ) path = "/v2/bot/richmenu/validate/batch" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |
#validate_rich_menu_object(rich_menu_request:) ⇒ String?
Validate rich menu object This requests to POST https://api.line.me/v2/bot/richmenu/validate
When you want to get HTTP status code or response headers, use #validate_rich_menu_object_with_http_info instead of this.
3610 3611 3612 3613 3614 3615 3616 3617 3618 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3610 def ( rich_menu_request: ) response_body, _status_code, _headers = ( rich_menu_request: ) response_body end |
#validate_rich_menu_object_with_http_info(rich_menu_request:) ⇒ Array((String|nil), Integer, Hash{String => String})
Validate rich menu object This requests to POST https://api.line.me/v2/bot/richmenu/validate
This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 |
# File 'lib/line/bot/v2/messaging_api/api/messaging_api_client.rb', line 3584 def ( # steep:ignore MethodBodyTypeMismatch rich_menu_request: ) path = "/v2/bot/richmenu/validate" response = @http_client.post( path: path, body_params: , ) case response.code.to_i when 200 [response.body, 200, response.each_header.to_h] else [response.body, response.code.to_i, response.each_header.to_h] end end |