func SearchRecipients(fieldValues map[string]string, apiKey string) ([]*Recipient, error) {
	path := QueryBuilder("/contactdb/recipients/search", fieldValues)

	response, err := SendGETRequest(apiKey, path)
	if err != nil {
		return nil, err
	}

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

	return recipients.Recipients, nil
}
// SearchRecipients will search for specific recipients with the specified field-value pairs. (GET)
SearchRecipients will search for specific recipients with the specified field-value pairs. (GET)
// SearchRecipients will search for specific recipients with the specified field - value pairs . ( GET )
func SearchRecipients(fieldValues map[string]string, apiKey string) ([]*Recipient, error) {
	path := QueryBuilder("/contactdb/recipients/search", fieldValues)
	response, err := SendGETRequest(apiKey, path)
	if err != nil {
		return nil, err
	}
	recipients := &recipientList{}
	err = json.Unmarshal(response, recipients)
	if err != nil {
		return nil, err
	}
	return recipients.Recipients, nil
}
func SearchRecipients ( fieldValues map [ string ] string , apiKey string ) ( [ ] * Recipient , error ) { path := QueryBuilder ( " " , fieldValues ) response , err := SendGETRequest ( apiKey , path ) if err != nil { return nil , err } recipients := & recipientList { } err = json . Unmarshal ( response , recipients ) if err != nil { return nil , err } return recipients . Recipients , nil }
SearchRecipients will search for specific recipients with the specified field-value pairs.
SearchRecipients will search for specific recipients with the specified field - value pairs .