+ def add_email_to_group(self, email, group_id):
+ contact_id = self.create_or_update_contact(email)
+ self.add_contact_to_group(contact_id, group_id)
+
+ def add_contact_to_group(self, contact_id, group_id):
+ self.request(
+ 'GroupContact',
+ 'create',
+ {
+ "values": {
+ "group_id": group_id,
+ "contact_id": contact_id,
+ }
+ }
+ )