Documentation ¶
Index ¶
- type Action
- type ActionInterface
- type AgeDemographic
- type AgeDemographicFilter
- type AltUri
- type AppTypeDemographic
- type AppTypeDemographicFilter
- type AreaDemographic
- type AreaDemographicFilter
- type AudienceMatchMessagesRequest
- type AudienceRecipient
- type AudioMessage
- type BotInfoResponse
- type BotInfoResponseCHAT_MODE
- type BotInfoResponseMARK_AS_READ_MODE
- type BroadcastRequest
- type ButtonsTemplate
- type CameraAction
- type CameraRollAction
- type CarouselColumn
- type CarouselTemplate
- type ChatReference
- type ClipboardAction
- type ClipboardImagemapAction
- type ConfirmTemplate
- type CreateRichMenuAliasRequest
- type DatetimePickerAction
- type DatetimePickerActionMODE
- type DemographicFilter
- type DemographicFilterInterface
- type Emoji
- type ErrorDetail
- type ErrorResponse
- type Filter
- type FlexBlockStyle
- type FlexBox
- type FlexBoxALIGN_ITEMS
- type FlexBoxBackground
- type FlexBoxBackgroundInterface
- type FlexBoxBorderWidth
- type FlexBoxCornerRadius
- type FlexBoxJUSTIFY_CONTENT
- type FlexBoxLAYOUT
- type FlexBoxLinearGradient
- type FlexBoxPOSITION
- type FlexBoxPadding
- type FlexBoxSpacing
- type FlexBubble
- type FlexBubbleDIRECTION
- type FlexBubbleSIZE
- type FlexBubbleStyles
- type FlexButton
- type FlexButtonADJUST_MODE
- type FlexButtonGRAVITY
- type FlexButtonHEIGHT
- type FlexButtonPOSITION
- type FlexButtonSTYLE
- type FlexCarousel
- type FlexComponent
- type FlexComponentInterface
- type FlexContainer
- type FlexContainerInterface
- type FlexFiller
- type FlexIcon
- type FlexIconPOSITION
- type FlexIconSize
- type FlexImage
- type FlexImageALIGN
- type FlexImageASPECT_MODE
- type FlexImageGRAVITY
- type FlexImagePOSITION
- type FlexImageSize
- type FlexMargin
- type FlexMessage
- type FlexOffset
- type FlexSeparator
- type FlexSpan
- type FlexSpanDECORATION
- type FlexSpanSTYLE
- type FlexSpanSize
- type FlexSpanWEIGHT
- type FlexText
- type FlexTextADJUST_MODE
- type FlexTextALIGN
- type FlexTextDECORATION
- type FlexTextFontSize
- type FlexTextGRAVITY
- type FlexTextPOSITION
- type FlexTextSTYLE
- type FlexTextWEIGHT
- type FlexVideo
- type GenderDemographic
- type GenderDemographicFilter
- type GetAggregationUnitNameListResponse
- type GetAggregationUnitUsageResponse
- type GetFollowersResponse
- type GetMembershipSubscriptionResponse
- type GetMessageContentTranscodingResponse
- type GetMessageContentTranscodingResponseSTATUS
- type GetWebhookEndpointResponse
- type GroupMemberCountResponse
- type GroupSummaryResponse
- type GroupUserProfileResponse
- type ImageCarouselColumn
- type ImageCarouselTemplate
- type ImageMessage
- type ImagemapAction
- type ImagemapActionInterface
- type ImagemapArea
- type ImagemapBaseSize
- type ImagemapExternalLink
- type ImagemapMessage
- type ImagemapVideo
- type IssueLinkTokenResponse
- type Limit
- type LocationAction
- type LocationMessage
- type MarkMessagesAsReadRequest
- type MembersIdsResponse
- type Membership
- type MembershipCURRENCY
- type MembershipListResponse
- type Message
- type MessageAction
- type MessageImagemapAction
- type MessageInterface
- type MessageQuotaResponse
- type MessagingApiAPI
- func (client *MessagingApiAPI) AudienceMatch(audienceMatchMessagesRequest *AudienceMatchMessagesRequest) (struct{}, error)
- func (client *MessagingApiAPI) AudienceMatchWithHttpInfo(audienceMatchMessagesRequest *AudienceMatchMessagesRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) Broadcast(broadcastRequest *BroadcastRequest, xLineRetryKey string) (*map[string]interface{}, error)
- func (client *MessagingApiAPI) BroadcastWithHttpInfo(broadcastRequest *BroadcastRequest, xLineRetryKey string) (*http.Response, *map[string]interface{}, error)
- func (client *MessagingApiAPI) CancelDefaultRichMenu() (struct{}, error)
- func (client *MessagingApiAPI) CancelDefaultRichMenuWithHttpInfo() (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) CreateRichMenu(richMenuRequest *RichMenuRequest) (*RichMenuIdResponse, error)
- func (client *MessagingApiAPI) CreateRichMenuAlias(createRichMenuAliasRequest *CreateRichMenuAliasRequest) (struct{}, error)
- func (client *MessagingApiAPI) CreateRichMenuAliasWithHttpInfo(createRichMenuAliasRequest *CreateRichMenuAliasRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) CreateRichMenuWithHttpInfo(richMenuRequest *RichMenuRequest) (*http.Response, *RichMenuIdResponse, error)
- func (client *MessagingApiAPI) DeleteRichMenu(richMenuId string) (struct{}, error)
- func (client *MessagingApiAPI) DeleteRichMenuAlias(richMenuAliasId string) (struct{}, error)
- func (client *MessagingApiAPI) DeleteRichMenuAliasWithHttpInfo(richMenuAliasId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) DeleteRichMenuWithHttpInfo(richMenuId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) Do(req *http.Request) (*http.Response, error)
- func (client *MessagingApiAPI) GetAdPhoneMessageStatistics(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetAdPhoneMessageStatisticsWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetAggregationUnitNameList(limit string, start string) (*GetAggregationUnitNameListResponse, error)
- func (client *MessagingApiAPI) GetAggregationUnitNameListWithHttpInfo(limit string, start string) (*http.Response, *GetAggregationUnitNameListResponse, error)
- func (client *MessagingApiAPI) GetAggregationUnitUsage() (*GetAggregationUnitUsageResponse, error)
- func (client *MessagingApiAPI) GetAggregationUnitUsageWithHttpInfo() (*http.Response, *GetAggregationUnitUsageResponse, error)
- func (client *MessagingApiAPI) GetBotInfo() (*BotInfoResponse, error)
- func (client *MessagingApiAPI) GetBotInfoWithHttpInfo() (*http.Response, *BotInfoResponse, error)
- func (client *MessagingApiAPI) GetDefaultRichMenuId() (*RichMenuIdResponse, error)
- func (client *MessagingApiAPI) GetDefaultRichMenuIdWithHttpInfo() (*http.Response, *RichMenuIdResponse, error)
- func (client *MessagingApiAPI) GetFollowers(start string, limit int32) (*GetFollowersResponse, error)
- func (client *MessagingApiAPI) GetFollowersWithHttpInfo(start string, limit int32) (*http.Response, *GetFollowersResponse, error)
- func (client *MessagingApiAPI) GetGroupMemberCount(groupId string) (*GroupMemberCountResponse, error)
- func (client *MessagingApiAPI) GetGroupMemberCountWithHttpInfo(groupId string) (*http.Response, *GroupMemberCountResponse, error)
- func (client *MessagingApiAPI) GetGroupMemberProfile(groupId string, userId string) (*GroupUserProfileResponse, error)
- func (client *MessagingApiAPI) GetGroupMemberProfileWithHttpInfo(groupId string, userId string) (*http.Response, *GroupUserProfileResponse, error)
- func (client *MessagingApiAPI) GetGroupMembersIds(groupId string, start string) (*MembersIdsResponse, error)
- func (client *MessagingApiAPI) GetGroupMembersIdsWithHttpInfo(groupId string, start string) (*http.Response, *MembersIdsResponse, error)
- func (client *MessagingApiAPI) GetGroupSummary(groupId string) (*GroupSummaryResponse, error)
- func (client *MessagingApiAPI) GetGroupSummaryWithHttpInfo(groupId string) (*http.Response, *GroupSummaryResponse, error)
- func (client *MessagingApiAPI) GetMembershipList() (*MembershipListResponse, error)
- func (client *MessagingApiAPI) GetMembershipListWithHttpInfo() (*http.Response, *MembershipListResponse, error)
- func (client *MessagingApiAPI) GetMembershipSubscription(userId string) (*GetMembershipSubscriptionResponse, error)
- func (client *MessagingApiAPI) GetMembershipSubscriptionWithHttpInfo(userId string) (*http.Response, *GetMembershipSubscriptionResponse, error)
- func (client *MessagingApiAPI) GetMessageQuota() (*MessageQuotaResponse, error)
- func (client *MessagingApiAPI) GetMessageQuotaConsumption() (*QuotaConsumptionResponse, error)
- func (client *MessagingApiAPI) GetMessageQuotaConsumptionWithHttpInfo() (*http.Response, *QuotaConsumptionResponse, error)
- func (client *MessagingApiAPI) GetMessageQuotaWithHttpInfo() (*http.Response, *MessageQuotaResponse, error)
- func (client *MessagingApiAPI) GetNarrowcastProgress(requestId string) (*NarrowcastProgressResponse, error)
- func (client *MessagingApiAPI) GetNarrowcastProgressWithHttpInfo(requestId string) (*http.Response, *NarrowcastProgressResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentBroadcastMessages(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentBroadcastMessagesWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentMulticastMessages(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentMulticastMessagesWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentPushMessages(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentPushMessagesWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentReplyMessages(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetNumberOfSentReplyMessagesWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetPNPMessageStatistics(date string) (*NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetPNPMessageStatisticsWithHttpInfo(date string) (*http.Response, *NumberOfMessagesResponse, error)
- func (client *MessagingApiAPI) GetProfile(userId string) (*UserProfileResponse, error)
- func (client *MessagingApiAPI) GetProfileWithHttpInfo(userId string) (*http.Response, *UserProfileResponse, error)
- func (client *MessagingApiAPI) GetRichMenu(richMenuId string) (*RichMenuResponse, error)
- func (client *MessagingApiAPI) GetRichMenuAlias(richMenuAliasId string) (*RichMenuAliasResponse, error)
- func (client *MessagingApiAPI) GetRichMenuAliasList() (*RichMenuAliasListResponse, error)
- func (client *MessagingApiAPI) GetRichMenuAliasListWithHttpInfo() (*http.Response, *RichMenuAliasListResponse, error)
- func (client *MessagingApiAPI) GetRichMenuAliasWithHttpInfo(richMenuAliasId string) (*http.Response, *RichMenuAliasResponse, error)
- func (client *MessagingApiAPI) GetRichMenuBatchProgress(requestId string) (*RichMenuBatchProgressResponse, error)
- func (client *MessagingApiAPI) GetRichMenuBatchProgressWithHttpInfo(requestId string) (*http.Response, *RichMenuBatchProgressResponse, error)
- func (client *MessagingApiAPI) GetRichMenuIdOfUser(userId string) (*RichMenuIdResponse, error)
- func (client *MessagingApiAPI) GetRichMenuIdOfUserWithHttpInfo(userId string) (*http.Response, *RichMenuIdResponse, error)
- func (client *MessagingApiAPI) GetRichMenuList() (*RichMenuListResponse, error)
- func (client *MessagingApiAPI) GetRichMenuListWithHttpInfo() (*http.Response, *RichMenuListResponse, error)
- func (client *MessagingApiAPI) GetRichMenuWithHttpInfo(richMenuId string) (*http.Response, *RichMenuResponse, error)
- func (client *MessagingApiAPI) GetRoomMemberCount(roomId string) (*RoomMemberCountResponse, error)
- func (client *MessagingApiAPI) GetRoomMemberCountWithHttpInfo(roomId string) (*http.Response, *RoomMemberCountResponse, error)
- func (client *MessagingApiAPI) GetRoomMemberProfile(roomId string, userId string) (*RoomUserProfileResponse, error)
- func (client *MessagingApiAPI) GetRoomMemberProfileWithHttpInfo(roomId string, userId string) (*http.Response, *RoomUserProfileResponse, error)
- func (client *MessagingApiAPI) GetRoomMembersIds(roomId string, start string) (*MembersIdsResponse, error)
- func (client *MessagingApiAPI) GetRoomMembersIdsWithHttpInfo(roomId string, start string) (*http.Response, *MembersIdsResponse, error)
- func (client *MessagingApiAPI) GetWebhookEndpoint() (*GetWebhookEndpointResponse, error)
- func (client *MessagingApiAPI) GetWebhookEndpointWithHttpInfo() (*http.Response, *GetWebhookEndpointResponse, error)
- func (client *MessagingApiAPI) IssueLinkToken(userId string) (*IssueLinkTokenResponse, error)
- func (client *MessagingApiAPI) IssueLinkTokenWithHttpInfo(userId string) (*http.Response, *IssueLinkTokenResponse, error)
- func (client *MessagingApiAPI) LeaveGroup(groupId string) (struct{}, error)
- func (client *MessagingApiAPI) LeaveGroupWithHttpInfo(groupId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) LeaveRoom(roomId string) (struct{}, error)
- func (client *MessagingApiAPI) LeaveRoomWithHttpInfo(roomId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) LinkRichMenuIdToUser(userId string, richMenuId string) (struct{}, error)
- func (client *MessagingApiAPI) LinkRichMenuIdToUserWithHttpInfo(userId string, richMenuId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) LinkRichMenuIdToUsers(richMenuBulkLinkRequest *RichMenuBulkLinkRequest) (struct{}, error)
- func (client *MessagingApiAPI) LinkRichMenuIdToUsersWithHttpInfo(richMenuBulkLinkRequest *RichMenuBulkLinkRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) MarkMessagesAsRead(markMessagesAsReadRequest *MarkMessagesAsReadRequest) (struct{}, error)
- func (client *MessagingApiAPI) MarkMessagesAsReadWithHttpInfo(markMessagesAsReadRequest *MarkMessagesAsReadRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) Multicast(multicastRequest *MulticastRequest, xLineRetryKey string) (*map[string]interface{}, error)
- func (client *MessagingApiAPI) MulticastWithHttpInfo(multicastRequest *MulticastRequest, xLineRetryKey string) (*http.Response, *map[string]interface{}, error)
- func (client *MessagingApiAPI) Narrowcast(narrowcastRequest *NarrowcastRequest, xLineRetryKey string) (*map[string]interface{}, error)
- func (client *MessagingApiAPI) NarrowcastWithHttpInfo(narrowcastRequest *NarrowcastRequest, xLineRetryKey string) (*http.Response, *map[string]interface{}, error)
- func (client *MessagingApiAPI) PushMessage(pushMessageRequest *PushMessageRequest, xLineRetryKey string) (*PushMessageResponse, error)
- func (client *MessagingApiAPI) PushMessageWithHttpInfo(pushMessageRequest *PushMessageRequest, xLineRetryKey string) (*http.Response, *PushMessageResponse, error)
- func (client *MessagingApiAPI) PushMessagesByPhone(pnpMessagesRequest *PnpMessagesRequest, xLineDeliveryTag string) (struct{}, error)
- func (client *MessagingApiAPI) PushMessagesByPhoneWithHttpInfo(pnpMessagesRequest *PnpMessagesRequest, xLineDeliveryTag string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ReplyMessage(replyMessageRequest *ReplyMessageRequest) (*ReplyMessageResponse, error)
- func (client *MessagingApiAPI) ReplyMessageWithHttpInfo(replyMessageRequest *ReplyMessageRequest) (*http.Response, *ReplyMessageResponse, error)
- func (client *MessagingApiAPI) RichMenuBatch(richMenuBatchRequest *RichMenuBatchRequest) (struct{}, error)
- func (client *MessagingApiAPI) RichMenuBatchWithHttpInfo(richMenuBatchRequest *RichMenuBatchRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) SetDefaultRichMenu(richMenuId string) (struct{}, error)
- func (client *MessagingApiAPI) SetDefaultRichMenuWithHttpInfo(richMenuId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) SetWebhookEndpoint(setWebhookEndpointRequest *SetWebhookEndpointRequest) (struct{}, error)
- func (client *MessagingApiAPI) SetWebhookEndpointWithHttpInfo(setWebhookEndpointRequest *SetWebhookEndpointRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ShowLoadingAnimation(showLoadingAnimationRequest *ShowLoadingAnimationRequest) (*map[string]interface{}, error)
- func (client *MessagingApiAPI) ShowLoadingAnimationWithHttpInfo(showLoadingAnimationRequest *ShowLoadingAnimationRequest) (*http.Response, *map[string]interface{}, error)
- func (client *MessagingApiAPI) TestWebhookEndpoint(testWebhookEndpointRequest *TestWebhookEndpointRequest) (*TestWebhookEndpointResponse, error)
- func (client *MessagingApiAPI) TestWebhookEndpointWithHttpInfo(testWebhookEndpointRequest *TestWebhookEndpointRequest) (*http.Response, *TestWebhookEndpointResponse, error)
- func (client *MessagingApiAPI) UnlinkRichMenuIdFromUser(userId string) (struct{}, error)
- func (client *MessagingApiAPI) UnlinkRichMenuIdFromUserWithHttpInfo(userId string) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) UnlinkRichMenuIdFromUsers(richMenuBulkUnlinkRequest *RichMenuBulkUnlinkRequest) (struct{}, error)
- func (client *MessagingApiAPI) UnlinkRichMenuIdFromUsersWithHttpInfo(richMenuBulkUnlinkRequest *RichMenuBulkUnlinkRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) UpdateRichMenuAlias(richMenuAliasId string, updateRichMenuAliasRequest *UpdateRichMenuAliasRequest) (struct{}, error)
- func (client *MessagingApiAPI) UpdateRichMenuAliasWithHttpInfo(richMenuAliasId string, updateRichMenuAliasRequest *UpdateRichMenuAliasRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) Url(endpointPath string) string
- func (client *MessagingApiAPI) ValidateBroadcast(validateMessageRequest *ValidateMessageRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateBroadcastWithHttpInfo(validateMessageRequest *ValidateMessageRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidateMulticast(validateMessageRequest *ValidateMessageRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateMulticastWithHttpInfo(validateMessageRequest *ValidateMessageRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidateNarrowcast(validateMessageRequest *ValidateMessageRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateNarrowcastWithHttpInfo(validateMessageRequest *ValidateMessageRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidatePush(validateMessageRequest *ValidateMessageRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidatePushWithHttpInfo(validateMessageRequest *ValidateMessageRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidateReply(validateMessageRequest *ValidateMessageRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateReplyWithHttpInfo(validateMessageRequest *ValidateMessageRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidateRichMenuBatchRequest(richMenuBatchRequest *RichMenuBatchRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateRichMenuBatchRequestWithHttpInfo(richMenuBatchRequest *RichMenuBatchRequest) (*http.Response, struct{}, error)
- func (client *MessagingApiAPI) ValidateRichMenuObject(richMenuRequest *RichMenuRequest) (struct{}, error)
- func (client *MessagingApiAPI) ValidateRichMenuObjectWithHttpInfo(richMenuRequest *RichMenuRequest) (*http.Response, struct{}, error)
- func (call *MessagingApiAPI) WithContext(ctx context.Context) *MessagingApiAPI
- type MessagingApiAPIOption
- type MessagingApiBlobAPI
- func (client *MessagingApiBlobAPI) Do(req *http.Request) (*http.Response, error)
- func (client *MessagingApiBlobAPI) GetMessageContent(messageId string) (*http.Response, error)
- func (client *MessagingApiBlobAPI) GetMessageContentPreview(messageId string) (*http.Response, error)
- func (client *MessagingApiBlobAPI) GetMessageContentPreviewWithHttpInfo(messageId string) (*http.Response, *http.Response, error)
- func (client *MessagingApiBlobAPI) GetMessageContentTranscodingByMessageId(messageId string) (*GetMessageContentTranscodingResponse, error)
- func (client *MessagingApiBlobAPI) GetMessageContentTranscodingByMessageIdWithHttpInfo(messageId string) (*http.Response, *GetMessageContentTranscodingResponse, error)
- func (client *MessagingApiBlobAPI) GetMessageContentWithHttpInfo(messageId string) (*http.Response, *http.Response, error)
- func (client *MessagingApiBlobAPI) GetRichMenuImage(richMenuId string) (*http.Response, error)
- func (client *MessagingApiBlobAPI) GetRichMenuImageWithHttpInfo(richMenuId string) (*http.Response, *http.Response, error)
- func (client *MessagingApiBlobAPI) SetRichMenuImage(richMenuId string, bodyContentType string, bodyReader io.Reader) (struct{}, error)
- func (client *MessagingApiBlobAPI) SetRichMenuImageWithHttpInfo(richMenuId string, bodyContentType string, bodyReader io.Reader) (*http.Response, struct{}, error)
- func (client *MessagingApiBlobAPI) Url(endpointPath string) string
- func (call *MessagingApiBlobAPI) WithContext(ctx context.Context) *MessagingApiBlobAPI
- type MessagingApiBlobAPIOption
- type MulticastRequest
- type NarrowcastProgressResponse
- type NarrowcastProgressResponsePHASE
- type NarrowcastRequest
- type NumberOfMessagesResponse
- type NumberOfMessagesResponseSTATUS
- type OperatorDemographicFilter
- type OperatorRecipient
- type PnpMessagesRequest
- type PostbackAction
- type PostbackActionINPUT_OPTION
- type PushMessageRequest
- type PushMessageResponse
- type QuickReply
- type QuickReplyItem
- type QuotaConsumptionResponse
- type QuotaType
- type Recipient
- type RecipientInterface
- type RedeliveryRecipient
- type ReplyMessageRequest
- type ReplyMessageResponse
- type RichMenuAliasListResponse
- type RichMenuAliasResponse
- type RichMenuArea
- type RichMenuBatchLinkOperation
- type RichMenuBatchOperation
- type RichMenuBatchOperationInterface
- type RichMenuBatchProgressPhase
- type RichMenuBatchProgressResponse
- type RichMenuBatchRequest
- type RichMenuBatchUnlinkAllOperation
- type RichMenuBatchUnlinkOperation
- type RichMenuBounds
- type RichMenuBulkLinkRequest
- type RichMenuBulkUnlinkRequest
- type RichMenuIdResponse
- type RichMenuListResponse
- type RichMenuRequest
- type RichMenuResponse
- type RichMenuSize
- type RichMenuSwitchAction
- type RoomMemberCountResponse
- type RoomUserProfileResponse
- type Sender
- type SentMessage
- type SetWebhookEndpointRequest
- type ShowLoadingAnimationRequest
- type StickerMessage
- type SubscribedMembershipPlan
- type SubscribedMembershipPlanCURRENCY
- type SubscribedMembershipUser
- type Subscription
- type SubscriptionPeriodDemographic
- type SubscriptionPeriodDemographicFilter
- type Template
- type TemplateImageAspectRatio
- type TemplateImageSize
- type TemplateInterface
- type TemplateMessage
- type TestWebhookEndpointRequest
- type TestWebhookEndpointResponse
- type TextMessage
- type UnknownAction
- type UnknownDemographicFilter
- type UnknownFlexBoxBackground
- type UnknownFlexComponent
- type UnknownFlexContainer
- type UnknownImagemapAction
- type UnknownMessage
- type UnknownRecipient
- type UnknownRichMenuBatchOperation
- type UnknownTemplate
- type UpdateRichMenuAliasRequest
- type UriAction
- type UriImagemapAction
- type UserProfileResponse
- type ValidateMessageRequest
- type VideoMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInterface ¶
type ActionInterface interface {
GetType() string
}
func UnmarshalAction ¶
func UnmarshalAction(data []byte) (ActionInterface, error)
type AgeDemographic ¶
type AgeDemographic string
AgeDemographic type
const ( AgeDemographic__15 AgeDemographic = "age_15" AgeDemographic__20 AgeDemographic = "age_20" AgeDemographic__25 AgeDemographic = "age_25" AgeDemographic__30 AgeDemographic = "age_30" AgeDemographic__35 AgeDemographic = "age_35" AgeDemographic__40 AgeDemographic = "age_40" AgeDemographic__45 AgeDemographic = "age_45" AgeDemographic__50 AgeDemographic = "age_50" )
AgeDemographic constants
type AgeDemographicFilter ¶
type AgeDemographicFilter struct { DemographicFilter /** * Get Gte */ Gte AgeDemographic `json:"gte,omitempty"` /** * Get Lt */ Lt AgeDemographic `json:"lt,omitempty"` }
func (*AgeDemographicFilter) MarshalJSON ¶
func (r *AgeDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AgeDemographicFilter struct.
type AppTypeDemographic ¶
type AppTypeDemographic string
AppTypeDemographic type
const ( AppTypeDemographic_IOS AppTypeDemographic = "ios" AppTypeDemographic_ANDROID AppTypeDemographic = "android" )
AppTypeDemographic constants
type AppTypeDemographicFilter ¶
type AppTypeDemographicFilter struct { DemographicFilter /** * Get OneOf */ OneOf []AppTypeDemographic `json:"oneOf,omitempty"` }
func (*AppTypeDemographicFilter) MarshalJSON ¶
func (r *AppTypeDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AppTypeDemographicFilter struct.
type AreaDemographic ¶
type AreaDemographic string
AreaDemographic type
const ( AreaDemographic_HOKKAIDO AreaDemographic = "jp_01" AreaDemographic_AOMORI AreaDemographic = "jp_02" AreaDemographic_IWATE AreaDemographic = "jp_03" AreaDemographic_MIYAGI AreaDemographic = "jp_04" AreaDemographic_AKITA AreaDemographic = "jp_05" AreaDemographic_YAMAGATA AreaDemographic = "jp_06" AreaDemographic_FUKUSHIMA AreaDemographic = "jp_07" AreaDemographic_IBARAKI AreaDemographic = "jp_08" AreaDemographic_TOCHIGI AreaDemographic = "jp_09" AreaDemographic_GUNMA AreaDemographic = "jp_10" AreaDemographic_SAITAMA AreaDemographic = "jp_11" AreaDemographic_CHIBA AreaDemographic = "jp_12" AreaDemographic_TOKYO AreaDemographic = "jp_13" AreaDemographic_KANAGAWA AreaDemographic = "jp_14" AreaDemographic_NIIGATA AreaDemographic = "jp_15" AreaDemographic_TOYAMA AreaDemographic = "jp_16" AreaDemographic_ISHIKAWA AreaDemographic = "jp_17" AreaDemographic_FUKUI AreaDemographic = "jp_18" AreaDemographic_YAMANASHI AreaDemographic = "jp_19" AreaDemographic_NAGANO AreaDemographic = "jp_20" AreaDemographic_GIFU AreaDemographic = "jp_21" AreaDemographic_SHIZUOKA AreaDemographic = "jp_22" AreaDemographic_AICHI AreaDemographic = "jp_23" AreaDemographic_MIE AreaDemographic = "jp_24" AreaDemographic_SHIGA AreaDemographic = "jp_25" AreaDemographic_KYOTO AreaDemographic = "jp_26" AreaDemographic_OSAKA AreaDemographic = "jp_27" AreaDemographic_HYOUGO AreaDemographic = "jp_28" AreaDemographic_NARA AreaDemographic = "jp_29" AreaDemographic_WAKAYAMA AreaDemographic = "jp_30" AreaDemographic_TOTTORI AreaDemographic = "jp_31" AreaDemographic_SHIMANE AreaDemographic = "jp_32" AreaDemographic_OKAYAMA AreaDemographic = "jp_33" AreaDemographic_HIROSHIMA AreaDemographic = "jp_34" AreaDemographic_YAMAGUCHI AreaDemographic = "jp_35" AreaDemographic_TOKUSHIMA AreaDemographic = "jp_36" AreaDemographic_KAGAWA AreaDemographic = "jp_37" AreaDemographic_EHIME AreaDemographic = "jp_38" AreaDemographic_KOUCHI AreaDemographic = "jp_39" AreaDemographic_FUKUOKA AreaDemographic = "jp_40" AreaDemographic_SAGA AreaDemographic = "jp_41" AreaDemographic_NAGASAKI AreaDemographic = "jp_42" AreaDemographic_KUMAMOTO AreaDemographic = "jp_43" AreaDemographic_OITA AreaDemographic = "jp_44" AreaDemographic_MIYAZAKI AreaDemographic = "jp_45" AreaDemographic_KAGOSHIMA AreaDemographic = "jp_46" AreaDemographic_OKINAWA AreaDemographic = "jp_47" AreaDemographic_TAIPEI_CITY AreaDemographic = "tw_01" AreaDemographic_NEW_TAIPEI_CITY AreaDemographic = "tw_02" AreaDemographic_TAOYUAN_CITY AreaDemographic = "tw_03" AreaDemographic_TAICHUNG_CITY AreaDemographic = "tw_04" AreaDemographic_TAINAN_CITY AreaDemographic = "tw_05" AreaDemographic_KAOHSIUNG_CITY AreaDemographic = "tw_06" AreaDemographic_KEELUNG_CITY AreaDemographic = "tw_07" AreaDemographic_HSINCHU_CITY AreaDemographic = "tw_08" AreaDemographic_CHIAYI_CITY AreaDemographic = "tw_09" AreaDemographic_HSINCHU_COUNTY AreaDemographic = "tw_10" AreaDemographic_MIAOLI_COUNTY AreaDemographic = "tw_11" AreaDemographic_CHANGHUA_COUNTY AreaDemographic = "tw_12" AreaDemographic_NANTOU_COUNTY AreaDemographic = "tw_13" AreaDemographic_YUNLIN_COUNTY AreaDemographic = "tw_14" AreaDemographic_CHIAYI_COUNTY AreaDemographic = "tw_15" AreaDemographic_PINGTUNG_COUNTY AreaDemographic = "tw_16" AreaDemographic_YILAN_COUNTY AreaDemographic = "tw_17" AreaDemographic_HUALIEN_COUNTY AreaDemographic = "tw_18" AreaDemographic_TAITUNG_COUNTY AreaDemographic = "tw_19" AreaDemographic_PENGHU_COUNTY AreaDemographic = "tw_20" AreaDemographic_KINMEN_COUNTY AreaDemographic = "tw_21" AreaDemographic_LIENCHIANG_COUNTY AreaDemographic = "tw_22" AreaDemographic_BANGKOK AreaDemographic = "th_01" AreaDemographic_PATTAYA AreaDemographic = "th_02" AreaDemographic_NORTHERN AreaDemographic = "th_03" AreaDemographic_CENTRAL AreaDemographic = "th_04" AreaDemographic_SOUTHERN AreaDemographic = "th_05" AreaDemographic_EASTERN AreaDemographic = "th_06" AreaDemographic_NORTHEASTERN AreaDemographic = "th_07" AreaDemographic_WESTERN AreaDemographic = "th_08" AreaDemographic_BALI AreaDemographic = "id_01" AreaDemographic_BANDUNG AreaDemographic = "id_02" AreaDemographic_BANJARMASIN AreaDemographic = "id_03" AreaDemographic_JABODETABEK AreaDemographic = "id_04" AreaDemographic_MAKASSAR AreaDemographic = "id_05" AreaDemographic_MEDAN AreaDemographic = "id_06" AreaDemographic_PALEMBANG AreaDemographic = "id_07" AreaDemographic_SAMARINDA AreaDemographic = "id_08" AreaDemographic_SEMARANG AreaDemographic = "id_09" AreaDemographic_SURABAYA AreaDemographic = "id_10" AreaDemographic_YOGYAKARTA AreaDemographic = "id_11" AreaDemographic_LAINNYA AreaDemographic = "id_12" )
AreaDemographic constants
type AreaDemographicFilter ¶
type AreaDemographicFilter struct { DemographicFilter /** * Get OneOf */ OneOf []AreaDemographic `json:"oneOf,omitempty"` }
func (*AreaDemographicFilter) MarshalJSON ¶
func (r *AreaDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AreaDemographicFilter struct.
type AudienceMatchMessagesRequest ¶
type AudienceMatchMessagesRequest struct { /** * Destination of the message (A value obtained by hashing the telephone number, which is another value normalized to E.164 format, with SHA256). (Required) */ Messages []MessageInterface `json:"messages"` /** * Message to send. (Required) */ To []string `json:"to"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` }
AudienceMatchMessagesRequest AudienceMatchMessagesRequest https://developers.line.biz/en/reference/partner-docs/#phone-audience-match
func (*AudienceMatchMessagesRequest) MarshalJSON ¶
func (r *AudienceMatchMessagesRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AudienceMatchMessagesRequest struct.
func (*AudienceMatchMessagesRequest) UnmarshalJSON ¶
func (cr *AudienceMatchMessagesRequest) UnmarshalJSON(data []byte) error
type AudienceRecipient ¶
type AudienceRecipient struct { Recipient /** * Get AudienceGroupId */ AudienceGroupId int64 `json:"audienceGroupId"` }
func (*AudienceRecipient) MarshalJSON ¶
func (r *AudienceRecipient) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AudienceRecipient struct.
type AudioMessage ¶
type AudioMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get OriginalContentUrl */ OriginalContentUrl string `json:"originalContentUrl"` /** * Get Duration */ Duration int64 `json:"duration"` }
AudioMessage AudioMessage https://developers.line.biz/en/reference/messaging-api/#audio-message
func (*AudioMessage) MarshalJSON ¶
func (r *AudioMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the AudioMessage struct.
type BotInfoResponse ¶
type BotInfoResponse struct { /** * Bot's user ID (Required) */ UserId string `json:"userId"` /** * Bot's basic ID (Required) */ BasicId string `json:"basicId"` /** * Bot's premium ID. Not included in the response if the premium ID isn't set. */ PremiumId string `json:"premiumId,omitempty"` /** * Bot's display name (Required) */ DisplayName string `json:"displayName"` /** * Profile image URL. `https` image URL. Not included in the response if the bot doesn't have a profile image. */ PictureUrl string `json:"pictureUrl,omitempty"` /** * Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\". (Required) */ ChatMode BotInfoResponseCHAT_MODE `json:"chatMode"` /** * Automatic read setting for messages. If the chat is set to \"Off\", auto is returned. If the chat is set to \"On\", manual is returned. `auto`: Auto read setting is enabled. `manual`: Auto read setting is disabled. (Required) */ MarkAsReadMode BotInfoResponseMARK_AS_READ_MODE `json:"markAsReadMode"` }
BotInfoResponse BotInfoResponse https://developers.line.biz/en/reference/messaging-api/#get-bot-info
type BotInfoResponseCHAT_MODE ¶
type BotInfoResponseCHAT_MODE string
BotInfoResponseCHAT_MODE type
Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\".
const ( BotInfoResponseCHAT_MODE_CHAT BotInfoResponseCHAT_MODE = "chat" BotInfoResponseCHAT_MODE_BOT BotInfoResponseCHAT_MODE = "bot" )
BotInfoResponseCHAT_MODE constants
type BotInfoResponseMARK_AS_READ_MODE ¶
type BotInfoResponseMARK_AS_READ_MODE string
BotInfoResponseMARK_AS_READ_MODE type
Automatic read setting for messages. If the chat is set to \"Off\", auto is returned. If the chat is set to \"On\", manual is returned. `auto`: Auto read setting is enabled. `manual`: Auto read setting is disabled.
const ( BotInfoResponseMARK_AS_READ_MODE_AUTO BotInfoResponseMARK_AS_READ_MODE = "auto" BotInfoResponseMARK_AS_READ_MODE_MANUAL BotInfoResponseMARK_AS_READ_MODE = "manual" )
BotInfoResponseMARK_AS_READ_MODE constants
type BroadcastRequest ¶
type BroadcastRequest struct { /** * List of Message objects. (Required) */ Messages []MessageInterface `json:"messages"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` }
BroadcastRequest BroadcastRequest https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message
func (*BroadcastRequest) MarshalJSON ¶
func (r *BroadcastRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the BroadcastRequest struct.
func (*BroadcastRequest) UnmarshalJSON ¶
func (cr *BroadcastRequest) UnmarshalJSON(data []byte) error
type ButtonsTemplate ¶
type ButtonsTemplate struct { Template /** * Get ThumbnailImageUrl */ ThumbnailImageUrl string `json:"thumbnailImageUrl,omitempty"` /** * Get ImageAspectRatio */ ImageAspectRatio string `json:"imageAspectRatio,omitempty"` /** * Get ImageSize */ ImageSize string `json:"imageSize,omitempty"` /** * Get ImageBackgroundColor */ ImageBackgroundColor string `json:"imageBackgroundColor,omitempty"` /** * Get Title */ Title string `json:"title,omitempty"` /** * Get Text */ Text string `json:"text"` /** * Get DefaultAction */ DefaultAction ActionInterface `json:"defaultAction,omitempty"` /** * Get Actions */ Actions []ActionInterface `json:"actions"` }
func (*ButtonsTemplate) MarshalJSON ¶
func (r *ButtonsTemplate) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ButtonsTemplate struct.
func (*ButtonsTemplate) UnmarshalJSON ¶
func (cr *ButtonsTemplate) UnmarshalJSON(data []byte) error
type CameraAction ¶
type CameraAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` }
func (*CameraAction) MarshalJSON ¶
func (r *CameraAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the CameraAction struct.
type CameraRollAction ¶
type CameraRollAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` }
func (*CameraRollAction) MarshalJSON ¶
func (r *CameraRollAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the CameraRollAction struct.
type CarouselColumn ¶
type CarouselColumn struct { /** * Get ThumbnailImageUrl */ ThumbnailImageUrl string `json:"thumbnailImageUrl,omitempty"` /** * Get ImageBackgroundColor */ ImageBackgroundColor string `json:"imageBackgroundColor,omitempty"` /** * Get Title */ Title string `json:"title,omitempty"` /** * Get Text */ Text string `json:"text"` /** * Get DefaultAction */ DefaultAction ActionInterface `json:"defaultAction,omitempty"` /** * Get Actions */ Actions []ActionInterface `json:"actions"` }
func (*CarouselColumn) MarshalJSON ¶
func (r *CarouselColumn) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the CarouselColumn struct.
func (*CarouselColumn) UnmarshalJSON ¶
func (cr *CarouselColumn) UnmarshalJSON(data []byte) error
type CarouselTemplate ¶
type CarouselTemplate struct { Template /** * Get Columns */ Columns []CarouselColumn `json:"columns"` /** * Get ImageAspectRatio */ ImageAspectRatio string `json:"imageAspectRatio,omitempty"` /** * Get ImageSize */ ImageSize string `json:"imageSize,omitempty"` }
func (*CarouselTemplate) MarshalJSON ¶
func (r *CarouselTemplate) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the CarouselTemplate struct.
type ChatReference ¶
type ChatReference struct { /** * The target user ID (Required) */ UserId string `json:"userId"` }
ChatReference Chat reference https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
type ClipboardAction ¶ added in v8.3.1
type ClipboardAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Text that is copied to the clipboard. Max character limit: 1000 (Required) */ ClipboardText string `json:"clipboardText"` }
ClipboardAction ClipboardAction https://developers.line.biz/en/reference/messaging-api/#clipboard-action
func (*ClipboardAction) MarshalJSON ¶ added in v8.3.1
func (r *ClipboardAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ClipboardAction struct.
type ClipboardImagemapAction ¶ added in v8.3.1
type ClipboardImagemapAction struct { ImagemapAction /** * Get Area */ Area *ImagemapArea `json:"area"` /** * Text that is copied to the clipboard. Max character limit: 1000 (Required) */ ClipboardText string `json:"clipboardText"` /** * Get Label */ Label string `json:"label,omitempty"` }
ClipboardImagemapAction ClipboardImagemapAction https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object
func (*ClipboardImagemapAction) MarshalJSON ¶ added in v8.3.1
func (r *ClipboardImagemapAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ClipboardImagemapAction struct.
type ConfirmTemplate ¶
type ConfirmTemplate struct { Template /** * Get Text */ Text string `json:"text"` /** * Get Actions */ Actions []ActionInterface `json:"actions"` }
func (*ConfirmTemplate) MarshalJSON ¶
func (r *ConfirmTemplate) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ConfirmTemplate struct.
func (*ConfirmTemplate) UnmarshalJSON ¶
func (cr *ConfirmTemplate) UnmarshalJSON(data []byte) error
type CreateRichMenuAliasRequest ¶
type CreateRichMenuAliasRequest struct { /** * Rich menu alias ID, which can be any ID, unique for each channel. (Required) */ RichMenuAliasId string `json:"richMenuAliasId"` /** * The rich menu ID to be associated with the rich menu alias. (Required) */ RichMenuId string `json:"richMenuId"` }
CreateRichMenuAliasRequest CreateRichMenuAliasRequest https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias
type DatetimePickerAction ¶
type DatetimePickerAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Get Data */ Data string `json:"data,omitempty"` /** * Get Mode */ Mode DatetimePickerActionMODE `json:"mode,omitempty"` /** * Get Initial */ Initial string `json:"initial,omitempty"` /** * Get Max */ Max string `json:"max,omitempty"` /** * Get Min */ Min string `json:"min,omitempty"` }
DatetimePickerAction DatetimePickerAction https://developers.line.biz/en/reference/messaging-api/#datetime-picker-action
func (*DatetimePickerAction) MarshalJSON ¶
func (r *DatetimePickerAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the DatetimePickerAction struct.
type DatetimePickerActionMODE ¶
type DatetimePickerActionMODE string
const ( DatetimePickerActionMODE_DATE DatetimePickerActionMODE = "date" DatetimePickerActionMODE_TIME DatetimePickerActionMODE = "time" DatetimePickerActionMODE_DATETIME DatetimePickerActionMODE = "datetime" )
DatetimePickerActionMODE constants
type DemographicFilter ¶
type DemographicFilter struct {
Type string `json:"type,omitempty"`
}
func (DemographicFilter) GetType ¶
func (e DemographicFilter) GetType() string
type DemographicFilterInterface ¶
type DemographicFilterInterface interface {
GetType() string
}
func UnmarshalDemographicFilter ¶
func UnmarshalDemographicFilter(data []byte) (DemographicFilterInterface, error)
type ErrorDetail ¶
type ErrorDetail struct { /** * Details of the error. Not included in the response under certain situations. */ Message string `json:"message,omitempty"` /** * Location of where the error occurred. Returns the JSON field name or query parameter name of the request. Not included in the response under certain situations. */ Property string `json:"property,omitempty"` }
type ErrorResponse ¶
type ErrorResponse struct { /** * Message containing information about the error. (Required) */ Message string `json:"message"` /** * An array of error details. If the array is empty, this property will not be included in the response. */ Details []ErrorDetail `json:"details,omitempty"` /** * Array of sent messages. */ SentMessages []SentMessage `json:"sentMessages,omitempty"` }
ErrorResponse ErrorResponse https://developers.line.biz/en/reference/messaging-api/#error-responses
type Filter ¶
type Filter struct { /** * Get Demographic */ Demographic DemographicFilterInterface `json:"demographic,omitempty"` }
func (*Filter) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the Filter struct.
func (*Filter) UnmarshalJSON ¶
type FlexBlockStyle ¶
type FlexBox ¶
type FlexBox struct { FlexComponent /** * Get Layout */ Layout FlexBoxLAYOUT `json:"layout"` /** * Get Flex */ Flex int32 `json:"flex"` /** * Get Contents */ Contents []FlexComponentInterface `json:"contents"` /** * Get Spacing */ Spacing string `json:"spacing,omitempty"` /** * Get Margin */ Margin string `json:"margin,omitempty"` /** * Get Position */ Position FlexBoxPOSITION `json:"position,omitempty"` /** * Get OffsetTop */ OffsetTop string `json:"offsetTop,omitempty"` /** * Get OffsetBottom */ OffsetBottom string `json:"offsetBottom,omitempty"` /** * Get OffsetStart */ OffsetStart string `json:"offsetStart,omitempty"` /** * Get OffsetEnd */ OffsetEnd string `json:"offsetEnd,omitempty"` /** * Get BackgroundColor */ BackgroundColor string `json:"backgroundColor,omitempty"` /** * Get BorderColor */ BorderColor string `json:"borderColor,omitempty"` /** * Get BorderWidth */ BorderWidth string `json:"borderWidth,omitempty"` /** * Get CornerRadius */ CornerRadius string `json:"cornerRadius,omitempty"` /** * Get Width */ Width string `json:"width,omitempty"` /** * Get MaxWidth */ MaxWidth string `json:"maxWidth,omitempty"` /** * Get Height */ Height string `json:"height,omitempty"` /** * Get MaxHeight */ MaxHeight string `json:"maxHeight,omitempty"` /** * Get PaddingAll */ PaddingAll string `json:"paddingAll,omitempty"` /** * Get PaddingTop */ PaddingTop string `json:"paddingTop,omitempty"` /** * Get PaddingBottom */ PaddingBottom string `json:"paddingBottom,omitempty"` /** * Get PaddingStart */ PaddingStart string `json:"paddingStart,omitempty"` /** * Get PaddingEnd */ PaddingEnd string `json:"paddingEnd,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` /** * Get JustifyContent */ JustifyContent FlexBoxJUSTIFY_CONTENT `json:"justifyContent,omitempty"` /** * Get AlignItems */ AlignItems FlexBoxALIGN_ITEMS `json:"alignItems,omitempty"` /** * Get Background */ Background FlexBoxBackgroundInterface `json:"background,omitempty"` }
func (*FlexBox) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexBox struct.
func (*FlexBox) UnmarshalJSON ¶
type FlexBoxALIGN_ITEMS ¶
type FlexBoxALIGN_ITEMS string
const ( FlexBoxALIGN_ITEMS_CENTER FlexBoxALIGN_ITEMS = "center" FlexBoxALIGN_ITEMS_FLEX_START FlexBoxALIGN_ITEMS = "flex-start" FlexBoxALIGN_ITEMS_FLEX_END FlexBoxALIGN_ITEMS = "flex-end" )
FlexBoxALIGN_ITEMS constants
type FlexBoxBackground ¶
type FlexBoxBackground struct {
Type string `json:"type"`
}
func (FlexBoxBackground) GetType ¶
func (e FlexBoxBackground) GetType() string
type FlexBoxBackgroundInterface ¶
type FlexBoxBackgroundInterface interface {
GetType() string
}
func UnmarshalFlexBoxBackground ¶
func UnmarshalFlexBoxBackground(data []byte) (FlexBoxBackgroundInterface, error)
type FlexBoxBorderWidth ¶ added in v8.2.0
type FlexBoxBorderWidth string
FlexBoxBorderWidth type
const ( FlexBoxBorderWidth_NONE FlexBoxBorderWidth = "none" FlexBoxBorderWidth_LIGHT FlexBoxBorderWidth = "light" FlexBoxBorderWidth_NORMAL FlexBoxBorderWidth = "normal" FlexBoxBorderWidth_MEDIUM FlexBoxBorderWidth = "medium" FlexBoxBorderWidth_SEMI_BOLD FlexBoxBorderWidth = "semi-bold" FlexBoxBorderWidth_BOLD FlexBoxBorderWidth = "bold" )
FlexBoxBorderWidth constants
type FlexBoxCornerRadius ¶ added in v8.2.0
type FlexBoxCornerRadius string
FlexBoxCornerRadius type
const ( FlexBoxCornerRadius_NONE FlexBoxCornerRadius = "none" FlexBoxCornerRadius_XS FlexBoxCornerRadius = "xs" FlexBoxCornerRadius_SM FlexBoxCornerRadius = "sm" FlexBoxCornerRadius_MD FlexBoxCornerRadius = "md" FlexBoxCornerRadius_LG FlexBoxCornerRadius = "lg" FlexBoxCornerRadius_XL FlexBoxCornerRadius = "xl" FlexBoxCornerRadius_XXL FlexBoxCornerRadius = "xxl" )
FlexBoxCornerRadius constants
type FlexBoxJUSTIFY_CONTENT ¶
type FlexBoxJUSTIFY_CONTENT string
const ( FlexBoxJUSTIFY_CONTENT_CENTER FlexBoxJUSTIFY_CONTENT = "center" FlexBoxJUSTIFY_CONTENT_FLEX_START FlexBoxJUSTIFY_CONTENT = "flex-start" FlexBoxJUSTIFY_CONTENT_FLEX_END FlexBoxJUSTIFY_CONTENT = "flex-end" FlexBoxJUSTIFY_CONTENT_SPACE_BETWEEN FlexBoxJUSTIFY_CONTENT = "space-between" FlexBoxJUSTIFY_CONTENT_SPACE_AROUND FlexBoxJUSTIFY_CONTENT = "space-around" FlexBoxJUSTIFY_CONTENT_SPACE_EVENLY FlexBoxJUSTIFY_CONTENT = "space-evenly" )
FlexBoxJUSTIFY_CONTENT constants
type FlexBoxLAYOUT ¶
type FlexBoxLAYOUT string
const ( FlexBoxLAYOUT_HORIZONTAL FlexBoxLAYOUT = "horizontal" FlexBoxLAYOUT_VERTICAL FlexBoxLAYOUT = "vertical" FlexBoxLAYOUT_BASELINE FlexBoxLAYOUT = "baseline" )
FlexBoxLAYOUT constants
type FlexBoxLinearGradient ¶
type FlexBoxLinearGradient struct { FlexBoxBackground /** * Get Angle */ Angle string `json:"angle,omitempty"` /** * Get StartColor */ StartColor string `json:"startColor,omitempty"` /** * Get EndColor */ EndColor string `json:"endColor,omitempty"` /** * Get CenterColor */ CenterColor string `json:"centerColor,omitempty"` /** * Get CenterPosition */ CenterPosition string `json:"centerPosition,omitempty"` }
func (*FlexBoxLinearGradient) MarshalJSON ¶
func (r *FlexBoxLinearGradient) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexBoxLinearGradient struct.
type FlexBoxPOSITION ¶
type FlexBoxPOSITION string
const ( FlexBoxPOSITION_RELATIVE FlexBoxPOSITION = "relative" FlexBoxPOSITION_ABSOLUTE FlexBoxPOSITION = "absolute" )
FlexBoxPOSITION constants
type FlexBoxPadding ¶ added in v8.2.0
type FlexBoxPadding string
FlexBoxPadding type
const ( FlexBoxPadding_NONE FlexBoxPadding = "none" FlexBoxPadding_XS FlexBoxPadding = "xs" FlexBoxPadding_SM FlexBoxPadding = "sm" FlexBoxPadding_MD FlexBoxPadding = "md" FlexBoxPadding_LG FlexBoxPadding = "lg" FlexBoxPadding_XL FlexBoxPadding = "xl" FlexBoxPadding_XXL FlexBoxPadding = "xxl" )
FlexBoxPadding constants
type FlexBoxSpacing ¶ added in v8.2.0
type FlexBoxSpacing string
FlexBoxSpacing type
const ( FlexBoxSpacing_NONE FlexBoxSpacing = "none" FlexBoxSpacing_XS FlexBoxSpacing = "xs" FlexBoxSpacing_SM FlexBoxSpacing = "sm" FlexBoxSpacing_MD FlexBoxSpacing = "md" FlexBoxSpacing_LG FlexBoxSpacing = "lg" FlexBoxSpacing_XL FlexBoxSpacing = "xl" FlexBoxSpacing_XXL FlexBoxSpacing = "xxl" )
FlexBoxSpacing constants
type FlexBubble ¶
type FlexBubble struct { FlexContainer /** * Get Direction */ Direction FlexBubbleDIRECTION `json:"direction,omitempty"` /** * Get Styles */ Styles *FlexBubbleStyles `json:"styles,omitempty"` /** * Get Header */ Header *FlexBox `json:"header,omitempty"` /** * Get Hero */ Hero FlexComponentInterface `json:"hero,omitempty"` /** * Get Body */ Body *FlexBox `json:"body,omitempty"` Footer *FlexBox `json:"footer,omitempty"` /** * Get Size */ Size FlexBubbleSIZE `json:"size,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` }
func (*FlexBubble) MarshalJSON ¶
func (r *FlexBubble) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexBubble struct.
func (*FlexBubble) UnmarshalJSON ¶
func (cr *FlexBubble) UnmarshalJSON(data []byte) error
type FlexBubbleDIRECTION ¶
type FlexBubbleDIRECTION string
const ( FlexBubbleDIRECTION_LTR FlexBubbleDIRECTION = "ltr" FlexBubbleDIRECTION_RTL FlexBubbleDIRECTION = "rtl" )
FlexBubbleDIRECTION constants
type FlexBubbleSIZE ¶
type FlexBubbleSIZE string
const ( FlexBubbleSIZE_NANO FlexBubbleSIZE = "nano" FlexBubbleSIZE_MICRO FlexBubbleSIZE = "micro" FlexBubbleSIZE_DECA FlexBubbleSIZE = "deca" FlexBubbleSIZE_HECTO FlexBubbleSIZE = "hecto" FlexBubbleSIZE_KILO FlexBubbleSIZE = "kilo" FlexBubbleSIZE_MEGA FlexBubbleSIZE = "mega" FlexBubbleSIZE_GIGA FlexBubbleSIZE = "giga" )
FlexBubbleSIZE constants
type FlexBubbleStyles ¶
type FlexBubbleStyles struct { /** * Get Header */ Header *FlexBlockStyle `json:"header,omitempty"` /** * Get Hero */ Hero *FlexBlockStyle `json:"hero,omitempty"` /** * Get Body */ Body *FlexBlockStyle `json:"body,omitempty"` Footer *FlexBlockStyle `json:"footer,omitempty"` }
type FlexButton ¶
type FlexButton struct { FlexComponent /** * Get Flex */ Flex int32 `json:"flex"` /** * Get Color */ Color string `json:"color,omitempty"` /** * Get Style */ Style FlexButtonSTYLE `json:"style,omitempty"` /** * Get Action */ Action ActionInterface `json:"action"` /** * Get Gravity */ Gravity FlexButtonGRAVITY `json:"gravity,omitempty"` /** * Get Margin */ Margin string `json:"margin,omitempty"` /** * Get Position */ Position FlexButtonPOSITION `json:"position,omitempty"` /** * Get OffsetTop */ OffsetTop string `json:"offsetTop,omitempty"` /** * Get OffsetBottom */ OffsetBottom string `json:"offsetBottom,omitempty"` /** * Get OffsetStart */ OffsetStart string `json:"offsetStart,omitempty"` /** * Get OffsetEnd */ OffsetEnd string `json:"offsetEnd,omitempty"` /** * Get Height */ Height FlexButtonHEIGHT `json:"height,omitempty"` /** * Get AdjustMode */ AdjustMode FlexButtonADJUST_MODE `json:"adjustMode,omitempty"` /** * Get Scaling */ Scaling bool `json:"scaling"` }
func (*FlexButton) MarshalJSON ¶
func (r *FlexButton) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexButton struct.
func (*FlexButton) UnmarshalJSON ¶
func (cr *FlexButton) UnmarshalJSON(data []byte) error
type FlexButtonADJUST_MODE ¶
type FlexButtonADJUST_MODE string
const (
FlexButtonADJUST_MODE_SHRINK_TO_FIT FlexButtonADJUST_MODE = "shrink-to-fit"
)
FlexButtonADJUST_MODE constants
type FlexButtonGRAVITY ¶
type FlexButtonGRAVITY string
const ( FlexButtonGRAVITY_TOP FlexButtonGRAVITY = "top" FlexButtonGRAVITY_BOTTOM FlexButtonGRAVITY = "bottom" FlexButtonGRAVITY_CENTER FlexButtonGRAVITY = "center" )
FlexButtonGRAVITY constants
type FlexButtonHEIGHT ¶
type FlexButtonHEIGHT string
const ( FlexButtonHEIGHT_MD FlexButtonHEIGHT = "md" FlexButtonHEIGHT_SM FlexButtonHEIGHT = "sm" )
FlexButtonHEIGHT constants
type FlexButtonPOSITION ¶
type FlexButtonPOSITION string
const ( FlexButtonPOSITION_RELATIVE FlexButtonPOSITION = "relative" FlexButtonPOSITION_ABSOLUTE FlexButtonPOSITION = "absolute" )
FlexButtonPOSITION constants
type FlexButtonSTYLE ¶
type FlexButtonSTYLE string
const ( FlexButtonSTYLE_PRIMARY FlexButtonSTYLE = "primary" FlexButtonSTYLE_SECONDARY FlexButtonSTYLE = "secondary" FlexButtonSTYLE_LINK FlexButtonSTYLE = "link" )
FlexButtonSTYLE constants
type FlexCarousel ¶
type FlexCarousel struct { FlexContainer /** * Get Contents */ Contents []FlexBubble `json:"contents"` }
func (*FlexCarousel) MarshalJSON ¶
func (r *FlexCarousel) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexCarousel struct.
type FlexComponent ¶
type FlexComponent struct {
Type string `json:"type"`
}
func (FlexComponent) GetType ¶
func (e FlexComponent) GetType() string
type FlexComponentInterface ¶
type FlexComponentInterface interface {
GetType() string
}
func UnmarshalFlexComponent ¶
func UnmarshalFlexComponent(data []byte) (FlexComponentInterface, error)
type FlexContainer ¶
type FlexContainer struct {
Type string `json:"type"`
}
func (FlexContainer) GetType ¶
func (e FlexContainer) GetType() string
type FlexContainerInterface ¶
type FlexContainerInterface interface {
GetType() string
}
func UnmarshalFlexContainer ¶
func UnmarshalFlexContainer(data []byte) (FlexContainerInterface, error)
type FlexFiller ¶
type FlexFiller struct { FlexComponent /** * Get Flex */ Flex int32 `json:"flex"` }
func (*FlexFiller) MarshalJSON ¶
func (r *FlexFiller) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexFiller struct.
type FlexIcon ¶
type FlexIcon struct { FlexComponent /** * Get Url */ Url string `json:"url"` /** * Get Size */ Size string `json:"size,omitempty"` /** * Get AspectRatio */ AspectRatio string `json:"aspectRatio,omitempty"` /** * Get Margin */ Margin string `json:"margin,omitempty"` /** * Get Position */ Position FlexIconPOSITION `json:"position,omitempty"` /** * Get OffsetTop */ OffsetTop string `json:"offsetTop,omitempty"` /** * Get OffsetBottom */ OffsetBottom string `json:"offsetBottom,omitempty"` /** * Get OffsetStart */ OffsetStart string `json:"offsetStart,omitempty"` /** * Get OffsetEnd */ OffsetEnd string `json:"offsetEnd,omitempty"` /** * Get Scaling */ Scaling bool `json:"scaling"` }
FlexIcon FlexIcon https://developers.line.biz/en/reference/messaging-api/#icon
func (*FlexIcon) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexIcon struct.
type FlexIconPOSITION ¶
type FlexIconPOSITION string
const ( FlexIconPOSITION_RELATIVE FlexIconPOSITION = "relative" FlexIconPOSITION_ABSOLUTE FlexIconPOSITION = "absolute" )
FlexIconPOSITION constants
type FlexIconSize ¶ added in v8.2.0
type FlexIconSize string
FlexIconSize type
const ( FlexIconSize_XXS FlexIconSize = "xxs" FlexIconSize_XS FlexIconSize = "xs" FlexIconSize_SM FlexIconSize = "sm" FlexIconSize_MD FlexIconSize = "md" FlexIconSize_LG FlexIconSize = "lg" FlexIconSize_XL FlexIconSize = "xl" FlexIconSize_XXL FlexIconSize = "xxl" FlexIconSize__3XL FlexIconSize = "3xl" FlexIconSize__4XL FlexIconSize = "4xl" FlexIconSize__5XL FlexIconSize = "5xl" )
FlexIconSize constants
type FlexImage ¶
type FlexImage struct { FlexComponent /** * Image URL (Max character limit: 2000) Protocol: HTTPS (TLS 1.2 or later) Image format: JPEG or PNG Maximum image size: 1024×1024 pixels Maximum file size: 10 MB (300 KB when the animated property is true) (Required) */ Url string `json:"url"` /** * The ratio of the width or height of this component within the parent box. */ Flex int32 `json:"flex"` /** * The minimum amount of space to include before this component in its parent container. */ Margin string `json:"margin,omitempty"` /** * Reference for offsetTop, offsetBottom, offsetStart, and offsetEnd. Specify one of the following values: `relative`: Use the previous box as reference. `absolute`: Use the top left of parent element as reference. The default value is relative. */ Position FlexImagePOSITION `json:"position,omitempty"` /** * Offset. */ OffsetTop string `json:"offsetTop,omitempty"` /** * Offset. */ OffsetBottom string `json:"offsetBottom,omitempty"` /** * Offset. */ OffsetStart string `json:"offsetStart,omitempty"` /** * Offset. */ OffsetEnd string `json:"offsetEnd,omitempty"` /** * Alignment style in horizontal direction. */ Align FlexImageALIGN `json:"align,omitempty"` /** * Alignment style in vertical direction. */ Gravity FlexImageGRAVITY `json:"gravity,omitempty"` /** * The maximum image width. This is md by default. */ Size string `json:"size,omitempty"` /** * Aspect ratio of the image. `{width}:{height}` format. Specify the value of `{width}` and `{height}` in the range from `1` to `100000`. However, you cannot set `{height}` to a value that is more than three times the value of `{width}`. The default value is `1:1`. */ AspectRatio string `json:"aspectRatio,omitempty"` /** * The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match. */ AspectMode FlexImageASPECT_MODE `json:"aspectMode,omitempty"` /** * Background color of the image. Use a hexadecimal color code. */ BackgroundColor string `json:"backgroundColor,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` /** * When this is `true`, an animated image (APNG) plays. You can specify a value of true up to 10 images in a single message. You can't send messages that exceed this limit. This is `false` by default. Animated images larger than 300 KB aren't played back. */ Animated bool `json:"animated"` }
FlexImage FlexImage https://developers.line.biz/en/reference/messaging-api/#f-image
func (*FlexImage) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexImage struct.
func (*FlexImage) UnmarshalJSON ¶
type FlexImageALIGN ¶
type FlexImageALIGN string
FlexImageALIGN type
Alignment style in horizontal direction.
const ( FlexImageALIGN_START FlexImageALIGN = "start" FlexImageALIGN_END FlexImageALIGN = "end" FlexImageALIGN_CENTER FlexImageALIGN = "center" )
FlexImageALIGN constants
type FlexImageASPECT_MODE ¶
type FlexImageASPECT_MODE string
FlexImageASPECT_MODE type
The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match.
const ( FlexImageASPECT_MODE_FIT FlexImageASPECT_MODE = "fit" FlexImageASPECT_MODE_COVER FlexImageASPECT_MODE = "cover" )
FlexImageASPECT_MODE constants
type FlexImageGRAVITY ¶
type FlexImageGRAVITY string
FlexImageGRAVITY type
Alignment style in vertical direction.
const ( FlexImageGRAVITY_TOP FlexImageGRAVITY = "top" FlexImageGRAVITY_BOTTOM FlexImageGRAVITY = "bottom" FlexImageGRAVITY_CENTER FlexImageGRAVITY = "center" )
FlexImageGRAVITY constants
type FlexImagePOSITION ¶
type FlexImagePOSITION string
FlexImagePOSITION type
Reference for offsetTop, offsetBottom, offsetStart, and offsetEnd. Specify one of the following values: `relative`: Use the previous box as reference. `absolute`: Use the top left of parent element as reference. The default value is relative.
const ( FlexImagePOSITION_RELATIVE FlexImagePOSITION = "relative" FlexImagePOSITION_ABSOLUTE FlexImagePOSITION = "absolute" )
FlexImagePOSITION constants
type FlexImageSize ¶ added in v8.2.0
type FlexImageSize string
FlexImageSize type
const ( FlexImageSize_XXS FlexImageSize = "xxs" FlexImageSize_XS FlexImageSize = "xs" FlexImageSize_SM FlexImageSize = "sm" FlexImageSize_MD FlexImageSize = "md" FlexImageSize_LG FlexImageSize = "lg" FlexImageSize_XL FlexImageSize = "xl" FlexImageSize_XXL FlexImageSize = "xxl" FlexImageSize__3XL FlexImageSize = "3xl" FlexImageSize__4XL FlexImageSize = "4xl" FlexImageSize__5XL FlexImageSize = "5xl" FlexImageSize_FULL FlexImageSize = "full" )
FlexImageSize constants
type FlexMargin ¶ added in v8.2.0
type FlexMargin string
FlexMargin type
const ( FlexMargin_NONE FlexMargin = "none" FlexMargin_XS FlexMargin = "xs" FlexMargin_SM FlexMargin = "sm" FlexMargin_MD FlexMargin = "md" FlexMargin_LG FlexMargin = "lg" FlexMargin_XL FlexMargin = "xl" FlexMargin_XXL FlexMargin = "xxl" )
FlexMargin constants
type FlexMessage ¶
type FlexMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get AltText */ AltText string `json:"altText"` /** * Get Contents */ Contents FlexContainerInterface `json:"contents"` }
FlexMessage FlexMessage https://developers.line.biz/en/reference/messaging-api/#flex-message
func (*FlexMessage) MarshalJSON ¶
func (r *FlexMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexMessage struct.
func (*FlexMessage) UnmarshalJSON ¶
func (cr *FlexMessage) UnmarshalJSON(data []byte) error
type FlexOffset ¶ added in v8.2.0
type FlexOffset string
FlexOffset type
const ( FlexOffset_NONE FlexOffset = "none" FlexOffset_XS FlexOffset = "xs" FlexOffset_SM FlexOffset = "sm" FlexOffset_MD FlexOffset = "md" FlexOffset_LG FlexOffset = "lg" FlexOffset_XL FlexOffset = "xl" FlexOffset_XXL FlexOffset = "xxl" )
FlexOffset constants
type FlexSeparator ¶
type FlexSeparator struct { FlexComponent /** * Get Margin */ Margin string `json:"margin,omitempty"` /** * Get Color */ Color string `json:"color,omitempty"` }
func (*FlexSeparator) MarshalJSON ¶
func (r *FlexSeparator) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the FlexSeparator struct.
type FlexSpan ¶
type FlexSpan struct { FlexComponent /** * Get Text */ Text string `json:"text,omitempty"` /** * Get Size */ Size string `json:"size,omitempty"` /** * Get Color */ Color string `json:"color,omitempty"` /** * Get Weight */ Weight FlexSpanWEIGHT `json:"weight,omitempty"` /** * Get Style */ Style FlexSpanSTYLE `json:"style,omitempty"` /** * Get Decoration */ Decoration FlexSpanDECORATION `json:"decoration,omitempty"` }
func (*FlexSpan) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexSpan struct.
type FlexSpanDECORATION ¶
type FlexSpanDECORATION string
const ( FlexSpanDECORATION_NONE FlexSpanDECORATION = "none" FlexSpanDECORATION_UNDERLINE FlexSpanDECORATION = "underline" FlexSpanDECORATION_LINE_THROUGH FlexSpanDECORATION = "line-through" )
FlexSpanDECORATION constants
type FlexSpanSTYLE ¶
type FlexSpanSTYLE string
const ( FlexSpanSTYLE_NORMAL FlexSpanSTYLE = "normal" FlexSpanSTYLE_ITALIC FlexSpanSTYLE = "italic" )
FlexSpanSTYLE constants
type FlexSpanSize ¶ added in v8.2.0
type FlexSpanSize string
FlexSpanSize type
const ( FlexSpanSize_XXS FlexSpanSize = "xxs" FlexSpanSize_XS FlexSpanSize = "xs" FlexSpanSize_SM FlexSpanSize = "sm" FlexSpanSize_MD FlexSpanSize = "md" FlexSpanSize_LG FlexSpanSize = "lg" FlexSpanSize_XL FlexSpanSize = "xl" FlexSpanSize_XXL FlexSpanSize = "xxl" FlexSpanSize__3XL FlexSpanSize = "3xl" FlexSpanSize__4XL FlexSpanSize = "4xl" FlexSpanSize__5XL FlexSpanSize = "5xl" )
FlexSpanSize constants
type FlexSpanWEIGHT ¶
type FlexSpanWEIGHT string
const ( FlexSpanWEIGHT_REGULAR FlexSpanWEIGHT = "regular" FlexSpanWEIGHT_BOLD FlexSpanWEIGHT = "bold" )
FlexSpanWEIGHT constants
type FlexText ¶
type FlexText struct { FlexComponent /** * Get Flex */ Flex int32 `json:"flex"` /** * Get Text */ Text string `json:"text,omitempty"` /** * Get Size */ Size string `json:"size,omitempty"` /** * Get Align */ Align FlexTextALIGN `json:"align,omitempty"` /** * Get Gravity */ Gravity FlexTextGRAVITY `json:"gravity,omitempty"` /** * Get Color */ Color string `json:"color,omitempty"` /** * Get Weight */ Weight FlexTextWEIGHT `json:"weight,omitempty"` /** * Get Style */ Style FlexTextSTYLE `json:"style,omitempty"` /** * Get Decoration */ Decoration FlexTextDECORATION `json:"decoration,omitempty"` /** * Get Wrap */ Wrap bool `json:"wrap"` /** * Get LineSpacing */ LineSpacing string `json:"lineSpacing,omitempty"` /** * Get Margin */ Margin string `json:"margin,omitempty"` /** * Get Position */ Position FlexTextPOSITION `json:"position,omitempty"` /** * Get OffsetTop */ OffsetTop string `json:"offsetTop,omitempty"` /** * Get OffsetBottom */ OffsetBottom string `json:"offsetBottom,omitempty"` /** * Get OffsetStart */ OffsetStart string `json:"offsetStart,omitempty"` /** * Get OffsetEnd */ OffsetEnd string `json:"offsetEnd,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` /** * Get MaxLines */ MaxLines int32 `json:"maxLines"` /** * Get Contents */ Contents []FlexSpan `json:"contents,omitempty"` /** * Get AdjustMode */ AdjustMode FlexTextADJUST_MODE `json:"adjustMode,omitempty"` /** * Get Scaling */ Scaling bool `json:"scaling"` }
func (*FlexText) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexText struct.
func (*FlexText) UnmarshalJSON ¶
type FlexTextADJUST_MODE ¶
type FlexTextADJUST_MODE string
const (
FlexTextADJUST_MODE_SHRINK_TO_FIT FlexTextADJUST_MODE = "shrink-to-fit"
)
FlexTextADJUST_MODE constants
type FlexTextALIGN ¶
type FlexTextALIGN string
const ( FlexTextALIGN_START FlexTextALIGN = "start" FlexTextALIGN_END FlexTextALIGN = "end" FlexTextALIGN_CENTER FlexTextALIGN = "center" )
FlexTextALIGN constants
type FlexTextDECORATION ¶
type FlexTextDECORATION string
const ( FlexTextDECORATION_NONE FlexTextDECORATION = "none" FlexTextDECORATION_UNDERLINE FlexTextDECORATION = "underline" FlexTextDECORATION_LINE_THROUGH FlexTextDECORATION = "line-through" )
FlexTextDECORATION constants
type FlexTextFontSize ¶ added in v8.2.0
type FlexTextFontSize string
FlexTextFontSize type
const ( FlexTextFontSize_XXS FlexTextFontSize = "xxs" FlexTextFontSize_XS FlexTextFontSize = "xs" FlexTextFontSize_SM FlexTextFontSize = "sm" FlexTextFontSize_MD FlexTextFontSize = "md" FlexTextFontSize_LG FlexTextFontSize = "lg" FlexTextFontSize_XL FlexTextFontSize = "xl" FlexTextFontSize_XXL FlexTextFontSize = "xxl" FlexTextFontSize__3XL FlexTextFontSize = "3xl" FlexTextFontSize__4XL FlexTextFontSize = "4xl" FlexTextFontSize__5XL FlexTextFontSize = "5xl" )
FlexTextFontSize constants
type FlexTextGRAVITY ¶
type FlexTextGRAVITY string
const ( FlexTextGRAVITY_TOP FlexTextGRAVITY = "top" FlexTextGRAVITY_BOTTOM FlexTextGRAVITY = "bottom" FlexTextGRAVITY_CENTER FlexTextGRAVITY = "center" )
FlexTextGRAVITY constants
type FlexTextPOSITION ¶
type FlexTextPOSITION string
const ( FlexTextPOSITION_RELATIVE FlexTextPOSITION = "relative" FlexTextPOSITION_ABSOLUTE FlexTextPOSITION = "absolute" )
FlexTextPOSITION constants
type FlexTextSTYLE ¶
type FlexTextSTYLE string
const ( FlexTextSTYLE_NORMAL FlexTextSTYLE = "normal" FlexTextSTYLE_ITALIC FlexTextSTYLE = "italic" )
FlexTextSTYLE constants
type FlexTextWEIGHT ¶
type FlexTextWEIGHT string
const ( FlexTextWEIGHT_REGULAR FlexTextWEIGHT = "regular" FlexTextWEIGHT_BOLD FlexTextWEIGHT = "bold" )
FlexTextWEIGHT constants
type FlexVideo ¶
type FlexVideo struct { FlexComponent /** * Get Url */ Url string `json:"url"` /** * Get PreviewUrl */ PreviewUrl string `json:"previewUrl"` /** * Get AltContent */ AltContent FlexComponentInterface `json:"altContent"` /** * Get AspectRatio */ AspectRatio string `json:"aspectRatio,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` }
func (*FlexVideo) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the FlexVideo struct.
func (*FlexVideo) UnmarshalJSON ¶
type GenderDemographic ¶
type GenderDemographic string
GenderDemographic type
const ( GenderDemographic_MALE GenderDemographic = "male" GenderDemographic_FEMALE GenderDemographic = "female" )
GenderDemographic constants
type GenderDemographicFilter ¶
type GenderDemographicFilter struct { DemographicFilter /** * Get OneOf */ OneOf []GenderDemographic `json:"oneOf,omitempty"` }
func (*GenderDemographicFilter) MarshalJSON ¶
func (r *GenderDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the GenderDemographicFilter struct.
type GetAggregationUnitNameListResponse ¶
type GetAggregationUnitNameListResponse struct { /** * An array of strings indicating the names of aggregation units used this month. (Required) */ CustomAggregationUnits []string `json:"customAggregationUnits"` /** * A continuation token to get the next array of unit names. Returned only when there are remaining aggregation units that weren't returned in customAggregationUnits in the original request. */ Next string `json:"next,omitempty"` }
GetAggregationUnitNameListResponse GetAggregationUnitNameListResponse https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month
type GetAggregationUnitUsageResponse ¶
type GetAggregationUnitUsageResponse struct { /** * Number of aggregation units used this month. (Required) */ NumOfCustomAggregationUnits int64 `json:"numOfCustomAggregationUnits"` }
GetAggregationUnitUsageResponse GetAggregationUnitUsageResponse https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month
type GetFollowersResponse ¶
type GetFollowersResponse struct { /** * An array of strings indicating user IDs of users that have added the LINE Official Account as a friend. Only users of LINE for iOS and LINE for Android are included in `userIds`. (Required) */ UserIds []string `json:"userIds"` /** * A continuation token to get the next array of user IDs. Returned only when there are remaining user IDs that weren't returned in `userIds` in the original request. The number of user IDs in the `userIds` element doesn't have to reach the maximum number specified by `limit` for the `next` property to be included in the response. */ Next string `json:"next,omitempty"` }
GetFollowersResponse GetFollowersResponse https://developers.line.biz/en/reference/messaging-api/#get-follower-ids
type GetMembershipSubscriptionResponse ¶ added in v8.5.0
type GetMembershipSubscriptionResponse struct { /** * List of subscription information (Required) */ Subscriptions []Subscription `json:"subscriptions"` }
GetMembershipSubscriptionResponse A user's membership subscription status https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status
type GetMessageContentTranscodingResponse ¶
type GetMessageContentTranscodingResponse struct { /** * The preparation status. One of: `processing`: Preparing to get content. `succeeded`: Ready to get the content. You can get the content sent by users. `failed`: Failed to prepare to get the content. (Required) */ Status GetMessageContentTranscodingResponseSTATUS `json:"status"` }
GetMessageContentTranscodingResponse Transcoding response https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status
type GetMessageContentTranscodingResponseSTATUS ¶
type GetMessageContentTranscodingResponseSTATUS string
GetMessageContentTranscodingResponseSTATUS type
The preparation status. One of: `processing`: Preparing to get content. `succeeded`: Ready to get the content. You can get the content sent by users. `failed`: Failed to prepare to get the content.
const ( GetMessageContentTranscodingResponseSTATUS_PROCESSING GetMessageContentTranscodingResponseSTATUS = "processing" GetMessageContentTranscodingResponseSTATUS_SUCCEEDED GetMessageContentTranscodingResponseSTATUS = "succeeded" GetMessageContentTranscodingResponseSTATUS_FAILED GetMessageContentTranscodingResponseSTATUS = "failed" )
GetMessageContentTranscodingResponseSTATUS constants
type GetWebhookEndpointResponse ¶
type GetWebhookEndpointResponse struct { /** * Webhook URL (Required) */ Endpoint string `json:"endpoint"` /** * Webhook usage status. Send a webhook event from the LINE Platform to the webhook URL only if enabled. `true`: Webhook usage is enabled. `false`: Webhook usage is disabled. (Required) */ Active bool `json:"active"` }
GetWebhookEndpointResponse GetWebhookEndpointResponse https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information
type GroupMemberCountResponse ¶
type GroupMemberCountResponse struct { /** * The count of members in the group chat. The number returned excludes the LINE Official Account. (Required) */ Count int32 `json:"count"` }
GroupMemberCountResponse GroupMemberCountResponse https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
type GroupSummaryResponse ¶
type GroupSummaryResponse struct { /** * Group ID (Required) */ GroupId string `json:"groupId"` /** * Group name (Required) */ GroupName string `json:"groupName"` /** * Group icon URL. Not included in the response if the user doesn't set a group profile icon. */ PictureUrl string `json:"pictureUrl,omitempty"` }
GroupSummaryResponse GroupSummaryResponse https://developers.line.biz/en/reference/messaging-api/#get-group-summary
type GroupUserProfileResponse ¶
type GroupUserProfileResponse struct { /** * User's display name (Required) */ DisplayName string `json:"displayName"` /** * User ID (Required) */ UserId string `json:"userId"` /** * Profile image URL. `https` image URL. Not included in the response if the user doesn't have a profile image. */ PictureUrl string `json:"pictureUrl,omitempty"` }
GroupUserProfileResponse GroupUserProfileResponse https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
type ImageCarouselColumn ¶
type ImageCarouselColumn struct { /** * Get ImageUrl */ ImageUrl string `json:"imageUrl"` /** * Get Action */ Action ActionInterface `json:"action"` }
func (*ImageCarouselColumn) MarshalJSON ¶
func (r *ImageCarouselColumn) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ImageCarouselColumn struct.
func (*ImageCarouselColumn) UnmarshalJSON ¶
func (cr *ImageCarouselColumn) UnmarshalJSON(data []byte) error
type ImageCarouselTemplate ¶
type ImageCarouselTemplate struct { Template /** * Get Columns */ Columns []ImageCarouselColumn `json:"columns"` }
func (*ImageCarouselTemplate) MarshalJSON ¶
func (r *ImageCarouselTemplate) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ImageCarouselTemplate struct.
type ImageMessage ¶
type ImageMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get OriginalContentUrl */ OriginalContentUrl string `json:"originalContentUrl"` /** * Get PreviewImageUrl */ PreviewImageUrl string `json:"previewImageUrl"` }
ImageMessage ImageMessage https://developers.line.biz/en/reference/messaging-api/#image-message
func (*ImageMessage) MarshalJSON ¶
func (r *ImageMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ImageMessage struct.
type ImagemapAction ¶
type ImagemapAction struct { Type string `json:"type"` Area ImagemapArea `json:"area"` }
func (ImagemapAction) GetType ¶
func (e ImagemapAction) GetType() string
type ImagemapActionInterface ¶
type ImagemapActionInterface interface {
GetType() string
}
func UnmarshalImagemapAction ¶
func UnmarshalImagemapAction(data []byte) (ImagemapActionInterface, error)
type ImagemapArea ¶
type ImagemapBaseSize ¶
type ImagemapExternalLink ¶
type ImagemapMessage ¶
type ImagemapMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get BaseUrl */ BaseUrl string `json:"baseUrl"` /** * Get AltText */ AltText string `json:"altText"` /** * Get BaseSize */ BaseSize *ImagemapBaseSize `json:"baseSize"` /** * Get Actions */ Actions []ImagemapActionInterface `json:"actions"` /** * Get Video */ Video *ImagemapVideo `json:"video,omitempty"` }
ImagemapMessage ImagemapMessage https://developers.line.biz/en/reference/messaging-api/#imagemap-message
func (*ImagemapMessage) MarshalJSON ¶
func (r *ImagemapMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ImagemapMessage struct.
func (*ImagemapMessage) UnmarshalJSON ¶
func (cr *ImagemapMessage) UnmarshalJSON(data []byte) error
type ImagemapVideo ¶
type ImagemapVideo struct { /** * Get OriginalContentUrl */ OriginalContentUrl string `json:"originalContentUrl,omitempty"` /** * Get PreviewImageUrl */ PreviewImageUrl string `json:"previewImageUrl,omitempty"` /** * Get Area */ Area *ImagemapArea `json:"area,omitempty"` /** * Get ExternalLink */ ExternalLink *ImagemapExternalLink `json:"externalLink,omitempty"` }
type IssueLinkTokenResponse ¶
type IssueLinkTokenResponse struct { /** * Link token. Link tokens are valid for 10 minutes and can only be used once. (Required) */ LinkToken string `json:"linkToken"` }
IssueLinkTokenResponse IssueLinkTokenResponse https://developers.line.biz/en/reference/messaging-api/#issue-link-token
type Limit ¶
type Limit struct { /** * The maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random. * minimum: 1 */ Max int32 `json:"max"` /** * If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random. */ UpToRemainingQuota bool `json:"upToRemainingQuota"` }
Limit Limit of the Narrowcast https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
type LocationAction ¶
type LocationAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` }
func (*LocationAction) MarshalJSON ¶
func (r *LocationAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the LocationAction struct.
type LocationMessage ¶
type LocationMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get Title */ Title string `json:"title"` /** * Get Address */ Address string `json:"address"` /** * Get Latitude */ Latitude float64 `json:"latitude"` /** * Get Longitude */ Longitude float64 `json:"longitude"` }
LocationMessage LocationMessage https://developers.line.biz/en/reference/messaging-api/#location-message
func (*LocationMessage) MarshalJSON ¶
func (r *LocationMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the LocationMessage struct.
type MarkMessagesAsReadRequest ¶
type MarkMessagesAsReadRequest struct { /** * Get Chat */ Chat *ChatReference `json:"chat"` }
MarkMessagesAsReadRequest MarkMessagesAsReadRequest https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
type MembersIdsResponse ¶
type MembersIdsResponse struct { /** * List of user IDs of members in the group chat. Only users of LINE for iOS and LINE for Android are included in `memberIds`. (Required) */ MemberIds []string `json:"memberIds"` /** * A continuation token to get the next array of user IDs of the members in the group chat. Returned only when there are remaining user IDs that were not returned in `memberIds` in the original request. */ Next string `json:"next,omitempty"` }
type Membership ¶ added in v8.5.0
type Membership struct { /** * Membership plan ID. (Required) */ MembershipId int32 `json:"membershipId"` /** * Membership plan name. (Required) */ Title string `json:"title"` /** * Membership plan description. (Required) */ Description string `json:"description"` /** * List of membership plan perks. (Required) */ Benefits []string `json:"benefits"` /** * Monthly fee for membership plan. (e.g. 1500.00) (Required) */ Price float64 `json:"price"` /** * The currency of membership.price. (Required) */ Currency MembershipCURRENCY `json:"currency"` /** * Number of members subscribed to the membership plan. (Required) */ MemberCount int32 `json:"memberCount"` /** * The upper limit of members who can subscribe. If no upper limit is set, it will be null. (Required) */ MemberLimit int32 `json:"memberLimit"` /** * Payment method for users who subscribe to a membership plan. (Required) */ IsInAppPurchase bool `json:"isInAppPurchase"` /** * Membership plan status. (Required) */ IsPublished bool `json:"isPublished"` }
type MembershipCURRENCY ¶ added in v8.5.0
type MembershipCURRENCY string
MembershipCURRENCY type
The currency of membership.price.
const ( MembershipCURRENCY_JPY MembershipCURRENCY = "JPY" MembershipCURRENCY_TWD MembershipCURRENCY = "TWD" MembershipCURRENCY_THB MembershipCURRENCY = "THB" )
MembershipCURRENCY constants
type MembershipListResponse ¶ added in v8.5.0
type MembershipListResponse struct { /** * List of membership information (Required) */ Memberships []Membership `json:"memberships"` }
type Message ¶
type Message struct { Type string `json:"type"` QuickReply QuickReply `json:"quickReply,omitempty"` Sender Sender `json:"sender,omitempty"` }
type MessageAction ¶
type MessageAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Get Text */ Text string `json:"text,omitempty"` }
func (*MessageAction) MarshalJSON ¶
func (r *MessageAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the MessageAction struct.
type MessageImagemapAction ¶
type MessageImagemapAction struct { ImagemapAction /** * Get Area */ Area *ImagemapArea `json:"area"` /** * Get Text */ Text string `json:"text"` /** * Get Label */ Label string `json:"label,omitempty"` }
func (*MessageImagemapAction) MarshalJSON ¶
func (r *MessageImagemapAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the MessageImagemapAction struct.
type MessageInterface ¶
type MessageInterface interface {
GetType() string
}
func UnmarshalMessage ¶
func UnmarshalMessage(data []byte) (MessageInterface, error)
type MessageQuotaResponse ¶
type MessageQuotaResponse struct { /** * Get Type */ Type QuotaType `json:"type"` /** * The target limit for sending messages in the current month. This property is returned when the `type` property has a value of `limited`. */ Value int64 `json:"value"` }
MessageQuotaResponse MessageQuotaResponse https://developers.line.biz/en/reference/messaging-api/#get-quota
type MessagingApiAPI ¶
type MessagingApiAPI struct {
// contains filtered or unexported fields
}
func NewMessagingApiAPI ¶
func NewMessagingApiAPI(channelToken string, options ...MessagingApiAPIOption) (*MessagingApiAPI, error)
New returns a new bot client instance.
func (*MessagingApiAPI) AudienceMatch ¶
func (client *MessagingApiAPI) AudienceMatch( audienceMatchMessagesRequest *AudienceMatchMessagesRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#phone-audience-match
func (*MessagingApiAPI) AudienceMatchWithHttpInfo ¶
func (client *MessagingApiAPI) AudienceMatchWithHttpInfo( audienceMatchMessagesRequest *AudienceMatchMessagesRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#phone-audience-match
func (*MessagingApiAPI) Broadcast ¶
func (client *MessagingApiAPI) Broadcast( broadcastRequest *BroadcastRequest, xLineRetryKey string, ) (*map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message
func (*MessagingApiAPI) BroadcastWithHttpInfo ¶
func (client *MessagingApiAPI) BroadcastWithHttpInfo( broadcastRequest *BroadcastRequest, xLineRetryKey string, ) (*http.Response, *map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-broadcast-message
func (*MessagingApiAPI) CancelDefaultRichMenu ¶
func (client *MessagingApiAPI) CancelDefaultRichMenu() (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#cancel-default-rich-menu
func (*MessagingApiAPI) CancelDefaultRichMenuWithHttpInfo ¶
func (client *MessagingApiAPI) CancelDefaultRichMenuWithHttpInfo() (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#cancel-default-rich-menu
func (*MessagingApiAPI) CreateRichMenu ¶
func (client *MessagingApiAPI) CreateRichMenu( richMenuRequest *RichMenuRequest, ) (*RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-rich-menu
func (*MessagingApiAPI) CreateRichMenuAlias ¶
func (client *MessagingApiAPI) CreateRichMenuAlias( createRichMenuAliasRequest *CreateRichMenuAliasRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias
func (*MessagingApiAPI) CreateRichMenuAliasWithHttpInfo ¶
func (client *MessagingApiAPI) CreateRichMenuAliasWithHttpInfo( createRichMenuAliasRequest *CreateRichMenuAliasRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#create-rich-menu-alias
func (*MessagingApiAPI) CreateRichMenuWithHttpInfo ¶
func (client *MessagingApiAPI) CreateRichMenuWithHttpInfo( richMenuRequest *RichMenuRequest, ) (*http.Response, *RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-rich-menu
func (*MessagingApiAPI) DeleteRichMenu ¶
func (client *MessagingApiAPI) DeleteRichMenu( richMenuId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu
func (*MessagingApiAPI) DeleteRichMenuAlias ¶
func (client *MessagingApiAPI) DeleteRichMenuAlias( richMenuAliasId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias
func (*MessagingApiAPI) DeleteRichMenuAliasWithHttpInfo ¶
func (client *MessagingApiAPI) DeleteRichMenuAliasWithHttpInfo( richMenuAliasId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu-alias
func (*MessagingApiAPI) DeleteRichMenuWithHttpInfo ¶
func (client *MessagingApiAPI) DeleteRichMenuWithHttpInfo( richMenuId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu
func (*MessagingApiAPI) GetAdPhoneMessageStatistics ¶
func (client *MessagingApiAPI) GetAdPhoneMessageStatistics( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/partner-docs/#get-phone-audience-match
func (*MessagingApiAPI) GetAdPhoneMessageStatisticsWithHttpInfo ¶
func (client *MessagingApiAPI) GetAdPhoneMessageStatisticsWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/partner-docs/#get-phone-audience-match
func (*MessagingApiAPI) GetAggregationUnitNameList ¶
func (client *MessagingApiAPI) GetAggregationUnitNameList( limit string, start string, ) (*GetAggregationUnitNameListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month
func (*MessagingApiAPI) GetAggregationUnitNameListWithHttpInfo ¶
func (client *MessagingApiAPI) GetAggregationUnitNameListWithHttpInfo( limit string, start string, ) (*http.Response, *GetAggregationUnitNameListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-name-list-of-units-used-this-month
func (*MessagingApiAPI) GetAggregationUnitUsage ¶
func (client *MessagingApiAPI) GetAggregationUnitUsage() (*GetAggregationUnitUsageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month
func (*MessagingApiAPI) GetAggregationUnitUsageWithHttpInfo ¶
func (client *MessagingApiAPI) GetAggregationUnitUsageWithHttpInfo() (*http.Response, *GetAggregationUnitUsageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-units-used-this-month
func (*MessagingApiAPI) GetBotInfo ¶
func (client *MessagingApiAPI) GetBotInfo() (*BotInfoResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-bot-info
func (*MessagingApiAPI) GetBotInfoWithHttpInfo ¶
func (client *MessagingApiAPI) GetBotInfoWithHttpInfo() (*http.Response, *BotInfoResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-bot-info
func (*MessagingApiAPI) GetDefaultRichMenuId ¶
func (client *MessagingApiAPI) GetDefaultRichMenuId() (*RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id
func (*MessagingApiAPI) GetDefaultRichMenuIdWithHttpInfo ¶
func (client *MessagingApiAPI) GetDefaultRichMenuIdWithHttpInfo() (*http.Response, *RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-default-rich-menu-id
func (*MessagingApiAPI) GetFollowers ¶
func (client *MessagingApiAPI) GetFollowers( start string, limit int32, ) (*GetFollowersResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-follower-ids
func (*MessagingApiAPI) GetFollowersWithHttpInfo ¶
func (client *MessagingApiAPI) GetFollowersWithHttpInfo( start string, limit int32, ) (*http.Response, *GetFollowersResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-follower-ids
func (*MessagingApiAPI) GetGroupMemberCount ¶
func (client *MessagingApiAPI) GetGroupMemberCount( groupId string, ) (*GroupMemberCountResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
func (*MessagingApiAPI) GetGroupMemberCountWithHttpInfo ¶
func (client *MessagingApiAPI) GetGroupMemberCountWithHttpInfo( groupId string, ) (*http.Response, *GroupMemberCountResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
func (*MessagingApiAPI) GetGroupMemberProfile ¶
func (client *MessagingApiAPI) GetGroupMemberProfile( groupId string, userId string, ) (*GroupUserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
func (*MessagingApiAPI) GetGroupMemberProfileWithHttpInfo ¶
func (client *MessagingApiAPI) GetGroupMemberProfileWithHttpInfo( groupId string, userId string, ) (*http.Response, *GroupUserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
func (*MessagingApiAPI) GetGroupMembersIds ¶
func (client *MessagingApiAPI) GetGroupMembersIds( groupId string, start string, ) (*MembersIdsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids
func (*MessagingApiAPI) GetGroupMembersIdsWithHttpInfo ¶
func (client *MessagingApiAPI) GetGroupMembersIdsWithHttpInfo( groupId string, start string, ) (*http.Response, *MembersIdsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids
func (*MessagingApiAPI) GetGroupSummary ¶
func (client *MessagingApiAPI) GetGroupSummary( groupId string, ) (*GroupSummaryResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-summary
func (*MessagingApiAPI) GetGroupSummaryWithHttpInfo ¶
func (client *MessagingApiAPI) GetGroupSummaryWithHttpInfo( groupId string, ) (*http.Response, *GroupSummaryResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-group-summary
func (*MessagingApiAPI) GetMembershipList ¶ added in v8.5.0
func (client *MessagingApiAPI) GetMembershipList() (*MembershipListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-membership-plans
func (*MessagingApiAPI) GetMembershipListWithHttpInfo ¶ added in v8.5.0
func (client *MessagingApiAPI) GetMembershipListWithHttpInfo() (*http.Response, *MembershipListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-membership-plans
func (*MessagingApiAPI) GetMembershipSubscription ¶ added in v8.5.0
func (client *MessagingApiAPI) GetMembershipSubscription( userId string, ) (*GetMembershipSubscriptionResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status
func (*MessagingApiAPI) GetMembershipSubscriptionWithHttpInfo ¶ added in v8.5.0
func (client *MessagingApiAPI) GetMembershipSubscriptionWithHttpInfo( userId string, ) (*http.Response, *GetMembershipSubscriptionResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-a-users-membership-subscription-status
func (*MessagingApiAPI) GetMessageQuota ¶
func (client *MessagingApiAPI) GetMessageQuota() (*MessageQuotaResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-quota
func (*MessagingApiAPI) GetMessageQuotaConsumption ¶
func (client *MessagingApiAPI) GetMessageQuotaConsumption() (*QuotaConsumptionResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-consumption
func (*MessagingApiAPI) GetMessageQuotaConsumptionWithHttpInfo ¶
func (client *MessagingApiAPI) GetMessageQuotaConsumptionWithHttpInfo() (*http.Response, *QuotaConsumptionResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-consumption
func (*MessagingApiAPI) GetMessageQuotaWithHttpInfo ¶
func (client *MessagingApiAPI) GetMessageQuotaWithHttpInfo() (*http.Response, *MessageQuotaResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-quota
func (*MessagingApiAPI) GetNarrowcastProgress ¶
func (client *MessagingApiAPI) GetNarrowcastProgress( requestId string, ) (*NarrowcastProgressResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
func (*MessagingApiAPI) GetNarrowcastProgressWithHttpInfo ¶
func (client *MessagingApiAPI) GetNarrowcastProgressWithHttpInfo( requestId string, ) (*http.Response, *NarrowcastProgressResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
func (*MessagingApiAPI) GetNumberOfSentBroadcastMessages ¶
func (client *MessagingApiAPI) GetNumberOfSentBroadcastMessages( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages
func (*MessagingApiAPI) GetNumberOfSentBroadcastMessagesWithHttpInfo ¶
func (client *MessagingApiAPI) GetNumberOfSentBroadcastMessagesWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-broadcast-messages
func (*MessagingApiAPI) GetNumberOfSentMulticastMessages ¶
func (client *MessagingApiAPI) GetNumberOfSentMulticastMessages( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages
func (*MessagingApiAPI) GetNumberOfSentMulticastMessagesWithHttpInfo ¶
func (client *MessagingApiAPI) GetNumberOfSentMulticastMessagesWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-multicast-messages
func (*MessagingApiAPI) GetNumberOfSentPushMessages ¶
func (client *MessagingApiAPI) GetNumberOfSentPushMessages( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages
func (*MessagingApiAPI) GetNumberOfSentPushMessagesWithHttpInfo ¶
func (client *MessagingApiAPI) GetNumberOfSentPushMessagesWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-push-messages
func (*MessagingApiAPI) GetNumberOfSentReplyMessages ¶
func (client *MessagingApiAPI) GetNumberOfSentReplyMessages( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages
func (*MessagingApiAPI) GetNumberOfSentReplyMessagesWithHttpInfo ¶
func (client *MessagingApiAPI) GetNumberOfSentReplyMessagesWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-number-of-reply-messages
func (*MessagingApiAPI) GetPNPMessageStatistics ¶
func (client *MessagingApiAPI) GetPNPMessageStatistics( date string, ) (*NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages
func (*MessagingApiAPI) GetPNPMessageStatisticsWithHttpInfo ¶
func (client *MessagingApiAPI) GetPNPMessageStatisticsWithHttpInfo( date string, ) (*http.Response, *NumberOfMessagesResponse, error)
https://developers.line.biz/en/reference/partner-docs/#get-number-of-sent-line-notification-messages
func (*MessagingApiAPI) GetProfile ¶
func (client *MessagingApiAPI) GetProfile( userId string, ) (*UserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-profile
func (*MessagingApiAPI) GetProfileWithHttpInfo ¶
func (client *MessagingApiAPI) GetProfileWithHttpInfo( userId string, ) (*http.Response, *UserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-profile
func (*MessagingApiAPI) GetRichMenu ¶
func (client *MessagingApiAPI) GetRichMenu( richMenuId string, ) (*RichMenuResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu
func (*MessagingApiAPI) GetRichMenuAlias ¶
func (client *MessagingApiAPI) GetRichMenuAlias( richMenuAliasId string, ) (*RichMenuAliasResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id
func (*MessagingApiAPI) GetRichMenuAliasList ¶
func (client *MessagingApiAPI) GetRichMenuAliasList() (*RichMenuAliasListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list
func (*MessagingApiAPI) GetRichMenuAliasListWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuAliasListWithHttpInfo() (*http.Response, *RichMenuAliasListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list
func (*MessagingApiAPI) GetRichMenuAliasWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuAliasWithHttpInfo( richMenuAliasId string, ) (*http.Response, *RichMenuAliasResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-by-id
func (*MessagingApiAPI) GetRichMenuBatchProgress ¶
func (client *MessagingApiAPI) GetRichMenuBatchProgress( requestId string, ) (*RichMenuBatchProgressResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status
func (*MessagingApiAPI) GetRichMenuBatchProgressWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuBatchProgressWithHttpInfo( requestId string, ) (*http.Response, *RichMenuBatchProgressResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status
func (*MessagingApiAPI) GetRichMenuIdOfUser ¶
func (client *MessagingApiAPI) GetRichMenuIdOfUser( userId string, ) (*RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user
func (*MessagingApiAPI) GetRichMenuIdOfUserWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuIdOfUserWithHttpInfo( userId string, ) (*http.Response, *RichMenuIdResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-id-of-user
func (*MessagingApiAPI) GetRichMenuList ¶
func (client *MessagingApiAPI) GetRichMenuList() (*RichMenuListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list
func (*MessagingApiAPI) GetRichMenuListWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuListWithHttpInfo() (*http.Response, *RichMenuListResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list
func (*MessagingApiAPI) GetRichMenuWithHttpInfo ¶
func (client *MessagingApiAPI) GetRichMenuWithHttpInfo( richMenuId string, ) (*http.Response, *RichMenuResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-rich-menu
func (*MessagingApiAPI) GetRoomMemberCount ¶
func (client *MessagingApiAPI) GetRoomMemberCount( roomId string, ) (*RoomMemberCountResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
func (*MessagingApiAPI) GetRoomMemberCountWithHttpInfo ¶
func (client *MessagingApiAPI) GetRoomMemberCountWithHttpInfo( roomId string, ) (*http.Response, *RoomMemberCountResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
func (*MessagingApiAPI) GetRoomMemberProfile ¶
func (client *MessagingApiAPI) GetRoomMemberProfile( roomId string, userId string, ) (*RoomUserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
func (*MessagingApiAPI) GetRoomMemberProfileWithHttpInfo ¶
func (client *MessagingApiAPI) GetRoomMemberProfileWithHttpInfo( roomId string, userId string, ) (*http.Response, *RoomUserProfileResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
func (*MessagingApiAPI) GetRoomMembersIds ¶
func (client *MessagingApiAPI) GetRoomMembersIds( roomId string, start string, ) (*MembersIdsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids
func (*MessagingApiAPI) GetRoomMembersIdsWithHttpInfo ¶
func (client *MessagingApiAPI) GetRoomMembersIdsWithHttpInfo( roomId string, start string, ) (*http.Response, *MembersIdsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-room-member-user-ids
func (*MessagingApiAPI) GetWebhookEndpoint ¶
func (client *MessagingApiAPI) GetWebhookEndpoint() (*GetWebhookEndpointResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information
func (*MessagingApiAPI) GetWebhookEndpointWithHttpInfo ¶
func (client *MessagingApiAPI) GetWebhookEndpointWithHttpInfo() (*http.Response, *GetWebhookEndpointResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-webhook-endpoint-information
func (*MessagingApiAPI) IssueLinkToken ¶
func (client *MessagingApiAPI) IssueLinkToken( userId string, ) (*IssueLinkTokenResponse, error)
https://developers.line.biz/en/reference/messaging-api/#issue-link-token
func (*MessagingApiAPI) IssueLinkTokenWithHttpInfo ¶
func (client *MessagingApiAPI) IssueLinkTokenWithHttpInfo( userId string, ) (*http.Response, *IssueLinkTokenResponse, error)
https://developers.line.biz/en/reference/messaging-api/#issue-link-token
func (*MessagingApiAPI) LeaveGroup ¶
func (client *MessagingApiAPI) LeaveGroup( groupId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#leave-group
func (*MessagingApiAPI) LeaveGroupWithHttpInfo ¶
func (client *MessagingApiAPI) LeaveGroupWithHttpInfo( groupId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#leave-group
func (*MessagingApiAPI) LeaveRoom ¶
func (client *MessagingApiAPI) LeaveRoom( roomId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#leave-room
func (*MessagingApiAPI) LeaveRoomWithHttpInfo ¶
func (client *MessagingApiAPI) LeaveRoomWithHttpInfo( roomId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#leave-room
func (*MessagingApiAPI) LinkRichMenuIdToUser ¶
func (client *MessagingApiAPI) LinkRichMenuIdToUser( userId string, richMenuId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user
func (*MessagingApiAPI) LinkRichMenuIdToUserWithHttpInfo ¶
func (client *MessagingApiAPI) LinkRichMenuIdToUserWithHttpInfo( userId string, richMenuId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-user
func (*MessagingApiAPI) LinkRichMenuIdToUsers ¶
func (client *MessagingApiAPI) LinkRichMenuIdToUsers( richMenuBulkLinkRequest *RichMenuBulkLinkRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users
func (*MessagingApiAPI) LinkRichMenuIdToUsersWithHttpInfo ¶
func (client *MessagingApiAPI) LinkRichMenuIdToUsersWithHttpInfo( richMenuBulkLinkRequest *RichMenuBulkLinkRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users
func (*MessagingApiAPI) MarkMessagesAsRead ¶
func (client *MessagingApiAPI) MarkMessagesAsRead( markMessagesAsReadRequest *MarkMessagesAsReadRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
func (*MessagingApiAPI) MarkMessagesAsReadWithHttpInfo ¶
func (client *MessagingApiAPI) MarkMessagesAsReadWithHttpInfo( markMessagesAsReadRequest *MarkMessagesAsReadRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read
func (*MessagingApiAPI) Multicast ¶
func (client *MessagingApiAPI) Multicast( multicastRequest *MulticastRequest, xLineRetryKey string, ) (*map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-multicast-message
func (*MessagingApiAPI) MulticastWithHttpInfo ¶
func (client *MessagingApiAPI) MulticastWithHttpInfo( multicastRequest *MulticastRequest, xLineRetryKey string, ) (*http.Response, *map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-multicast-message
func (*MessagingApiAPI) Narrowcast ¶
func (client *MessagingApiAPI) Narrowcast( narrowcastRequest *NarrowcastRequest, xLineRetryKey string, ) (*map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
func (*MessagingApiAPI) NarrowcastWithHttpInfo ¶
func (client *MessagingApiAPI) NarrowcastWithHttpInfo( narrowcastRequest *NarrowcastRequest, xLineRetryKey string, ) (*http.Response, *map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
func (*MessagingApiAPI) PushMessage ¶
func (client *MessagingApiAPI) PushMessage( pushMessageRequest *PushMessageRequest, xLineRetryKey string, ) (*PushMessageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#send-push-message
func (*MessagingApiAPI) PushMessageWithHttpInfo ¶
func (client *MessagingApiAPI) PushMessageWithHttpInfo( pushMessageRequest *PushMessageRequest, xLineRetryKey string, ) (*http.Response, *PushMessageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#send-push-message
func (*MessagingApiAPI) PushMessagesByPhone ¶
func (client *MessagingApiAPI) PushMessagesByPhone( pnpMessagesRequest *PnpMessagesRequest, xLineDeliveryTag string, ) (struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message
func (*MessagingApiAPI) PushMessagesByPhoneWithHttpInfo ¶
func (client *MessagingApiAPI) PushMessagesByPhoneWithHttpInfo( pnpMessagesRequest *PnpMessagesRequest, xLineDeliveryTag string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message
func (*MessagingApiAPI) ReplyMessage ¶
func (client *MessagingApiAPI) ReplyMessage( replyMessageRequest *ReplyMessageRequest, ) (*ReplyMessageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#send-reply-message
func (*MessagingApiAPI) ReplyMessageWithHttpInfo ¶
func (client *MessagingApiAPI) ReplyMessageWithHttpInfo( replyMessageRequest *ReplyMessageRequest, ) (*http.Response, *ReplyMessageResponse, error)
https://developers.line.biz/en/reference/messaging-api/#send-reply-message
func (*MessagingApiAPI) RichMenuBatch ¶
func (client *MessagingApiAPI) RichMenuBatch( richMenuBatchRequest *RichMenuBatchRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users
func (*MessagingApiAPI) RichMenuBatchWithHttpInfo ¶
func (client *MessagingApiAPI) RichMenuBatchWithHttpInfo( richMenuBatchRequest *RichMenuBatchRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#batch-control-rich-menus-of-users
func (*MessagingApiAPI) SetDefaultRichMenu ¶
func (client *MessagingApiAPI) SetDefaultRichMenu( richMenuId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu
func (*MessagingApiAPI) SetDefaultRichMenuWithHttpInfo ¶
func (client *MessagingApiAPI) SetDefaultRichMenuWithHttpInfo( richMenuId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-default-rich-menu
func (*MessagingApiAPI) SetWebhookEndpoint ¶
func (client *MessagingApiAPI) SetWebhookEndpoint( setWebhookEndpointRequest *SetWebhookEndpointRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url
func (*MessagingApiAPI) SetWebhookEndpointWithHttpInfo ¶
func (client *MessagingApiAPI) SetWebhookEndpointWithHttpInfo( setWebhookEndpointRequest *SetWebhookEndpointRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url
func (*MessagingApiAPI) ShowLoadingAnimation ¶ added in v8.6.0
func (client *MessagingApiAPI) ShowLoadingAnimation( showLoadingAnimationRequest *ShowLoadingAnimationRequest, ) (*map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator
func (*MessagingApiAPI) ShowLoadingAnimationWithHttpInfo ¶ added in v8.6.0
func (client *MessagingApiAPI) ShowLoadingAnimationWithHttpInfo( showLoadingAnimationRequest *ShowLoadingAnimationRequest, ) (*http.Response, *map[string]interface{}, error)
https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator
func (*MessagingApiAPI) TestWebhookEndpoint ¶
func (client *MessagingApiAPI) TestWebhookEndpoint( testWebhookEndpointRequest *TestWebhookEndpointRequest, ) (*TestWebhookEndpointResponse, error)
https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
func (*MessagingApiAPI) TestWebhookEndpointWithHttpInfo ¶
func (client *MessagingApiAPI) TestWebhookEndpointWithHttpInfo( testWebhookEndpointRequest *TestWebhookEndpointRequest, ) (*http.Response, *TestWebhookEndpointResponse, error)
https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
func (*MessagingApiAPI) UnlinkRichMenuIdFromUser ¶
func (client *MessagingApiAPI) UnlinkRichMenuIdFromUser( userId string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user
func (*MessagingApiAPI) UnlinkRichMenuIdFromUserWithHttpInfo ¶
func (client *MessagingApiAPI) UnlinkRichMenuIdFromUserWithHttpInfo( userId string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-user
func (*MessagingApiAPI) UnlinkRichMenuIdFromUsers ¶
func (client *MessagingApiAPI) UnlinkRichMenuIdFromUsers( richMenuBulkUnlinkRequest *RichMenuBulkUnlinkRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users
func (*MessagingApiAPI) UnlinkRichMenuIdFromUsersWithHttpInfo ¶
func (client *MessagingApiAPI) UnlinkRichMenuIdFromUsersWithHttpInfo( richMenuBulkUnlinkRequest *RichMenuBulkUnlinkRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users
func (*MessagingApiAPI) UpdateRichMenuAlias ¶
func (client *MessagingApiAPI) UpdateRichMenuAlias( richMenuAliasId string, updateRichMenuAliasRequest *UpdateRichMenuAliasRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias
func (*MessagingApiAPI) UpdateRichMenuAliasWithHttpInfo ¶
func (client *MessagingApiAPI) UpdateRichMenuAliasWithHttpInfo( richMenuAliasId string, updateRichMenuAliasRequest *UpdateRichMenuAliasRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias
func (*MessagingApiAPI) Url ¶
func (client *MessagingApiAPI) Url(endpointPath string) string
func (*MessagingApiAPI) ValidateBroadcast ¶
func (client *MessagingApiAPI) ValidateBroadcast( validateMessageRequest *ValidateMessageRequest, ) (struct{}, error)
func (*MessagingApiAPI) ValidateBroadcastWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateBroadcastWithHttpInfo( validateMessageRequest *ValidateMessageRequest, ) (*http.Response, struct{}, error)
func (*MessagingApiAPI) ValidateMulticast ¶
func (client *MessagingApiAPI) ValidateMulticast( validateMessageRequest *ValidateMessageRequest, ) (struct{}, error)
func (*MessagingApiAPI) ValidateMulticastWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateMulticastWithHttpInfo( validateMessageRequest *ValidateMessageRequest, ) (*http.Response, struct{}, error)
func (*MessagingApiAPI) ValidateNarrowcast ¶
func (client *MessagingApiAPI) ValidateNarrowcast( validateMessageRequest *ValidateMessageRequest, ) (struct{}, error)
func (*MessagingApiAPI) ValidateNarrowcastWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateNarrowcastWithHttpInfo( validateMessageRequest *ValidateMessageRequest, ) (*http.Response, struct{}, error)
func (*MessagingApiAPI) ValidatePush ¶
func (client *MessagingApiAPI) ValidatePush( validateMessageRequest *ValidateMessageRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message
func (*MessagingApiAPI) ValidatePushWithHttpInfo ¶
func (client *MessagingApiAPI) ValidatePushWithHttpInfo( validateMessageRequest *ValidateMessageRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-push-message
func (*MessagingApiAPI) ValidateReply ¶
func (client *MessagingApiAPI) ValidateReply( validateMessageRequest *ValidateMessageRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message
func (*MessagingApiAPI) ValidateReplyWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateReplyWithHttpInfo( validateMessageRequest *ValidateMessageRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-message-objects-of-reply-message
func (*MessagingApiAPI) ValidateRichMenuBatchRequest ¶
func (client *MessagingApiAPI) ValidateRichMenuBatchRequest( richMenuBatchRequest *RichMenuBatchRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request
func (*MessagingApiAPI) ValidateRichMenuBatchRequestWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateRichMenuBatchRequestWithHttpInfo( richMenuBatchRequest *RichMenuBatchRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-batch-control-rich-menus-request
func (*MessagingApiAPI) ValidateRichMenuObject ¶
func (client *MessagingApiAPI) ValidateRichMenuObject( richMenuRequest *RichMenuRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object
func (*MessagingApiAPI) ValidateRichMenuObjectWithHttpInfo ¶
func (client *MessagingApiAPI) ValidateRichMenuObjectWithHttpInfo( richMenuRequest *RichMenuRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#validate-rich-menu-object
func (*MessagingApiAPI) WithContext ¶
func (call *MessagingApiAPI) WithContext(ctx context.Context) *MessagingApiAPI
WithContext method
type MessagingApiAPIOption ¶
type MessagingApiAPIOption func(*MessagingApiAPI) error
MessagingApiAPIOption type
func WithEndpoint ¶
func WithEndpoint(endpoint string) MessagingApiAPIOption
WithEndpointClient function
func WithHTTPClient ¶
func WithHTTPClient(c *http.Client) MessagingApiAPIOption
WithHTTPClient function
type MessagingApiBlobAPI ¶
type MessagingApiBlobAPI struct {
// contains filtered or unexported fields
}
func NewMessagingApiBlobAPI ¶
func NewMessagingApiBlobAPI(channelToken string, options ...MessagingApiBlobAPIOption) (*MessagingApiBlobAPI, error)
New returns a new bot client instance.
func (*MessagingApiBlobAPI) GetMessageContent ¶
func (client *MessagingApiBlobAPI) GetMessageContent( messageId string, ) (*http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#get-content
func (*MessagingApiBlobAPI) GetMessageContentPreview ¶
func (client *MessagingApiBlobAPI) GetMessageContentPreview( messageId string, ) (*http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview
func (*MessagingApiBlobAPI) GetMessageContentPreviewWithHttpInfo ¶
func (client *MessagingApiBlobAPI) GetMessageContentPreviewWithHttpInfo( messageId string, ) (*http.Response, *http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#get-image-or-video-preview
func (*MessagingApiBlobAPI) GetMessageContentTranscodingByMessageId ¶
func (client *MessagingApiBlobAPI) GetMessageContentTranscodingByMessageId( messageId string, ) (*GetMessageContentTranscodingResponse, error)
https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status
func (*MessagingApiBlobAPI) GetMessageContentTranscodingByMessageIdWithHttpInfo ¶
func (client *MessagingApiBlobAPI) GetMessageContentTranscodingByMessageIdWithHttpInfo( messageId string, ) (*http.Response, *GetMessageContentTranscodingResponse, error)
https://developers.line.biz/en/reference/messaging-api/#verify-video-or-audio-preparation-status
func (*MessagingApiBlobAPI) GetMessageContentWithHttpInfo ¶
func (client *MessagingApiBlobAPI) GetMessageContentWithHttpInfo( messageId string, ) (*http.Response, *http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#get-content
func (*MessagingApiBlobAPI) GetRichMenuImage ¶
func (client *MessagingApiBlobAPI) GetRichMenuImage( richMenuId string, ) (*http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image
func (*MessagingApiBlobAPI) GetRichMenuImageWithHttpInfo ¶
func (client *MessagingApiBlobAPI) GetRichMenuImageWithHttpInfo( richMenuId string, ) (*http.Response, *http.Response, error)
You must close the response body when finished with it. https://developers.line.biz/en/reference/messaging-api/#download-rich-menu-image
func (*MessagingApiBlobAPI) SetRichMenuImage ¶
func (client *MessagingApiBlobAPI) SetRichMenuImage( richMenuId string, bodyContentType string, bodyReader io.Reader, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image
func (*MessagingApiBlobAPI) SetRichMenuImageWithHttpInfo ¶
func (client *MessagingApiBlobAPI) SetRichMenuImageWithHttpInfo( richMenuId string, bodyContentType string, bodyReader io.Reader, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#upload-rich-menu-image
func (*MessagingApiBlobAPI) Url ¶
func (client *MessagingApiBlobAPI) Url(endpointPath string) string
func (*MessagingApiBlobAPI) WithContext ¶
func (call *MessagingApiBlobAPI) WithContext(ctx context.Context) *MessagingApiBlobAPI
WithContext method
type MessagingApiBlobAPIOption ¶
type MessagingApiBlobAPIOption func(*MessagingApiBlobAPI) error
MessagingApiBlobAPIOption type
func WithBlobEndpoint ¶
func WithBlobEndpoint(endpoint string) MessagingApiBlobAPIOption
WithEndpointClient function
func WithBlobHTTPClient ¶
func WithBlobHTTPClient(c *http.Client) MessagingApiBlobAPIOption
WithHTTPClient function
type MulticastRequest ¶
type MulticastRequest struct { /** * Messages to send (Required) */ Messages []MessageInterface `json:"messages"` /** * Array of user IDs. Use userId values which are returned in webhook event objects. Do not use LINE IDs found on LINE. (Required) */ To []string `json:"to"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` /** * Name of aggregation unit. Case-sensitive. */ CustomAggregationUnits []string `json:"customAggregationUnits"` }
MulticastRequest MulticastRequest https://developers.line.biz/en/reference/messaging-api/#send-multicast-message
func (*MulticastRequest) MarshalJSON ¶
func (r *MulticastRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the MulticastRequest struct.
func (*MulticastRequest) UnmarshalJSON ¶
func (cr *MulticastRequest) UnmarshalJSON(data []byte) error
type NarrowcastProgressResponse ¶
type NarrowcastProgressResponse struct { /** * The current status. One of: `waiting`: Messages are not yet ready to be sent. They are currently being filtered or processed in some way. `sending`: Messages are currently being sent. `succeeded`: Messages were sent successfully. This may not mean the messages were successfully received. `failed`: Messages failed to be sent. Use the failedDescription property to find the cause of the failure. (Required) */ Phase NarrowcastProgressResponsePHASE `json:"phase"` /** * The number of users who successfully received the message. */ SuccessCount int64 `json:"successCount"` /** * The number of users who failed to send the message. */ FailureCount int64 `json:"failureCount"` /** * The number of intended recipients of the message. */ TargetCount int64 `json:"targetCount"` /** * The reason the message failed to be sent. This is only included with a `phase` property value of `failed`. */ FailedDescription string `json:"failedDescription,omitempty"` /** * Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. */ ErrorCode int64 `json:"errorCode"` /** * Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC (Required) */ AcceptedTime time.Time `json:"acceptedTime"` /** * Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC */ CompletedTime time.Time `json:"completedTime,omitempty"` }
NarrowcastProgressResponse NarrowcastProgressResponse https://developers.line.biz/en/reference/messaging-api/#get-narrowcast-progress-status
type NarrowcastProgressResponsePHASE ¶
type NarrowcastProgressResponsePHASE string
NarrowcastProgressResponsePHASE type
The current status. One of: `waiting`: Messages are not yet ready to be sent. They are currently being filtered or processed in some way. `sending`: Messages are currently being sent. `succeeded`: Messages were sent successfully. This may not mean the messages were successfully received. `failed`: Messages failed to be sent. Use the failedDescription property to find the cause of the failure.
const ( NarrowcastProgressResponsePHASE_WAITING NarrowcastProgressResponsePHASE = "waiting" NarrowcastProgressResponsePHASE_SENDING NarrowcastProgressResponsePHASE = "sending" NarrowcastProgressResponsePHASE_SUCCEEDED NarrowcastProgressResponsePHASE = "succeeded" NarrowcastProgressResponsePHASE_FAILED NarrowcastProgressResponsePHASE = "failed" )
NarrowcastProgressResponsePHASE constants
type NarrowcastRequest ¶
type NarrowcastRequest struct { /** * List of Message objects. (Required) */ Messages []MessageInterface `json:"messages"` /** * Get Recipient */ Recipient RecipientInterface `json:"recipient,omitempty"` /** * Get Filter */ Filter *Filter `json:"filter,omitempty"` /** * Get Limit */ Limit *Limit `json:"limit,omitempty"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` }
NarrowcastRequest NarrowcastRequest https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
func (*NarrowcastRequest) MarshalJSON ¶
func (r *NarrowcastRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the NarrowcastRequest struct.
func (*NarrowcastRequest) UnmarshalJSON ¶
func (cr *NarrowcastRequest) UnmarshalJSON(data []byte) error
type NumberOfMessagesResponse ¶
type NumberOfMessagesResponse struct { /** * Aggregation process status. One of: `ready`: The number of messages can be obtained. `unready`: We haven't finished calculating the number of sent messages for the specified in date. For example, this property is returned when the delivery date or a future date is specified. Calculation usually takes about a day. `unavailable_for_privacy`: The total number of messages on the specified day is less than 20. `out_of_service`: The specified date is earlier than the date on which we first started calculating sent messages (March 31, 2018). (Required) */ Status NumberOfMessagesResponseSTATUS `json:"status"` /** * The number of messages delivered using the phone number on the date specified in `date`. The response has this property only when the value of `status` is `ready`. */ Success int64 `json:"success"` }
type NumberOfMessagesResponseSTATUS ¶
type NumberOfMessagesResponseSTATUS string
NumberOfMessagesResponseSTATUS type
Aggregation process status. One of: `ready`: The number of messages can be obtained. `unready`: We haven't finished calculating the number of sent messages for the specified in date. For example, this property is returned when the delivery date or a future date is specified. Calculation usually takes about a day. `unavailable_for_privacy`: The total number of messages on the specified day is less than 20. `out_of_service`: The specified date is earlier than the date on which we first started calculating sent messages (March 31, 2018).
const ( NumberOfMessagesResponseSTATUS_READY NumberOfMessagesResponseSTATUS = "ready" NumberOfMessagesResponseSTATUS_UNREADY NumberOfMessagesResponseSTATUS = "unready" NumberOfMessagesResponseSTATUS_UNAVAILABLE_FOR_PRIVACY NumberOfMessagesResponseSTATUS = "unavailable_for_privacy" NumberOfMessagesResponseSTATUS_OUT_OF_SERVICE NumberOfMessagesResponseSTATUS = "out_of_service" )
NumberOfMessagesResponseSTATUS constants
type OperatorDemographicFilter ¶
type OperatorDemographicFilter struct { DemographicFilter /** * Get And */ And []DemographicFilterInterface `json:"and,omitempty"` /** * Get Or */ Or []DemographicFilterInterface `json:"or,omitempty"` /** * Get Not */ Not DemographicFilterInterface `json:"not,omitempty"` }
func (*OperatorDemographicFilter) MarshalJSON ¶
func (r *OperatorDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the OperatorDemographicFilter struct.
func (*OperatorDemographicFilter) UnmarshalJSON ¶
func (cr *OperatorDemographicFilter) UnmarshalJSON(data []byte) error
type OperatorRecipient ¶
type OperatorRecipient struct { Recipient /** * Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects. */ And []RecipientInterface `json:"and,omitempty"` /** * Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects. */ Or []RecipientInterface `json:"or,omitempty"` /** * Get Not */ Not RecipientInterface `json:"not,omitempty"` }
func (*OperatorRecipient) MarshalJSON ¶
func (r *OperatorRecipient) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the OperatorRecipient struct.
func (*OperatorRecipient) UnmarshalJSON ¶
func (cr *OperatorRecipient) UnmarshalJSON(data []byte) error
type PnpMessagesRequest ¶
type PnpMessagesRequest struct { /** * Message to be sent. (Required) */ Messages []MessageInterface `json:"messages"` /** * Message destination. Specify a phone number that has been normalized to E.164 format and hashed with SHA256. (Required) */ To string `json:"to"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` }
PnpMessagesRequest PnpMessagesRequest https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message
func (*PnpMessagesRequest) MarshalJSON ¶
func (r *PnpMessagesRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the PnpMessagesRequest struct.
func (*PnpMessagesRequest) UnmarshalJSON ¶
func (cr *PnpMessagesRequest) UnmarshalJSON(data []byte) error
type PostbackAction ¶
type PostbackAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Get Data */ Data string `json:"data,omitempty"` /** * Get DisplayText */ DisplayText string `json:"displayText,omitempty"` /** * Get Text */ Text string `json:"text,omitempty"` /** * Get InputOption */ InputOption PostbackActionINPUT_OPTION `json:"inputOption,omitempty"` /** * Get FillInText */ FillInText string `json:"fillInText,omitempty"` }
func (*PostbackAction) MarshalJSON ¶
func (r *PostbackAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the PostbackAction struct.
type PostbackActionINPUT_OPTION ¶
type PostbackActionINPUT_OPTION string
const ( PostbackActionINPUT_OPTION_CLOSE_RICH_MENU PostbackActionINPUT_OPTION = "closeRichMenu" PostbackActionINPUT_OPTION_OPEN_RICH_MENU PostbackActionINPUT_OPTION = "openRichMenu" PostbackActionINPUT_OPTION_OPEN_KEYBOARD PostbackActionINPUT_OPTION = "openKeyboard" PostbackActionINPUT_OPTION_OPEN_VOICE PostbackActionINPUT_OPTION = "openVoice" )
PostbackActionINPUT_OPTION constants
type PushMessageRequest ¶
type PushMessageRequest struct { /** * ID of the receiver. (Required) */ To string `json:"to"` /** * List of Message objects. (Required) */ Messages []MessageInterface `json:"messages"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` /** * List of aggregation unit name. Case-sensitive. This functions can only be used by corporate users who have submitted the required applications. */ CustomAggregationUnits []string `json:"customAggregationUnits"` }
PushMessageRequest PushMessageRequest https://developers.line.biz/en/reference/messaging-api/#send-push-message
func (*PushMessageRequest) MarshalJSON ¶
func (r *PushMessageRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the PushMessageRequest struct.
func (*PushMessageRequest) UnmarshalJSON ¶
func (cr *PushMessageRequest) UnmarshalJSON(data []byte) error
type PushMessageResponse ¶
type PushMessageResponse struct { /** * Array of sent messages. (Required) */ SentMessages []SentMessage `json:"sentMessages"` }
PushMessageResponse PushMessageResponse https://developers.line.biz/en/reference/messaging-api/#send-push-message-response
type QuickReply ¶
type QuickReply struct { /** * Quick reply button objects. */ Items []QuickReplyItem `json:"items,omitempty"` }
QuickReply Quick reply https://developers.line.biz/en/reference/messaging-api/#items-object
type QuickReplyItem ¶
type QuickReplyItem struct { /** * URL of the icon that is displayed at the beginning of the button */ ImageUrl string `json:"imageUrl,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` /** * `action` */ Type string `json:"type,omitempty"` }
QuickReplyItem QuickReplyItem https://developers.line.biz/en/reference/messaging-api/#items-object
func (*QuickReplyItem) MarshalJSON ¶
func (r *QuickReplyItem) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the QuickReplyItem struct.
func (*QuickReplyItem) UnmarshalJSON ¶
func (cr *QuickReplyItem) UnmarshalJSON(data []byte) error
type QuotaConsumptionResponse ¶
type QuotaConsumptionResponse struct { /** * The number of sent messages in the current month (Required) */ TotalUsage int64 `json:"totalUsage"` }
QuotaConsumptionResponse QuotaConsumptionResponse https://developers.line.biz/en/reference/messaging-api/#get-consumption
type RecipientInterface ¶
type RecipientInterface interface {
GetType() string
}
func UnmarshalRecipient ¶
func UnmarshalRecipient(data []byte) (RecipientInterface, error)
type RedeliveryRecipient ¶
type RedeliveryRecipient struct { Recipient /** * Get RequestId */ RequestId string `json:"requestId,omitempty"` }
func (*RedeliveryRecipient) MarshalJSON ¶
func (r *RedeliveryRecipient) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RedeliveryRecipient struct.
type ReplyMessageRequest ¶
type ReplyMessageRequest struct { /** * replyToken received via webhook. (Required) */ ReplyToken string `json:"replyToken"` /** * List of messages. (Required) */ Messages []MessageInterface `json:"messages"` /** * `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. */ NotificationDisabled bool `json:"notificationDisabled"` }
ReplyMessageRequest ReplyMessageRequest https://developers.line.biz/en/reference/messaging-api/#send-reply-message
func (*ReplyMessageRequest) MarshalJSON ¶
func (r *ReplyMessageRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ReplyMessageRequest struct.
func (*ReplyMessageRequest) UnmarshalJSON ¶
func (cr *ReplyMessageRequest) UnmarshalJSON(data []byte) error
type ReplyMessageResponse ¶
type ReplyMessageResponse struct { /** * Array of sent messages. (Required) */ SentMessages []SentMessage `json:"sentMessages"` }
ReplyMessageResponse ReplyMessageResponse https://developers.line.biz/en/reference/messaging-api/#send-reply-message-response
type RichMenuAliasListResponse ¶
type RichMenuAliasListResponse struct { /** * Rich menu aliases. (Required) */ Aliases []RichMenuAliasResponse `json:"aliases"` }
RichMenuAliasListResponse RichMenuAliasListResponse https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-alias-list
type RichMenuAliasResponse ¶
type RichMenuArea ¶
type RichMenuArea struct { /** * Get Bounds */ Bounds *RichMenuBounds `json:"bounds,omitempty"` /** * Get Action */ Action ActionInterface `json:"action,omitempty"` }
func (*RichMenuArea) MarshalJSON ¶
func (r *RichMenuArea) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuArea struct.
func (*RichMenuArea) UnmarshalJSON ¶
func (cr *RichMenuArea) UnmarshalJSON(data []byte) error
type RichMenuBatchLinkOperation ¶
type RichMenuBatchLinkOperation struct { RichMenuBatchOperation /** * Get From */ From string `json:"from"` /** * Get To */ To string `json:"to"` }
func (*RichMenuBatchLinkOperation) MarshalJSON ¶
func (r *RichMenuBatchLinkOperation) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuBatchLinkOperation struct.
type RichMenuBatchOperation ¶
type RichMenuBatchOperation struct {
Type string `json:"type"`
}
func (RichMenuBatchOperation) GetType ¶
func (e RichMenuBatchOperation) GetType() string
type RichMenuBatchOperationInterface ¶
type RichMenuBatchOperationInterface interface {
GetType() string
}
func UnmarshalRichMenuBatchOperation ¶
func UnmarshalRichMenuBatchOperation(data []byte) (RichMenuBatchOperationInterface, error)
type RichMenuBatchProgressPhase ¶
type RichMenuBatchProgressPhase string
RichMenuBatchProgressPhase type
const ( RichMenuBatchProgressPhase_ONGOING RichMenuBatchProgressPhase = "ongoing" RichMenuBatchProgressPhase_SUCCEEDED RichMenuBatchProgressPhase = "succeeded" RichMenuBatchProgressPhase_FAILED RichMenuBatchProgressPhase = "failed" )
RichMenuBatchProgressPhase constants
type RichMenuBatchProgressResponse ¶
type RichMenuBatchProgressResponse struct { /** * Get Phase */ Phase RichMenuBatchProgressPhase `json:"phase"` /** * The accepted time in milliseconds of the request of batch control the rich menu. Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC (Required) */ AcceptedTime time.Time `json:"acceptedTime"` /** * The completed time in milliseconds of rich menu batch control. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC */ CompletedTime time.Time `json:"completedTime,omitempty"` }
RichMenuBatchProgressResponse RichMenuBatchProgressResponse https://developers.line.biz/en/reference/messaging-api/#get-batch-control-rich-menus-progress-status-response
type RichMenuBatchRequest ¶
type RichMenuBatchRequest struct { /** * Array of Rich menu operation object... (Required) */ Operations []RichMenuBatchOperationInterface `json:"operations"` /** * Key for retry. Key value is a string matching the regular expression pattern */ ResumeRequestKey string `json:"resumeRequestKey,omitempty"` }
func (*RichMenuBatchRequest) MarshalJSON ¶
func (r *RichMenuBatchRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuBatchRequest struct.
func (*RichMenuBatchRequest) UnmarshalJSON ¶
func (cr *RichMenuBatchRequest) UnmarshalJSON(data []byte) error
type RichMenuBatchUnlinkAllOperation ¶
type RichMenuBatchUnlinkAllOperation struct {
RichMenuBatchOperation
}
func (*RichMenuBatchUnlinkAllOperation) MarshalJSON ¶
func (r *RichMenuBatchUnlinkAllOperation) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuBatchUnlinkAllOperation struct.
type RichMenuBatchUnlinkOperation ¶
type RichMenuBatchUnlinkOperation struct { RichMenuBatchOperation /** * Get From */ From string `json:"from"` }
func (*RichMenuBatchUnlinkOperation) MarshalJSON ¶
func (r *RichMenuBatchUnlinkOperation) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuBatchUnlinkOperation struct.
type RichMenuBounds ¶
type RichMenuBounds struct { /** * Horizontal position relative to the top-left corner of the area. * minimum: 0 * maximum: 2147483647 */ X int64 `json:"x"` /** * Vertical position relative to the top-left corner of the area. * minimum: 0 * maximum: 2147483647 */ Y int64 `json:"y"` /** * Width of the area. * minimum: 1 * maximum: 2147483647 */ Width int64 `json:"width"` /** * Height of the area. * minimum: 1 * maximum: 2147483647 */ Height int64 `json:"height"` }
RichMenuBounds Rich menu bounds https://developers.line.biz/en/reference/messaging-api/#bounds-object
type RichMenuBulkLinkRequest ¶
type RichMenuBulkLinkRequest struct { /** * ID of a rich menu (Required) */ RichMenuId string `json:"richMenuId"` /** * Array of user IDs. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE. (Required) */ UserIds []string `json:"userIds"` }
RichMenuBulkLinkRequest RichMenuBulkLinkRequest https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users
type RichMenuBulkUnlinkRequest ¶
type RichMenuBulkUnlinkRequest struct { /** * Array of user IDs. Found in the `source` object of webhook event objects. Do not use the LINE ID used in LINE. (Required) */ UserIds []string `json:"userIds"` }
RichMenuBulkUnlinkRequest RichMenuBulkUnlinkRequest https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users
type RichMenuIdResponse ¶
type RichMenuIdResponse struct { /** * Rich menu ID (Required) */ RichMenuId string `json:"richMenuId"` }
type RichMenuListResponse ¶
type RichMenuListResponse struct { RichMenuResponse `json:"richmenus"` }Richmenus []
RichMenuListResponse RichMenuListResponse https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-list
type RichMenuRequest ¶
type RichMenuRequest struct { /** * Get Size */ Size *RichMenuSize `json:"size,omitempty"` /** * `true` to display the rich menu by default. Otherwise, `false`. */ Selected bool `json:"selected"` /** * Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users. */ Name string `json:"name,omitempty"` /** * Text displayed in the chat bar */ ChatBarText string `json:"chatBarText,omitempty"` /** * Array of area objects which define the coordinates and size of tappable areas */ Areas []RichMenuArea `json:"areas,omitempty"` }
type RichMenuResponse ¶
type RichMenuResponse struct { /** * ID of a rich menu (Required) */ RichMenuId string `json:"richMenuId"` /** * Get Size */ Size *RichMenuSize `json:"size"` /** * `true` to display the rich menu by default. Otherwise, `false`. (Required) */ Selected bool `json:"selected"` /** * Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users. (Required) */ Name string `json:"name"` /** * Text displayed in the chat bar (Required) */ ChatBarText string `json:"chatBarText"` /** * Array of area objects which define the coordinates and size of tappable areas (Required) */ Areas []RichMenuArea `json:"areas"` }
type RichMenuSize ¶
type RichMenuSwitchAction ¶
type RichMenuSwitchAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Get Data */ Data string `json:"data,omitempty"` /** * Get RichMenuAliasId */ RichMenuAliasId string `json:"richMenuAliasId,omitempty"` }
func (*RichMenuSwitchAction) MarshalJSON ¶
func (r *RichMenuSwitchAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the RichMenuSwitchAction struct.
type RoomMemberCountResponse ¶
type RoomMemberCountResponse struct { /** * The count of members in the multi-person chat. The number returned excludes the LINE Official Account. (Required) */ Count int32 `json:"count"` }
RoomMemberCountResponse RoomMemberCountResponse https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
type RoomUserProfileResponse ¶
type RoomUserProfileResponse struct { /** * User's display name (Required) */ DisplayName string `json:"displayName"` /** * User ID (Required) */ UserId string `json:"userId"` /** * Profile image URL. `https` image URL. Not included in the response if the user doesn't have a profile image. */ PictureUrl string `json:"pictureUrl,omitempty"` }
RoomUserProfileResponse RoomUserProfileResponse https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
type SentMessage ¶
type SetWebhookEndpointRequest ¶
type SetWebhookEndpointRequest struct { /** * A valid webhook URL. (Required) */ Endpoint string `json:"endpoint"` }
SetWebhookEndpointRequest SetWebhookEndpointRequest https://developers.line.biz/en/reference/messaging-api/#set-webhook-endpoint-url
type ShowLoadingAnimationRequest ¶ added in v8.6.0
type ShowLoadingAnimationRequest struct { /** * User ID of the target user for whom the loading animation is to be displayed. (Required) */ ChatId string `json:"chatId"` /** * The number of seconds to display the loading indicator. It must be a multiple of 5. The maximum value is 60 seconds. * minimum: 5 * maximum: 60 */ LoadingSeconds int32 `json:"loadingSeconds"` }
ShowLoadingAnimationRequest ShowLoadingAnimationRequest https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator-request-body
type StickerMessage ¶
type StickerMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get PackageId */ PackageId string `json:"packageId"` /** * Get StickerId */ StickerId string `json:"stickerId"` /** * Quote token of the message you want to quote. */ QuoteToken string `json:"quoteToken,omitempty"` }
StickerMessage StickerMessage https://developers.line.biz/en/reference/messaging-api/#sticker-message
func (*StickerMessage) MarshalJSON ¶
func (r *StickerMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the StickerMessage struct.
type SubscribedMembershipPlan ¶ added in v8.5.0
type SubscribedMembershipPlan struct { /** * Membership plan ID. (Required) */ MembershipId int32 `json:"membershipId"` /** * Membership plan name. (Required) */ Title string `json:"title"` /** * Membership plan description. (Required) */ Description string `json:"description"` /** * List of membership plan perks. (Required) */ Benefits []string `json:"benefits"` /** * Monthly fee for membership plan. (e.g. 1500.00) (Required) */ Price float64 `json:"price"` /** * The currency of membership.price. (Required) */ Currency SubscribedMembershipPlanCURRENCY `json:"currency"` }
type SubscribedMembershipPlanCURRENCY ¶ added in v8.5.0
type SubscribedMembershipPlanCURRENCY string
SubscribedMembershipPlanCURRENCY type
The currency of membership.price.
const ( SubscribedMembershipPlanCURRENCY_JPY SubscribedMembershipPlanCURRENCY = "JPY" SubscribedMembershipPlanCURRENCY_TWD SubscribedMembershipPlanCURRENCY = "TWD" SubscribedMembershipPlanCURRENCY_THB SubscribedMembershipPlanCURRENCY = "THB" )
SubscribedMembershipPlanCURRENCY constants
type SubscribedMembershipUser ¶ added in v8.5.0
type SubscribedMembershipUser struct { /** * The user's member number in the membership plan. (Required) */ MembershipNo int32 `json:"membershipNo"` /** * UNIX timestamp at which the user subscribed to the membership. (Required) */ JoinedTime int32 `json:"joinedTime"` /** * Next payment date for membership plan. - Format: yyyy-MM-dd (e.g. 2024-02-08) - Timezone: UTC+9 (Required) */ NextBillingDate string `json:"nextBillingDate"` /** * The period of time in months that the user has been subscribed to a membership plan. If a user previously canceled and then re-subscribed to the same membership plan, only the period after the re-subscription will be counted. (Required) */ TotalSubscriptionMonths int32 `json:"totalSubscriptionMonths"` }
type Subscription ¶ added in v8.5.0
type Subscription struct { /** * Get Membership */ Membership *SubscribedMembershipPlan `json:"membership"` /** * Get User */ User *SubscribedMembershipUser `json:"user"` }
type SubscriptionPeriodDemographic ¶
type SubscriptionPeriodDemographic string
SubscriptionPeriodDemographic type
const ( SubscriptionPeriodDemographic__7 SubscriptionPeriodDemographic = "day_7" SubscriptionPeriodDemographic__30 SubscriptionPeriodDemographic = "day_30" SubscriptionPeriodDemographic__90 SubscriptionPeriodDemographic = "day_90" SubscriptionPeriodDemographic__180 SubscriptionPeriodDemographic = "day_180" SubscriptionPeriodDemographic__365 SubscriptionPeriodDemographic = "day_365" )
SubscriptionPeriodDemographic constants
type SubscriptionPeriodDemographicFilter ¶
type SubscriptionPeriodDemographicFilter struct { DemographicFilter /** * Get Gte */ Gte SubscriptionPeriodDemographic `json:"gte,omitempty"` /** * Get Lt */ Lt SubscriptionPeriodDemographic `json:"lt,omitempty"` }
func (*SubscriptionPeriodDemographicFilter) MarshalJSON ¶
func (r *SubscriptionPeriodDemographicFilter) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the SubscriptionPeriodDemographicFilter struct.
type TemplateImageAspectRatio ¶ added in v8.2.0
type TemplateImageAspectRatio string
TemplateImageAspectRatio type
const ( TemplateImageAspectRatio_RECTANGLE TemplateImageAspectRatio = "rectangle" TemplateImageAspectRatio_SQUARE TemplateImageAspectRatio = "square" )
TemplateImageAspectRatio constants
type TemplateImageSize ¶ added in v8.2.0
type TemplateImageSize string
TemplateImageSize type
const ( TemplateImageSize_COVER TemplateImageSize = "cover" TemplateImageSize_CONTAIN TemplateImageSize = "contain" )
TemplateImageSize constants
type TemplateInterface ¶
type TemplateInterface interface {
GetType() string
}
func UnmarshalTemplate ¶
func UnmarshalTemplate(data []byte) (TemplateInterface, error)
type TemplateMessage ¶
type TemplateMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get AltText */ AltText string `json:"altText"` /** * Get Template */ Template TemplateInterface `json:"template"` }
TemplateMessage TemplateMessage https://developers.line.biz/en/reference/messaging-api/#template-messages
func (*TemplateMessage) MarshalJSON ¶
func (r *TemplateMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the TemplateMessage struct.
func (*TemplateMessage) UnmarshalJSON ¶
func (cr *TemplateMessage) UnmarshalJSON(data []byte) error
type TestWebhookEndpointRequest ¶
type TestWebhookEndpointRequest struct { /** * A webhook URL to be validated. */ Endpoint string `json:"endpoint,omitempty"` }
TestWebhookEndpointRequest TestWebhookEndpointRequest https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
type TestWebhookEndpointResponse ¶
type TestWebhookEndpointResponse struct { /** * Result of the communication from the LINE platform to the webhook URL. */ Success bool `json:"success"` /** * Time of the event in milliseconds. Even in the case of a redelivered webhook, it represents the time the event occurred, not the time it was redelivered. (Required) */ Timestamp time.Time `json:"timestamp"` /** * The HTTP status code. If the webhook response isn't received, the status code is set to zero or a negative number. (Required) */ StatusCode int32 `json:"statusCode"` /** * Reason for the response. (Required) */ Reason string `json:"reason"` /** * Details of the response. (Required) */ Detail string `json:"detail"` }
TestWebhookEndpointResponse TestWebhookEndpointResponse https://developers.line.biz/en/reference/messaging-api/#test-webhook-endpoint
type TextMessage ¶
type TextMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get Text */ Text string `json:"text"` /** * Get Emojis */ Emojis []Emoji `json:"emojis,omitempty"` /** * Quote token of the message you want to quote. */ QuoteToken string `json:"quoteToken,omitempty"` }
TextMessage TextMessage https://developers.line.biz/en/reference/messaging-api/#text-message
func (*TextMessage) MarshalJSON ¶
func (r *TextMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the TextMessage struct.
type UnknownAction ¶
type UnknownAction struct { ActionInterface Type string Raw map[string]json.RawMessage }
func (UnknownAction) GetType ¶
func (e UnknownAction) GetType() string
type UnknownDemographicFilter ¶
type UnknownDemographicFilter struct { DemographicFilterInterface Type string Raw map[string]json.RawMessage }
func (UnknownDemographicFilter) GetType ¶
func (e UnknownDemographicFilter) GetType() string
type UnknownFlexBoxBackground ¶
type UnknownFlexBoxBackground struct { FlexBoxBackgroundInterface Type string Raw map[string]json.RawMessage }
func (UnknownFlexBoxBackground) GetType ¶
func (e UnknownFlexBoxBackground) GetType() string
type UnknownFlexComponent ¶
type UnknownFlexComponent struct { FlexComponentInterface Type string Raw map[string]json.RawMessage }
func (UnknownFlexComponent) GetType ¶
func (e UnknownFlexComponent) GetType() string
type UnknownFlexContainer ¶
type UnknownFlexContainer struct { FlexContainerInterface Type string Raw map[string]json.RawMessage }
func (UnknownFlexContainer) GetType ¶
func (e UnknownFlexContainer) GetType() string
type UnknownImagemapAction ¶
type UnknownImagemapAction struct { ImagemapActionInterface Type string Raw map[string]json.RawMessage }
func (UnknownImagemapAction) GetType ¶
func (e UnknownImagemapAction) GetType() string
type UnknownMessage ¶
type UnknownMessage struct { MessageInterface Type string Raw map[string]json.RawMessage }
func (UnknownMessage) GetType ¶
func (e UnknownMessage) GetType() string
type UnknownRecipient ¶
type UnknownRecipient struct { RecipientInterface Type string Raw map[string]json.RawMessage }
func (UnknownRecipient) GetType ¶
func (e UnknownRecipient) GetType() string
type UnknownRichMenuBatchOperation ¶
type UnknownRichMenuBatchOperation struct { RichMenuBatchOperationInterface Type string Raw map[string]json.RawMessage }
func (UnknownRichMenuBatchOperation) GetType ¶
func (e UnknownRichMenuBatchOperation) GetType() string
type UnknownTemplate ¶
type UnknownTemplate struct { TemplateInterface Type string Raw map[string]json.RawMessage }
func (UnknownTemplate) GetType ¶
func (e UnknownTemplate) GetType() string
type UpdateRichMenuAliasRequest ¶
type UpdateRichMenuAliasRequest struct { /** * The rich menu ID to be associated with the rich menu alias. (Required) */ RichMenuId string `json:"richMenuId"` }
UpdateRichMenuAliasRequest UpdateRichMenuAliasRequest https://developers.line.biz/en/reference/messaging-api/#update-rich-menu-alias
type UriAction ¶
type UriAction struct { Action /** * Label for the action. */ Label string `json:"label,omitempty"` /** * Get Uri */ Uri string `json:"uri,omitempty"` /** * Get AltUri */ AltUri *AltUri `json:"altUri,omitempty"` }
func (*UriAction) MarshalJSON ¶
MarshalJSON customizes the JSON serialization of the UriAction struct.
type UriImagemapAction ¶
type UriImagemapAction struct { ImagemapAction /** * Get Area */ Area *ImagemapArea `json:"area"` /** * Get LinkUri */ LinkUri string `json:"linkUri"` /** * Get Label */ Label string `json:"label,omitempty"` }
func (*UriImagemapAction) MarshalJSON ¶
func (r *UriImagemapAction) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the UriImagemapAction struct.
type UserProfileResponse ¶
type UserProfileResponse struct { /** * User's display name (Required) */ DisplayName string `json:"displayName"` /** * User ID (Required) */ UserId string `json:"userId"` /** * Profile image URL. `https` image URL. Not included in the response if the user doesn't have a profile image. */ PictureUrl string `json:"pictureUrl,omitempty"` /** * User's status message. Not included in the response if the user doesn't have a status message. */ StatusMessage string `json:"statusMessage,omitempty"` /** * User's language, as a BCP 47 language tag. Not included in the response if the user hasn't yet consented to the LINE Privacy Policy. */ Language string `json:"language,omitempty"` }
UserProfileResponse UserProfileResponse https://developers.line.biz/en/reference/messaging-api/#get-profile
type ValidateMessageRequest ¶
type ValidateMessageRequest struct { /** * Array of message objects to validate (Required) */ Messages []MessageInterface `json:"messages"` }
func (*ValidateMessageRequest) MarshalJSON ¶
func (r *ValidateMessageRequest) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the ValidateMessageRequest struct.
func (*ValidateMessageRequest) UnmarshalJSON ¶
func (cr *ValidateMessageRequest) UnmarshalJSON(data []byte) error
type VideoMessage ¶
type VideoMessage struct { Message /** * Get QuickReply */ QuickReply *QuickReply `json:"quickReply,omitempty"` /** * Get Sender */ Sender *Sender `json:"sender,omitempty"` /** * Get OriginalContentUrl */ OriginalContentUrl string `json:"originalContentUrl"` /** * Get PreviewImageUrl */ PreviewImageUrl string `json:"previewImageUrl"` /** * Get TrackingId */ TrackingId string `json:"trackingId,omitempty"` }
VideoMessage VideoMessage https://developers.line.biz/en/reference/messaging-api/#video-message
func (*VideoMessage) MarshalJSON ¶
func (r *VideoMessage) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON serialization of the VideoMessage struct.
Source Files ¶
- api_messaging_api.go
- api_messaging_api_blob.go
- model_action.go
- model_age_demographic.go
- model_age_demographic_filter.go
- model_alt_uri.go
- model_app_type_demographic.go
- model_app_type_demographic_filter.go
- model_area_demographic.go
- model_area_demographic_filter.go
- model_audience_match_messages_request.go
- model_audience_recipient.go
- model_audio_message.go
- model_bot_info_response.go
- model_broadcast_request.go
- model_buttons_template.go
- model_camera_action.go
- model_camera_roll_action.go
- model_carousel_column.go
- model_carousel_template.go
- model_chat_reference.go
- model_clipboard_action.go
- model_clipboard_imagemap_action.go
- model_confirm_template.go
- model_create_rich_menu_alias_request.go
- model_datetime_picker_action.go
- model_demographic_filter.go
- model_emoji.go
- model_error_detail.go
- model_error_response.go
- model_filter.go
- model_flex_block_style.go
- model_flex_box.go
- model_flex_box_background.go
- model_flex_box_border_width.go
- model_flex_box_corner_radius.go
- model_flex_box_linear_gradient.go
- model_flex_box_padding.go
- model_flex_box_spacing.go
- model_flex_bubble.go
- model_flex_bubble_styles.go
- model_flex_button.go
- model_flex_carousel.go
- model_flex_component.go
- model_flex_container.go
- model_flex_filler.go
- model_flex_icon.go
- model_flex_icon_size.go
- model_flex_image.go
- model_flex_image_size.go
- model_flex_margin.go
- model_flex_message.go
- model_flex_offset.go
- model_flex_separator.go
- model_flex_span.go
- model_flex_span_size.go
- model_flex_text.go
- model_flex_text_font_size.go
- model_flex_video.go
- model_gender_demographic.go
- model_gender_demographic_filter.go
- model_get_aggregation_unit_name_list_response.go
- model_get_aggregation_unit_usage_response.go
- model_get_followers_response.go
- model_get_membership_subscription_response.go
- model_get_message_content_transcoding_response.go
- model_get_webhook_endpoint_response.go
- model_group_member_count_response.go
- model_group_summary_response.go
- model_group_user_profile_response.go
- model_image_carousel_column.go
- model_image_carousel_template.go
- model_image_message.go
- model_imagemap_action.go
- model_imagemap_area.go
- model_imagemap_base_size.go
- model_imagemap_external_link.go
- model_imagemap_message.go
- model_imagemap_video.go
- model_issue_link_token_response.go
- model_limit.go
- model_location_action.go
- model_location_message.go
- model_mark_messages_as_read_request.go
- model_members_ids_response.go
- model_membership.go
- model_membership_list_response.go
- model_message.go
- model_message_action.go
- model_message_imagemap_action.go
- model_message_quota_response.go
- model_multicast_request.go
- model_narrowcast_progress_response.go
- model_narrowcast_request.go
- model_number_of_messages_response.go
- model_operator_demographic_filter.go
- model_operator_recipient.go
- model_pnp_messages_request.go
- model_postback_action.go
- model_push_message_request.go
- model_push_message_response.go
- model_quick_reply.go
- model_quick_reply_item.go
- model_quota_consumption_response.go
- model_quota_type.go
- model_recipient.go
- model_redelivery_recipient.go
- model_reply_message_request.go
- model_reply_message_response.go
- model_rich_menu_alias_list_response.go
- model_rich_menu_alias_response.go
- model_rich_menu_area.go
- model_rich_menu_batch_link_operation.go
- model_rich_menu_batch_operation.go
- model_rich_menu_batch_progress_phase.go
- model_rich_menu_batch_progress_response.go
- model_rich_menu_batch_request.go
- model_rich_menu_batch_unlink_all_operation.go
- model_rich_menu_batch_unlink_operation.go
- model_rich_menu_bounds.go
- model_rich_menu_bulk_link_request.go
- model_rich_menu_bulk_unlink_request.go
- model_rich_menu_id_response.go
- model_rich_menu_list_response.go
- model_rich_menu_request.go
- model_rich_menu_response.go
- model_rich_menu_size.go
- model_rich_menu_switch_action.go
- model_room_member_count_response.go
- model_room_user_profile_response.go
- model_sender.go
- model_sent_message.go
- model_set_webhook_endpoint_request.go
- model_show_loading_animation_request.go
- model_sticker_message.go
- model_subscribed_membership_plan.go
- model_subscribed_membership_user.go
- model_subscription.go
- model_subscription_period_demographic.go
- model_subscription_period_demographic_filter.go
- model_template.go
- model_template_image_aspect_ratio.go
- model_template_image_size.go
- model_template_message.go
- model_test_webhook_endpoint_request.go
- model_test_webhook_endpoint_response.go
- model_text_message.go
- model_update_rich_menu_alias_request.go
- model_uri_action.go
- model_uri_imagemap_action.go
- model_user_profile_response.go
- model_validate_message_request.go
- model_video_message.go