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

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

	recRes := &RecipientResponse{}
	err = json.Unmarshal(response, recRes)

	return recRes, err
}
// NewRecipients will create multiple new recipients. (POST)
NewRecipients will create multiple new recipients. (POST)
// NewRecipients will create multiple new recipients . ( POST )
func NewRecipients(recipients []*Recipient, apiKey string) (*RecipientResponse, error) {
	payload, err := json.Marshal(recipients)
	if err != nil {
		return nil, err
	}
	response, err := SendPOSTRequest(apiKey, "/contactdb/recipients", string(payload))
	if err != nil {
		return nil, err
	}
	recRes := &RecipientResponse{}
	err = json.Unmarshal(response, recRes)
	return recRes, err
}
func NewRecipients ( recipients [ ] * Recipient , apiKey string ) ( * RecipientResponse , error ) { payload , err := json . Marshal ( recipients ) if err != nil { return nil , err } response , err := SendPOSTRequest ( apiKey , " " , string ( payload ) ) if err != nil { return nil , err } recRes := & RecipientResponse { } err = json . Unmarshal ( response , recRes ) return recRes , err }
NewRecipients will create multiple new recipients.
NewRecipients will create multiple new recipients .