func SearchRecipientsConditions(conditions *SearchCondition, apiKey string) ([]*Recipient, error) {
	payload, err := json.Marshal(conditions)
	if err != nil {
		return nil, err
	}

	response, err := SendPOSTRequest(apiKey, "/contactdb/recipients/search", string(payload))
	if err != nil {
		return nil, err
	}

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

	return recipients.Recipients, nil
}
// SearchRecipientsConditions will search for specific recipients using a SearchCondition. (GET)
SearchRecipientsConditions will search for specific recipients using a SearchCondition. (GET)
// SearchRecipientsConditions will search for specific recipients using a SearchCondition . ( GET )
func SearchRecipientsConditions(conditions *SearchCondition, apiKey string) ([]*Recipient, error) {
	payload, err := json.Marshal(conditions)
	if err != nil {
		return nil, err
	}
	response, err := SendPOSTRequest(apiKey, "/contactdb/recipients/search", string(payload))
	if err != nil {
		return nil, err
	}
	recipients := &recipientList{}
	err = json.Unmarshal(response, recipients)
	if err != nil {
		return nil, err
	}
	return recipients.Recipients, nil
}
func SearchRecipientsConditions ( conditions * SearchCondition , apiKey string ) ( [ ] * Recipient , error ) { payload , err := json . Marshal ( conditions ) if err != nil { return nil , err } response , err := SendPOSTRequest ( apiKey , " " , string ( payload ) ) if err != nil { return nil , err } recipients := & recipientList { } err = json . Unmarshal ( response , recipients ) if err != nil { return nil , err } return recipients . Recipients , nil }
SearchRecipientsConditions will search for specific recipients using a SearchCondition.
SearchRecipientsConditions will search for specific recipients using a SearchCondition .