Documentation ¶
Overview ¶
Package gsmpeople implements the People API
Index ¶
- func BatchGetContactGroups(resourceNames []string, maxMembers int64, fields string) (*people.BatchGetContactGroupsResponse, error)
- func CopyOtherContactToMyContactsGroup(resourceName, fields string, ...) (*people.Person, error)
- func CreateContact(person *people.Person, personFields, sources, fields string) (*people.Person, error)
- func CreateContactGroup(createContactGroupRequest *people.CreateContactGroupRequest, fields string) (*people.ContactGroup, error)
- func DeleteContact(resourceName string) (bool, error)
- func DeleteContactGroup(resourceName string, deleteContacts bool) (bool, error)
- func DeleteContactPhoto(resourceName, personFields, sources, fields string) (bool, error)
- func GetContact(resourceName, personFields, sources, fields string) (*people.Person, error)
- func GetContactGroup(resourceName, fields string, maxMembers int64) (*people.ContactGroup, error)
- func GetContactsBatch(resourceNames []string, personFields, sources, fields string) (*people.GetPeopleResponse, error)
- func ListContactGroups(fields string, cap int) (<-chan *people.ContactGroup, <-chan error)
- func ListDirectoryPeople(readMask, sources, fields string, mergeSources []string, cap int) (<-chan *people.Person, <-chan error)
- func ListOtherContacts(readMask, fields string, cap int) (<-chan *people.Person, <-chan error)
- func ListPeopleConnections(resourceName, personFields, sources, sortOrder, fields string, cap int) (<-chan *people.Person, <-chan error)
- func ModifyContactGroupMembers(resourceName, fields string, ...) (*people.ModifyContactGroupMembersResponse, error)
- func SearchDirectoryPeople(readMask, sources, query, fields string, mergeSources []string, cap int) (<-chan *people.Person, <-chan error)
- func SetClient(c *http.Client)
- func UpdateContact(resourceName, updatePersonFields, personFields, sources, fields string, ...) (*people.Person, error)
- func UpdateContactGroup(resourceName, fields string, ...) (*people.ContactGroup, error)
- func UpdateContactPhoto(resourceName, fields string, ...) (*people.Person, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchGetContactGroups ¶
func BatchGetContactGroups(resourceNames []string, maxMembers int64, fields string) (*people.BatchGetContactGroupsResponse, error)
BatchGetContactGroups gets a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
func CopyOtherContactToMyContactsGroup ¶
func CopyOtherContactToMyContactsGroup(resourceName, fields string, copyOtherContactToMyContactsGroupRequest *people.CopyOtherContactToMyContactsGroupRequest) (*people.Person, error)
CopyOtherContactToMyContactsGroup copies an "Other contact" to a new contact in the user's "myContacts" group
func CreateContact ¶
func CreateContact(person *people.Person, personFields, sources, fields string) (*people.Person, error)
CreateContact creates a new contact and returns the person resource for that contact.
func CreateContactGroup ¶
func CreateContactGroup(createContactGroupRequest *people.CreateContactGroupRequest, fields string) (*people.ContactGroup, error)
CreateContactGroup creates a new contact group owned by the authenticated user.
func DeleteContact ¶
DeleteContact deletes a contact person. Any non-contact data will not be deleted.
func DeleteContactGroup ¶
DeleteContactGroup deletes an existing contact group owned by the authenticated user by specifying a contact group resource name.
func DeleteContactPhoto ¶
DeleteContactPhoto deletes a contact's photo.
func GetContact ¶
GetContact provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user.
func GetContactGroup ¶
GetContactGroup gets a specific contact group owned by the authenticated user by specifying a contact group resource name.
func GetContactsBatch ¶
func GetContactsBatch(resourceNames []string, personFields, sources, fields string) (*people.GetPeopleResponse, error)
GetContactsBatch provides information about a list of specific people by specifying a list of requested resource names. Use people/me to indicate the authenticated user.
func ListContactGroups ¶
ListContactGroups lists all contact groups owned by the authenticated user. Members of the contact groups are not populated.
func ListDirectoryPeople ¶
func ListDirectoryPeople(readMask, sources, fields string, mergeSources []string, cap int) (<-chan *people.Person, <-chan error)
ListDirectoryPeople provides a list of domain profiles and domain contacts in the authenticated user's domain directory.
func ListOtherContacts ¶
ListOtherContacts lists all "Other contacts", that is contacts that are not in a contact group. "Other contacts" are typically auto created contacts from interactions.
func ListPeopleConnections ¶
func ListPeopleConnections(resourceName, personFields, sources, sortOrder, fields string, cap int) (<-chan *people.Person, <-chan error)
ListPeopleConnections provides a list of the authenticated user's contacts.
func ModifyContactGroupMembers ¶
func ModifyContactGroupMembers(resourceName, fields string, modifyContactGroupMembersRequest *people.ModifyContactGroupMembersRequest) (*people.ModifyContactGroupMembersResponse, error)
ModifyContactGroupMembers modifies the members of a contact group owned by the authenticated user.
func SearchDirectoryPeople ¶
func SearchDirectoryPeople(readMask, sources, query, fields string, mergeSources []string, cap int) (<-chan *people.Person, <-chan error)
SearchDirectoryPeople provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query.
func UpdateContact ¶
func UpdateContact(resourceName, updatePersonFields, personFields, sources, fields string, person *people.Person) (*people.Person, error)
UpdateContact updates a new contact and returns the person resource for that contact.
func UpdateContactGroup ¶
func UpdateContactGroup(resourceName, fields string, updateContactGroupRequest *people.UpdateContactGroupRequest) (*people.ContactGroup, error)
UpdateContactGroup updates a new contact group owned by the authenticated user.
func UpdateContactPhoto ¶
func UpdateContactPhoto(resourceName, fields string, updateContactPhotoRequest *people.UpdateContactPhotoRequest) (*people.Person, error)
UpdateContactPhoto updates a contact's photo.
Types ¶
This section is empty.