// Retrieve a list of all End User for an account.
Retrieve a list of all End User for an account.
// Retrieve a list of all End User for an account .
func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*ListEndUserResponse, error) {
	path := "/v1/EndUsers"
	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 := &ListEndUserResponse{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) ListEndUser ( params * ListEndUserParams ) ( * ListEndUserResponse , error ) { path := " " 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 := & ListEndUserResponse { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Retrieve a list of all End User for an account.
Retrieve a list of all End User for an account .