0
연락처 나 그룹과 CRUD를 할 수는 있지만 특정 그룹에 연락처를 추가하는 방법을 알 수 없습니다.Google 연락처 v3 API + 연락처를 그룹에 추가하는 방법
누군가 나를 도울 수 있습니까?
연락처 나 그룹과 CRUD를 할 수는 있지만 특정 그룹에 연락처를 추가하는 방법을 알 수 없습니다.Google 연락처 v3 API + 연락처를 그룹에 추가하는 방법
누군가 나를 도울 수 있습니까?
def get_group_id(label_name):
feed = gd_client.GetGroups()
for entry in feed.entry:
if entry.title.text.lower() == label_name:
return entry.id.text
contact_entry = gdata.contacts.data.ContactEntry() #contact_entry
group = get_group_id(label_name) #group id
membership = gdata.contacts.data.GroupMembershipInfo(href=group) #group membership
contact_entry.group_membership_info.append(membership) # adding group membership to contact_entry