func GetSegmentRecipients(segID, apiKey string) ([]*Recipient, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/segments/"+segID+"/recipients")
	if err != nil {
		return nil, err
	}

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

	return recipients.Recipients, nil
}
// GetSegmentRecipients will return all of the recipients of a segment. (GET)
GetSegmentRecipients will return all of the recipients of a segment. (GET)
// GetSegmentRecipients will return all of the recipients of a segment . ( GET )
func GetSegmentRecipients(segID, apiKey string) ([]*Recipient, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/segments/"+segID+"/recipients")
	if err != nil {
		return nil, err
	}
	recipients := &recipientList{}
	err = json.Unmarshal(response, recipients)
	if err != nil {
		return nil, err
	}
	return recipients.Recipients, nil
}
func GetSegmentRecipients ( segID , apiKey string ) ( [ ] * Recipient , error ) { response , err := SendGETRequest ( apiKey , " " + segID + " " ) if err != nil { return nil , err } recipients := & recipientList { } err = json . Unmarshal ( response , recipients ) if err != nil { return nil , err } return recipients . Recipients , nil }
GetSegmentRecipients will return all of the recipients of a segment.
GetSegmentRecipients will return all of the recipients of a segment .