Documentation ¶
Index ¶
- type AddAudienceToAudienceGroupRequest
- type Audience
- type AudienceGroup
- type AudienceGroupAuthorityLevel
- type AudienceGroupCreateRoute
- type AudienceGroupFailedType
- type AudienceGroupJob
- type AudienceGroupJobFailedType
- type AudienceGroupJobStatus
- type AudienceGroupJobType
- type AudienceGroupPermission
- type AudienceGroupStatus
- type AudienceGroupType
- type CreateAudienceGroupRequest
- type CreateAudienceGroupResponse
- type CreateAudienceGroupResponseCREATE_ROUTE
- type CreateAudienceGroupResponsePERMISSION
- type CreateClickBasedAudienceGroupRequest
- type CreateClickBasedAudienceGroupResponse
- type CreateClickBasedAudienceGroupResponseCREATE_ROUTE
- type CreateClickBasedAudienceGroupResponsePERMISSION
- type CreateImpBasedAudienceGroupRequest
- type CreateImpBasedAudienceGroupResponse
- type ErrorDetail
- type ErrorResponse
- type GetAudienceDataResponse
- type GetAudienceGroupAuthorityLevelResponse
- type GetAudienceGroupsResponse
- type ManageAudienceAPI
- func (client *ManageAudienceAPI) ActivateAudienceGroup(audienceGroupId int64) (struct{}, error)
- func (client *ManageAudienceAPI) ActivateAudienceGroupWithHttpInfo(audienceGroupId int64) (*http.Response, struct{}, error)
- func (client *ManageAudienceAPI) AddAudienceToAudienceGroup(addAudienceToAudienceGroupRequest *AddAudienceToAudienceGroupRequest) (struct{}, error)
- func (client *ManageAudienceAPI) AddAudienceToAudienceGroupWithHttpInfo(addAudienceToAudienceGroupRequest *AddAudienceToAudienceGroupRequest) (*http.Response, struct{}, error)
- func (client *ManageAudienceAPI) CreateAudienceGroup(createAudienceGroupRequest *CreateAudienceGroupRequest) (*CreateAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) CreateAudienceGroupWithHttpInfo(createAudienceGroupRequest *CreateAudienceGroupRequest) (*http.Response, *CreateAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) CreateClickBasedAudienceGroup(createClickBasedAudienceGroupRequest *CreateClickBasedAudienceGroupRequest) (*CreateClickBasedAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) CreateClickBasedAudienceGroupWithHttpInfo(createClickBasedAudienceGroupRequest *CreateClickBasedAudienceGroupRequest) (*http.Response, *CreateClickBasedAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) CreateImpBasedAudienceGroup(createImpBasedAudienceGroupRequest *CreateImpBasedAudienceGroupRequest) (*CreateImpBasedAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) CreateImpBasedAudienceGroupWithHttpInfo(createImpBasedAudienceGroupRequest *CreateImpBasedAudienceGroupRequest) (*http.Response, *CreateImpBasedAudienceGroupResponse, error)
- func (client *ManageAudienceAPI) DeleteAudienceGroup(audienceGroupId int64) (struct{}, error)
- func (client *ManageAudienceAPI) DeleteAudienceGroupWithHttpInfo(audienceGroupId int64) (*http.Response, struct{}, error)
- func (client *ManageAudienceAPI) Do(req *http.Request) (*http.Response, error)
- func (client *ManageAudienceAPI) GetAudienceData(audienceGroupId int64) (*GetAudienceDataResponse, error)
- func (client *ManageAudienceAPI) GetAudienceDataWithHttpInfo(audienceGroupId int64) (*http.Response, *GetAudienceDataResponse, error)
- func (client *ManageAudienceAPI) GetAudienceGroupAuthorityLevel() (*GetAudienceGroupAuthorityLevelResponse, error)
- func (client *ManageAudienceAPI) GetAudienceGroupAuthorityLevelWithHttpInfo() (*http.Response, *GetAudienceGroupAuthorityLevelResponse, error)
- func (client *ManageAudienceAPI) GetAudienceGroups(page int64, description string, status AudienceGroupStatus, size int64, ...) (*GetAudienceGroupsResponse, error)
- func (client *ManageAudienceAPI) GetAudienceGroupsWithHttpInfo(page int64, description string, status AudienceGroupStatus, size int64, ...) (*http.Response, *GetAudienceGroupsResponse, error)
- func (client *ManageAudienceAPI) UpdateAudienceGroupAuthorityLevel(...) (struct{}, error)
- func (client *ManageAudienceAPI) UpdateAudienceGroupAuthorityLevelWithHttpInfo(...) (*http.Response, struct{}, error)
- func (client *ManageAudienceAPI) UpdateAudienceGroupDescription(audienceGroupId int64, ...) (struct{}, error)
- func (client *ManageAudienceAPI) UpdateAudienceGroupDescriptionWithHttpInfo(audienceGroupId int64, ...) (*http.Response, struct{}, error)
- func (client *ManageAudienceAPI) Url(endpointPath string) string
- func (call *ManageAudienceAPI) WithContext(ctx context.Context) *ManageAudienceAPI
- type ManageAudienceAPIOption
- type ManageAudienceBlobAPI
- func (client *ManageAudienceBlobAPI) AddUserIdsToAudience(file *os.File, audienceGroupId int64, uploadDescription string) (struct{}, error)
- func (client *ManageAudienceBlobAPI) AddUserIdsToAudienceWithHttpInfo(file *os.File, audienceGroupId int64, uploadDescription string) (*http.Response, struct{}, error)
- func (client *ManageAudienceBlobAPI) CreateAudienceForUploadingUserIds(file *os.File, description string, isIfaAudience bool, ...) (*CreateAudienceGroupResponse, error)
- func (client *ManageAudienceBlobAPI) CreateAudienceForUploadingUserIdsWithHttpInfo(file *os.File, description string, isIfaAudience bool, ...) (*http.Response, *CreateAudienceGroupResponse, error)
- func (client *ManageAudienceBlobAPI) Do(req *http.Request) (*http.Response, error)
- func (client *ManageAudienceBlobAPI) Url(endpointPath string) string
- func (call *ManageAudienceBlobAPI) WithContext(ctx context.Context) *ManageAudienceBlobAPI
- type ManageAudienceBlobAPIOption
- type UpdateAudienceGroupAuthorityLevelRequest
- type UpdateAudienceGroupDescriptionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAudienceToAudienceGroupRequest ¶
type AddAudienceToAudienceGroupRequest struct { /** * The audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * The audience's name. */ UploadDescription string `json:"uploadDescription,omitempty"` /** * An array of up to 10,000 user IDs or IFAs. */ Audiences []Audience `json:"audiences,omitempty"` }
AddAudienceToAudienceGroupRequest Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON) https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
type Audience ¶
type Audience struct { /** * A user ID or IFA. You can specify an empty array. */ Id string `json:"id,omitempty"` }
type AudienceGroup ¶
type AudienceGroup struct { /** * The audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * Get Type */ Type AudienceGroupType `json:"type,omitempty"` /** * The audience's name. */ Description string `json:"description,omitempty"` /** * Get Status */ Status AudienceGroupStatus `json:"status,omitempty"` /** * Get FailedType */ FailedType AudienceGroupFailedType `json:"failedType,omitempty"` /** * The number of users included in the audience. */ AudienceCount int64 `json:"audienceCount"` /** * When the audience was created (in UNIX time). */ Created int64 `json:"created"` /** * The request ID that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK or IMP. */ RequestId string `json:"requestId,omitempty"` /** * The URL that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK and link URL is specified. */ ClickUrl string `json:"clickUrl,omitempty"` /** * The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. */ IsIfaAudience bool `json:"isIfaAudience"` /** * Get Permission */ Permission AudienceGroupPermission `json:"permission,omitempty"` /** * Get CreateRoute */ CreateRoute AudienceGroupCreateRoute `json:"createRoute,omitempty"` }
type AudienceGroupAuthorityLevel ¶
type AudienceGroupAuthorityLevel string
AudienceGroupAuthorityLevel type
const ( AudienceGroupAuthorityLevel_PUBLIC AudienceGroupAuthorityLevel = "PUBLIC" AudienceGroupAuthorityLevel_PRIVATE AudienceGroupAuthorityLevel = "PRIVATE" )
AudienceGroupAuthorityLevel constants
type AudienceGroupCreateRoute ¶
type AudienceGroupCreateRoute string
AudienceGroupCreateRoute type
const ( AudienceGroupCreateRoute_OA_MANAGER AudienceGroupCreateRoute = "OA_MANAGER" AudienceGroupCreateRoute_MESSAGING_API AudienceGroupCreateRoute = "MESSAGING_API" AudienceGroupCreateRoute_POINT_AD AudienceGroupCreateRoute = "POINT_AD" AudienceGroupCreateRoute_AD_MANAGER AudienceGroupCreateRoute = "AD_MANAGER" )
AudienceGroupCreateRoute constants
type AudienceGroupFailedType ¶
type AudienceGroupFailedType string
AudienceGroupFailedType type
const ( AudienceGroupFailedType_AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT AudienceGroupFailedType = "AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT" AudienceGroupFailedType_INTERNAL_ERROR AudienceGroupFailedType = "INTERNAL_ERROR" AudienceGroupFailedType_NULL AudienceGroupFailedType = "null" )
AudienceGroupFailedType constants
type AudienceGroupJob ¶
type AudienceGroupJob struct { /** * A job ID. */ AudienceGroupJobId int64 `json:"audienceGroupJobId"` /** * An audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * The job's description. */ Description string `json:"description,omitempty"` /** * Get Type */ Type AudienceGroupJobType `json:"type,omitempty"` /** * Get JobStatus */ JobStatus AudienceGroupJobStatus `json:"jobStatus,omitempty"` /** * Get FailedType */ FailedType AudienceGroupJobFailedType `json:"failedType,omitempty"` /** * The number of accounts (recipients) that were added or removed. */ AudienceCount int64 `json:"audienceCount"` /** * When the job was created (in UNIX time). */ Created int64 `json:"created"` }
AudienceGroupJob Audience group job https://developers.line.biz/en/reference/messaging-api/#get-audience-group
type AudienceGroupJobFailedType ¶
type AudienceGroupJobFailedType string
AudienceGroupJobFailedType type
const ( AudienceGroupJobFailedType_INTERNAL_ERROR AudienceGroupJobFailedType = "INTERNAL_ERROR" AudienceGroupJobFailedType_AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT AudienceGroupJobFailedType = "AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT" )
AudienceGroupJobFailedType constants
type AudienceGroupJobStatus ¶
type AudienceGroupJobStatus string
AudienceGroupJobStatus type
const ( AudienceGroupJobStatus_QUEUED AudienceGroupJobStatus = "QUEUED" AudienceGroupJobStatus_WORKING AudienceGroupJobStatus = "WORKING" AudienceGroupJobStatus_FINISHED AudienceGroupJobStatus = "FINISHED" AudienceGroupJobStatus_FAILED AudienceGroupJobStatus = "FAILED" )
AudienceGroupJobStatus constants
type AudienceGroupJobType ¶
type AudienceGroupJobType string
AudienceGroupJobType type
const (
AudienceGroupJobType_DIFF_ADD AudienceGroupJobType = "DIFF_ADD"
)
AudienceGroupJobType constants
type AudienceGroupPermission ¶
type AudienceGroupPermission string
AudienceGroupPermission type
const ( AudienceGroupPermission_READ AudienceGroupPermission = "READ" AudienceGroupPermission_READ_WRITE AudienceGroupPermission = "READ_WRITE" )
AudienceGroupPermission constants
type AudienceGroupStatus ¶
type AudienceGroupStatus string
AudienceGroupStatus type
const ( AudienceGroupStatus_IN_PROGRESS AudienceGroupStatus = "IN_PROGRESS" AudienceGroupStatus_READY AudienceGroupStatus = "READY" AudienceGroupStatus_FAILED AudienceGroupStatus = "FAILED" AudienceGroupStatus_EXPIRED AudienceGroupStatus = "EXPIRED" AudienceGroupStatus_INACTIVE AudienceGroupStatus = "INACTIVE" AudienceGroupStatus_ACTIVATING AudienceGroupStatus = "ACTIVATING" )
AudienceGroupStatus constants
type AudienceGroupType ¶
type AudienceGroupType string
AudienceGroupType type
const ( AudienceGroupType_UPLOAD AudienceGroupType = "UPLOAD" AudienceGroupType_CLICK AudienceGroupType = "CLICK" AudienceGroupType_IMP AudienceGroupType = "IMP" AudienceGroupType_CHAT_TAG AudienceGroupType = "CHAT_TAG" AudienceGroupType_FRIEND_PATH AudienceGroupType = "FRIEND_PATH" AudienceGroupType_RESERVATION AudienceGroupType = "RESERVATION" AudienceGroupType_APP_EVENT AudienceGroupType = "APP_EVENT" AudienceGroupType_VIDEO_VIEW AudienceGroupType = "VIDEO_VIEW" AudienceGroupType_WEBTRAFFIC AudienceGroupType = "WEBTRAFFIC" AudienceGroupType_IMAGE_CLICK AudienceGroupType = "IMAGE_CLICK" AudienceGroupType_RICHMENU_IMP AudienceGroupType = "RICHMENU_IMP" AudienceGroupType_RICHMENU_CLICK AudienceGroupType = "RICHMENU_CLICK" )
AudienceGroupType constants
type CreateAudienceGroupRequest ¶
type CreateAudienceGroupRequest struct { /** * The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical. Max character limit: 120 */ Description string `json:"description,omitempty"` /** * To specify recipients by IFAs: set true. To specify recipients by user IDs: set false or omit isIfaAudience property. */ IsIfaAudience bool `json:"isIfaAudience"` /** * The description to register for the job (in jobs[].description). */ UploadDescription string `json:"uploadDescription,omitempty"` /** * An array of user IDs or IFAs. Max number: 10,000 */ Audiences []Audience `json:"audiences,omitempty"` }
CreateAudienceGroupRequest Create audience for uploading user IDs (by JSON) https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
type CreateAudienceGroupResponse ¶
type CreateAudienceGroupResponse struct { /** * The audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * How the audience was created. `MESSAGING_API`: An audience created with Messaging API. */ CreateRoute CreateAudienceGroupResponseCREATE_ROUTE `json:"createRoute,omitempty"` /** * Get Type */ Type AudienceGroupType `json:"type,omitempty"` /** * The audience's name. */ Description string `json:"description,omitempty"` /** * When the audience was created (in UNIX time). */ Created int64 `json:"created"` /** * Audience's update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update. */ Permission CreateAudienceGroupResponsePERMISSION `json:"permission,omitempty"` /** * Time of audience expiration. Only returned for specific audiences. */ ExpireTimestamp float32 `json:"expireTimestamp"` /** * The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of: `true`: Accounts are specified with IFAs. `false` (default): Accounts are specified with user IDs. */ IsIfaAudience bool `json:"isIfaAudience"` }
CreateAudienceGroupResponse Create audience for uploading user IDs (by JSON) https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
type CreateAudienceGroupResponseCREATE_ROUTE ¶
type CreateAudienceGroupResponseCREATE_ROUTE string
CreateAudienceGroupResponseCREATE_ROUTE type
How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
const (
CreateAudienceGroupResponseCREATE_ROUTE_MESSAGING_API CreateAudienceGroupResponseCREATE_ROUTE = "MESSAGING_API"
)
CreateAudienceGroupResponseCREATE_ROUTE constants
type CreateAudienceGroupResponsePERMISSION ¶
type CreateAudienceGroupResponsePERMISSION string
CreateAudienceGroupResponsePERMISSION type
Audience's update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update.
const ( CreateAudienceGroupResponsePERMISSION_READ CreateAudienceGroupResponsePERMISSION = "READ" CreateAudienceGroupResponsePERMISSION_READ_WRITE CreateAudienceGroupResponsePERMISSION = "READ_WRITE" )
CreateAudienceGroupResponsePERMISSION constants
type CreateClickBasedAudienceGroupRequest ¶
type CreateClickBasedAudienceGroupRequest struct { /** * The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical. Max character limit: 120 */ Description string `json:"description,omitempty"` /** * The request ID of a broadcast or narrowcast message sent in the past 60 days. Each Messaging API request has a request ID. */ RequestId string `json:"requestId,omitempty"` /** * The URL clicked by the user. If empty, users who clicked any URL in the message are added to the list of recipients. Max character limit: 2,000 */ ClickUrl string `json:"clickUrl,omitempty"` }
CreateClickBasedAudienceGroupRequest Create audience for click-based retargeting https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
type CreateClickBasedAudienceGroupResponse ¶
type CreateClickBasedAudienceGroupResponse struct { /** * The audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * Get Type */ Type AudienceGroupType `json:"type,omitempty"` /** * The audience's name. */ Description string `json:"description,omitempty"` /** * When the audience was created (in UNIX time). */ Created int64 `json:"created"` /** * The request ID that was specified when the audience was created. */ RequestId string `json:"requestId,omitempty"` /** * The URL that was specified when the audience was created. */ ClickUrl string `json:"clickUrl,omitempty"` /** * How the audience was created. `MESSAGING_API`: An audience created with Messaging API. */ CreateRoute CreateClickBasedAudienceGroupResponseCREATE_ROUTE `json:"createRoute,omitempty"` /** * Audience's update permission. Audiences linked to the same channel will be READ_WRITE. - `READ`: Can use only. - `READ_WRITE`: Can use and update. */ Permission CreateClickBasedAudienceGroupResponsePERMISSION `json:"permission,omitempty"` /** * Time of audience expiration. Only returned for specific audiences. */ ExpireTimestamp int64 `json:"expireTimestamp"` /** * The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of: true: Accounts are specified with IFAs. false (default): Accounts are specified with user IDs. */ IsIfaAudience bool `json:"isIfaAudience"` }
CreateClickBasedAudienceGroupResponse Create audience for click-based retargeting https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
type CreateClickBasedAudienceGroupResponseCREATE_ROUTE ¶
type CreateClickBasedAudienceGroupResponseCREATE_ROUTE string
CreateClickBasedAudienceGroupResponseCREATE_ROUTE type
How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
const (
CreateClickBasedAudienceGroupResponseCREATE_ROUTE_MESSAGING_API CreateClickBasedAudienceGroupResponseCREATE_ROUTE = "MESSAGING_API"
)
CreateClickBasedAudienceGroupResponseCREATE_ROUTE constants
type CreateClickBasedAudienceGroupResponsePERMISSION ¶
type CreateClickBasedAudienceGroupResponsePERMISSION string
CreateClickBasedAudienceGroupResponsePERMISSION type
Audience's update permission. Audiences linked to the same channel will be READ_WRITE. - `READ`: Can use only. - `READ_WRITE`: Can use and update.
const ( CreateClickBasedAudienceGroupResponsePERMISSION_READ CreateClickBasedAudienceGroupResponsePERMISSION = "READ" CreateClickBasedAudienceGroupResponsePERMISSION_READ_WRITE CreateClickBasedAudienceGroupResponsePERMISSION = "READ_WRITE" )
CreateClickBasedAudienceGroupResponsePERMISSION constants
type CreateImpBasedAudienceGroupRequest ¶
type CreateImpBasedAudienceGroupRequest struct { /** * The audience's name. This is case-insensitive, meaning `AUDIENCE` and `audience` are considered identical. Max character limit: 120 */ Description string `json:"description,omitempty"` /** * The request ID of a broadcast or narrowcast message sent in the past 60 days. Each Messaging API request has a request ID. */ RequestId string `json:"requestId,omitempty"` }
CreateImpBasedAudienceGroupRequest Create audience for impression-based retargeting https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
type CreateImpBasedAudienceGroupResponse ¶
type CreateImpBasedAudienceGroupResponse struct { /** * The audience ID. */ AudienceGroupId int64 `json:"audienceGroupId"` /** * Get Type */ Type AudienceGroupType `json:"type,omitempty"` /** * The audience's name. */ Description string `json:"description,omitempty"` /** * When the audience was created (in UNIX time). */ Created int64 `json:"created"` /** * The request ID that was specified when the audience was created. */ RequestId string `json:"requestId,omitempty"` }
CreateImpBasedAudienceGroupResponse Create audience for impression-based retargeting https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
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"` }
ErrorResponse ErrorResponse https://developers.line.biz/en/reference/messaging-api/#error-responses
type GetAudienceDataResponse ¶
type GetAudienceDataResponse struct { /** * Get AudienceGroup */ AudienceGroup *AudienceGroup `json:"audienceGroup,omitempty"` /** * An array of jobs. This array is used to keep track of each attempt to add new user IDs or IFAs to an audience for uploading user IDs. Empty array is returned for any other type of audience. Max: 50 */ Jobs []AudienceGroupJob `json:"jobs,omitempty"` }
GetAudienceDataResponse Get audience data https://developers.line.biz/en/reference/messaging-api/#get-audience-group
type GetAudienceGroupAuthorityLevelResponse ¶
type GetAudienceGroupAuthorityLevelResponse struct { /** * Get AuthorityLevel */ AuthorityLevel AudienceGroupAuthorityLevel `json:"authorityLevel,omitempty"` }
GetAudienceGroupAuthorityLevelResponse Get the authority level of the audience https://developers.line.biz/en/reference/messaging-api/#get-authority-level
type GetAudienceGroupsResponse ¶
type GetAudienceGroupsResponse struct { /** * An array of audience data. If there are no audiences that match the specified filter, an empty array will be returned. */ AudienceGroups []AudienceGroup `json:"audienceGroups,omitempty"` /** * true when this is not the last page. */ HasNextPage bool `json:"hasNextPage"` /** * The total number of audiences that can be returned with the specified filter. */ TotalCount int64 `json:"totalCount"` /** * Of the audiences you can get with the specified filter, the number of audiences with the update permission set to READ_WRITE. */ ReadWriteAudienceGroupTotalCount int64 `json:"readWriteAudienceGroupTotalCount"` /** * The current page number. */ Page int64 `json:"page"` /** * The maximum number of audiences on the current page. */ Size int64 `json:"size"` }
GetAudienceGroupsResponse Gets data for more than one audience. https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
type ManageAudienceAPI ¶
type ManageAudienceAPI struct {
// contains filtered or unexported fields
}
func NewManageAudienceAPI ¶
func NewManageAudienceAPI(channelToken string, options ...ManageAudienceAPIOption) (*ManageAudienceAPI, error)
New returns a new bot client instance.
func (*ManageAudienceAPI) ActivateAudienceGroup ¶
func (client *ManageAudienceAPI) ActivateAudienceGroup( audienceGroupId int64, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#activate-audience-group
func (*ManageAudienceAPI) ActivateAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) ActivateAudienceGroupWithHttpInfo( audienceGroupId int64, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#activate-audience-group
func (*ManageAudienceAPI) AddAudienceToAudienceGroup ¶
func (client *ManageAudienceAPI) AddAudienceToAudienceGroup( addAudienceToAudienceGroupRequest *AddAudienceToAudienceGroupRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
func (*ManageAudienceAPI) AddAudienceToAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) AddAudienceToAudienceGroupWithHttpInfo( addAudienceToAudienceGroupRequest *AddAudienceToAudienceGroupRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
func (*ManageAudienceAPI) CreateAudienceGroup ¶
func (client *ManageAudienceAPI) CreateAudienceGroup( createAudienceGroupRequest *CreateAudienceGroupRequest, ) (*CreateAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
func (*ManageAudienceAPI) CreateAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) CreateAudienceGroupWithHttpInfo( createAudienceGroupRequest *CreateAudienceGroupRequest, ) (*http.Response, *CreateAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
func (*ManageAudienceAPI) CreateClickBasedAudienceGroup ¶
func (client *ManageAudienceAPI) CreateClickBasedAudienceGroup( createClickBasedAudienceGroupRequest *CreateClickBasedAudienceGroupRequest, ) (*CreateClickBasedAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
func (*ManageAudienceAPI) CreateClickBasedAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) CreateClickBasedAudienceGroupWithHttpInfo( createClickBasedAudienceGroupRequest *CreateClickBasedAudienceGroupRequest, ) (*http.Response, *CreateClickBasedAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
func (*ManageAudienceAPI) CreateImpBasedAudienceGroup ¶
func (client *ManageAudienceAPI) CreateImpBasedAudienceGroup( createImpBasedAudienceGroupRequest *CreateImpBasedAudienceGroupRequest, ) (*CreateImpBasedAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
func (*ManageAudienceAPI) CreateImpBasedAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) CreateImpBasedAudienceGroupWithHttpInfo( createImpBasedAudienceGroupRequest *CreateImpBasedAudienceGroupRequest, ) (*http.Response, *CreateImpBasedAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
func (*ManageAudienceAPI) DeleteAudienceGroup ¶
func (client *ManageAudienceAPI) DeleteAudienceGroup( audienceGroupId int64, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
func (*ManageAudienceAPI) DeleteAudienceGroupWithHttpInfo ¶
func (client *ManageAudienceAPI) DeleteAudienceGroupWithHttpInfo( audienceGroupId int64, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
func (*ManageAudienceAPI) GetAudienceData ¶
func (client *ManageAudienceAPI) GetAudienceData( audienceGroupId int64, ) (*GetAudienceDataResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-audience-group
func (*ManageAudienceAPI) GetAudienceDataWithHttpInfo ¶
func (client *ManageAudienceAPI) GetAudienceDataWithHttpInfo( audienceGroupId int64, ) (*http.Response, *GetAudienceDataResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-audience-group
func (*ManageAudienceAPI) GetAudienceGroupAuthorityLevel ¶
func (client *ManageAudienceAPI) GetAudienceGroupAuthorityLevel() (*GetAudienceGroupAuthorityLevelResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-authority-level
func (*ManageAudienceAPI) GetAudienceGroupAuthorityLevelWithHttpInfo ¶
func (client *ManageAudienceAPI) GetAudienceGroupAuthorityLevelWithHttpInfo() (*http.Response, *GetAudienceGroupAuthorityLevelResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-authority-level
func (*ManageAudienceAPI) GetAudienceGroups ¶
func (client *ManageAudienceAPI) GetAudienceGroups( page int64, description string, status AudienceGroupStatus, size int64, includesExternalPublicGroups bool, createRoute AudienceGroupCreateRoute, ) (*GetAudienceGroupsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
func (*ManageAudienceAPI) GetAudienceGroupsWithHttpInfo ¶
func (client *ManageAudienceAPI) GetAudienceGroupsWithHttpInfo( page int64, description string, status AudienceGroupStatus, size int64, includesExternalPublicGroups bool, createRoute AudienceGroupCreateRoute, ) (*http.Response, *GetAudienceGroupsResponse, error)
https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
func (*ManageAudienceAPI) UpdateAudienceGroupAuthorityLevel ¶
func (client *ManageAudienceAPI) UpdateAudienceGroupAuthorityLevel( updateAudienceGroupAuthorityLevelRequest *UpdateAudienceGroupAuthorityLevelRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#change-authority-level
func (*ManageAudienceAPI) UpdateAudienceGroupAuthorityLevelWithHttpInfo ¶
func (client *ManageAudienceAPI) UpdateAudienceGroupAuthorityLevelWithHttpInfo( updateAudienceGroupAuthorityLevelRequest *UpdateAudienceGroupAuthorityLevelRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#change-authority-level
func (*ManageAudienceAPI) UpdateAudienceGroupDescription ¶
func (client *ManageAudienceAPI) UpdateAudienceGroupDescription( audienceGroupId int64, updateAudienceGroupDescriptionRequest *UpdateAudienceGroupDescriptionRequest, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
func (*ManageAudienceAPI) UpdateAudienceGroupDescriptionWithHttpInfo ¶
func (client *ManageAudienceAPI) UpdateAudienceGroupDescriptionWithHttpInfo( audienceGroupId int64, updateAudienceGroupDescriptionRequest *UpdateAudienceGroupDescriptionRequest, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
func (*ManageAudienceAPI) Url ¶
func (client *ManageAudienceAPI) Url(endpointPath string) string
func (*ManageAudienceAPI) WithContext ¶
func (call *ManageAudienceAPI) WithContext(ctx context.Context) *ManageAudienceAPI
WithContext method
type ManageAudienceAPIOption ¶
type ManageAudienceAPIOption func(*ManageAudienceAPI) error
ManageAudienceAPIOption type
func WithEndpoint ¶
func WithEndpoint(endpoint string) ManageAudienceAPIOption
WithEndpointClient function
func WithHTTPClient ¶
func WithHTTPClient(c *http.Client) ManageAudienceAPIOption
WithHTTPClient function
type ManageAudienceBlobAPI ¶
type ManageAudienceBlobAPI struct {
// contains filtered or unexported fields
}
func NewManageAudienceBlobAPI ¶
func NewManageAudienceBlobAPI(channelToken string, options ...ManageAudienceBlobAPIOption) (*ManageAudienceBlobAPI, error)
New returns a new bot client instance.
func (*ManageAudienceBlobAPI) AddUserIdsToAudience ¶
func (client *ManageAudienceBlobAPI) AddUserIdsToAudience( file *os.File, audienceGroupId int64, uploadDescription string, ) (struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
func (*ManageAudienceBlobAPI) AddUserIdsToAudienceWithHttpInfo ¶
func (client *ManageAudienceBlobAPI) AddUserIdsToAudienceWithHttpInfo( file *os.File, audienceGroupId int64, uploadDescription string, ) (*http.Response, struct{}, error)
https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
func (*ManageAudienceBlobAPI) CreateAudienceForUploadingUserIds ¶
func (client *ManageAudienceBlobAPI) CreateAudienceForUploadingUserIds( file *os.File, description string, isIfaAudience bool, uploadDescription string, ) (*CreateAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group-by-file
func (*ManageAudienceBlobAPI) CreateAudienceForUploadingUserIdsWithHttpInfo ¶
func (client *ManageAudienceBlobAPI) CreateAudienceForUploadingUserIdsWithHttpInfo( file *os.File, description string, isIfaAudience bool, uploadDescription string, ) (*http.Response, *CreateAudienceGroupResponse, error)
https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group-by-file
func (*ManageAudienceBlobAPI) Url ¶
func (client *ManageAudienceBlobAPI) Url(endpointPath string) string
func (*ManageAudienceBlobAPI) WithContext ¶
func (call *ManageAudienceBlobAPI) WithContext(ctx context.Context) *ManageAudienceBlobAPI
WithContext method
type ManageAudienceBlobAPIOption ¶
type ManageAudienceBlobAPIOption func(*ManageAudienceBlobAPI) error
ManageAudienceBlobAPIOption type
func WithBlobEndpoint ¶
func WithBlobEndpoint(endpoint string) ManageAudienceBlobAPIOption
WithEndpointClient function
func WithBlobHTTPClient ¶
func WithBlobHTTPClient(c *http.Client) ManageAudienceBlobAPIOption
WithHTTPClient function
type UpdateAudienceGroupAuthorityLevelRequest ¶
type UpdateAudienceGroupAuthorityLevelRequest struct { /** * Get AuthorityLevel */ AuthorityLevel AudienceGroupAuthorityLevel `json:"authorityLevel,omitempty"` }
UpdateAudienceGroupAuthorityLevelRequest Change the authority level of the audience https://developers.line.biz/en/reference/messaging-api/#change-authority-level
type UpdateAudienceGroupDescriptionRequest ¶
type UpdateAudienceGroupDescriptionRequest struct { /** * The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical. Max character limit: 120 */ Description string `json:"description,omitempty"` }
UpdateAudienceGroupDescriptionRequest Rename an audience https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
Source Files ¶
- api_manage_audience.go
- api_manage_audience_blob.go
- model_add_audience_to_audience_group_request.go
- model_audience.go
- model_audience_group.go
- model_audience_group_authority_level.go
- model_audience_group_create_route.go
- model_audience_group_failed_type.go
- model_audience_group_job.go
- model_audience_group_job_failed_type.go
- model_audience_group_job_status.go
- model_audience_group_job_type.go
- model_audience_group_permission.go
- model_audience_group_status.go
- model_audience_group_type.go
- model_create_audience_group_request.go
- model_create_audience_group_response.go
- model_create_click_based_audience_group_request.go
- model_create_click_based_audience_group_response.go
- model_create_imp_based_audience_group_request.go
- model_create_imp_based_audience_group_response.go
- model_error_detail.go
- model_error_response.go
- model_get_audience_data_response.go
- model_get_audience_group_authority_level_response.go
- model_get_audience_groups_response.go
- model_update_audience_group_authority_level_request.go
- model_update_audience_group_description_request.go