You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnres, nil, fmt.Errorf("failed to read response body: %w", err)
819
+
}
820
+
res.Body=io.NopCloser(bodyReader)
821
+
returnres, nil, fmt.Errorf("unexpected status code: %d, %s", res.StatusCode, string(bodyBytes))
822
+
}
823
+
824
+
deferres.Body.Close()
825
+
826
+
decoder:=json.NewDecoder(res.Body)
827
+
result:=GetSharedAudienceDataResponse{}
828
+
iferr:=decoder.Decode(&result); err!=nil {
829
+
returnres, nil, fmt.Errorf("failed to decode JSON: %w", err)
830
+
}
831
+
returnres, &result, nil
832
+
833
+
}
834
+
835
+
// GetSharedAudienceGroups
836
+
//
837
+
// Gets data for more than one audience, including those shared by the Business Manager.
838
+
// Parameters:
839
+
// page The page to return when getting (paginated) results. Must be 1 or higher.
840
+
// description The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion.
841
+
// status The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
842
+
// size The number of audiences per page. Default: 20 Max: 40
843
+
// createRoute How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API.
// If you want to take advantage of the HTTPResponse object for status codes and headers, use this signature.
876
+
//
877
+
// Gets data for more than one audience, including those shared by the Business Manager.
878
+
// Parameters:
879
+
// page The page to return when getting (paginated) results. Must be 1 or higher.
880
+
// description The name of the audience(s) to return. You can search for partial matches. This is case-insensitive, meaning AUDIENCE and audience are considered identical. If omitted, the name of the audience(s) will not be used as a search criterion.
881
+
// status The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
882
+
// size The number of audiences per page. Default: 20 Max: 40
883
+
// createRoute How the audience was created. If omitted, all audiences are included. `OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window). `MESSAGING_API`: Return only audiences created with Messaging API.
Copy file name to clipboardExpand all lines: linebot/manage_audience/model_get_audience_data_response.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,4 +33,9 @@ type GetAudienceDataResponse struct {
33
33
* 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
* 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
0 commit comments