// Retrieve a list of all Days for a resource.
Retrieve a list of all Days for a resource.
// Retrieve a list of all Days for a resource .
func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*ListDayResponse, error) {
	path := "/v1/Exports/{ResourceType}/Days"
	path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	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 := &ListDayResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListDay ( ResourceType string , params * ListDayParams ) ( * ListDayResponse , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , ResourceType , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) 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 := & ListDayResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Retrieve a list of all Days for a resource.
Retrieve a list of all Days for a resource .