예제 #1
0
from hapi.contacts import ContactsClient

api_key = 'Your API Key'

contact_client = ContactsClient(api_key=api_key)

data = {}
data['properties'] = []
data['properties'].append({
    'property': 'email',
    'value': '*****@*****.**'
})

data['properties'].append({'property': 'firstname', 'value': 'testing user'})

data['properties'].append({'property': 'phone', 'value': '09876543210'})

contact_client.create_a_contact(data=data)
예제 #2
0
 def setUp(self):
     self.client = ContactsClient(**helper.get_options())
     self.contacts = []