Insert contact?
Closed this issue · 2 comments
colegleason commented
How might I insert a contact using this library? I want to have the user be able to share photos and such with my app.
SamyPesse commented
Contacts will not be really hard to add in glass.py using the api (https://developers.google.com/glass/v1/reference/contacts), I will take some times soon to add it.
List
contacts = user.contacts.list()
for contact in user.contacts:
print "%s : %s" % (contact.get("id"), contact.get("displayName"))
Insert
user.contacts.insert(displayName="John Doe", id="johndoe", imageUrls=["http://.....png"])
SamyPesse commented
Done for the basics (https://github.com/SamyPesse/glass.py#managing-user-contacts)
Let me know if you need anything else or if there is an issue.