func GetAllCustomFields(apiKey string) ([]*CustomField, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/custom_fields")
	if err != nil {
		return nil, err
	}

	customFields := &customFields{}
	err = json.Unmarshal(response, customFields)
	if err != nil {
		return nil, err
	}

	return customFields.CustomFields, nil
}
// GetAllCustomFields returns all of your custom fields. (GET)
GetAllCustomFields returns all of your custom fields. (GET)
// GetAllCustomFields returns all of your custom fields . ( GET )
func GetAllCustomFields(apiKey string) ([]*CustomField, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/custom_fields")
	if err != nil {
		return nil, err
	}
	customFields := &customFields{}
	err = json.Unmarshal(response, customFields)
	if err != nil {
		return nil, err
	}
	return customFields.CustomFields, nil
}
func GetAllCustomFields ( apiKey string ) ( [ ] * CustomField , error ) { response , err := SendGETRequest ( apiKey , " " ) if err != nil { return nil , err } customFields := & customFields { } err = json . Unmarshal ( response , customFields ) if err != nil { return nil , err } return customFields . CustomFields , nil }
GetAllCustomFields returns all of your custom fields.
GetAllCustomFields returns all of your custom fields .