func NewContactList(name, apiKey string) (*ContactList, error) {
	byteArr, err := json.Marshal(ContactList{
		Name: name,
	})
	if err != nil {
		return nil, err
	}

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

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

	return contactList, nil
}
// NewContactList creates a new contact list. (POST)
NewContactList creates a new contact list. (POST)
// NewContactList creates a new contact list . ( POST )
func NewContactList(name, apiKey string) (*ContactList, error) {
	byteArr, err := json.Marshal(ContactList{
		Name: name,
	})
	if err != nil {
		return nil, err
	}
	response, err := SendPOSTRequest(apiKey, "/contactdb/lists", string(byteArr))
	if err != nil {
		return nil, err
	}
	contactList := &ContactList{}
	err = json.Unmarshal(response, contactList)
	if err != nil {
		return nil, err
	}
	return contactList, nil
}
func NewContactList ( name , apiKey string ) ( * ContactList , error ) { byteArr , err := json . Marshal ( ContactList { Name : name , } ) if err != nil { return nil , err } response , err := SendPOSTRequest ( apiKey , " " , string ( byteArr ) ) if err != nil { return nil , err } contactList := & ContactList { } err = json . Unmarshal ( response , contactList ) if err != nil { return nil , err } return contactList , nil }
NewContactList creates a new contact list.
NewContactList creates a new contact list .