func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*ListCompositionHookResponse, error) {
	path := "/v1/CompositionHooks"

	data := url.Values{}
	headers := make(map[string]interface{})

	if params != nil && params.Enabled != nil {
		data.Set("Enabled", fmt.Sprint(*params.Enabled))
	}
	if params != nil && params.DateCreatedAfter != nil {
		data.Set("DateCreatedAfter", fmt.Sprint((*params.DateCreatedAfter).Format(time.RFC3339)))
	}
	if params != nil && params.DateCreatedBefore != nil {
		data.Set("DateCreatedBefore", fmt.Sprint((*params.DateCreatedBefore).Format(time.RFC3339)))
	}
	if params != nil && params.FriendlyName != nil {
		data.Set("FriendlyName", *params.FriendlyName)
	}
	if params != nil && params.PageSize != nil {
		data.Set("PageSize", fmt.Sprint(*params.PageSize))
	}

	resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}

	defer resp.Body.Close()

	ps := &ListCompositionHookResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}

	return ps, err
}
// List of all Recording CompositionHook resources.
List of all Recording CompositionHook resources.
// List of all Recording CompositionHook resources .
func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*ListCompositionHookResponse, error) {
	path := "/v1/CompositionHooks"
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.Enabled != nil {
		data.Set("Enabled", fmt.Sprint(*params.Enabled))
	}
	if params != nil && params.DateCreatedAfter != nil {
		data.Set("DateCreatedAfter", fmt.Sprint((*params.DateCreatedAfter).Format(time.RFC3339)))
	}
	if params != nil && params.DateCreatedBefore != nil {
		data.Set("DateCreatedBefore", fmt.Sprint((*params.DateCreatedBefore).Format(time.RFC3339)))
	}
	if params != nil && params.FriendlyName != nil {
		data.Set("FriendlyName", *params.FriendlyName)
	}
	if params != nil && params.PageSize != nil {
		data.Set("PageSize", fmt.Sprint(*params.PageSize))
	}
	resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &ListCompositionHookResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListCompositionHook ( params * ListCompositionHookParams ) ( * ListCompositionHookResponse , error ) { path := " " data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . Enabled != nil { data . Set ( " " , fmt . Sprint ( * params . Enabled ) ) } if params != nil && params . DateCreatedAfter != nil { data . Set ( " " , fmt . Sprint ( ( * params . DateCreatedAfter ) . Format ( time . RFC3339 ) ) ) } if params != nil && params . DateCreatedBefore != nil { data . Set ( " " , fmt . Sprint ( ( * params . DateCreatedBefore ) . Format ( time . RFC3339 ) ) ) } if params != nil && params . FriendlyName != nil { data . Set ( " " , * params . FriendlyName ) } if params != nil && params . PageSize != nil { data . Set ( " " , fmt . Sprint ( * params . PageSize ) ) } resp , err := c . requestHandler . Get ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & ListCompositionHookResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
List of all Recording CompositionHook resources.
List of all Recording CompositionHook resources .