func GetSegment(segID, apiKey string) (*Segment, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/segments/"+segID+"?segment_id="+segID)
	if err != nil {
		return nil, err
	}

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

	return segment, nil
}
// GetSegment will return a specific segment by ID. (GET)
GetSegment will return a specific segment by ID. (GET)
// GetSegment will return a specific segment by ID . ( GET )
func GetSegment(segID, apiKey string) (*Segment, error) {
	response, err := SendGETRequest(apiKey, "/contactdb/segments/"+segID+"?segment_id="+segID)
	if err != nil {
		return nil, err
	}
	segment := &Segment{}
	err = json.Unmarshal(response, segment)
	if err != nil {
		return nil, err
	}
	return segment, nil
}
func GetSegment ( segID , apiKey string ) ( * Segment , error ) { response , err := SendGETRequest ( apiKey , " " + segID + " " + segID ) if err != nil { return nil , err } segment := & Segment { } err = json . Unmarshal ( response , segment ) if err != nil { return nil , err } return segment , nil }
GetSegment will return a specific segment by ID.
GetSegment will return a specific segment by ID .