google / gdata-python-client

443 stars 227 forks source link

Facing issue when create shared contacts - AttributeError #70

Closed manirhel-zz closed 3 years ago

manirhel-zz commented 3 years ago

Hi,

I'm facing the below AttributeError when i run the code. kindly help me onthis.

import domain_shared_contacts_client
import json
# Create the client. Authenticates to the Google Data API using the service account credentials provided
client = domain_shared_contacts_client.Client(
domain='example.com',
admin='admin@example.com',
credentials='credentials.json')
# Fetch the list of contacts currently available
contacts = client.get_contacts()
print json.dumps(contacts, default=contacts_helper.convert_contacts)

ERROR E:\pythonProject\venv\Scripts\python.exe E:/pythonProject/create.py Traceback (most recent call last): File "E:/pythonProject/create.py", line 4, in client = domain_shared_contacts_client.Client( AttributeError: 'module' object has no attribute 'Client'

Thanks!