gsmpeople

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gsmpeople implements the People API

Index

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

func DeleteContact(resourceName string) (bool, error)

DeleteContact deletes a contact person. Any non-contact data will not be deleted.

func DeleteContactGroup

func DeleteContactGroup(resourceName string, deleteContacts bool) (bool, error)

DeleteContactGroup deletes an existing contact group owned by the authenticated user by specifying a contact group resource name.

func DeleteContactPhoto

func DeleteContactPhoto(resourceName, personFields, sources, fields string) (bool, error)

DeleteContactPhoto deletes a contact's photo.

func GetContact

func GetContact(resourceName, personFields, sources, fields string) (*people.Person, error)

GetContact provides information about a person by specifying a resource name. Use people/me to indicate the authenticated user.

func GetContactGroup

func GetContactGroup(resourceName, fields string, maxMembers int64) (*people.ContactGroup, error)

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

func ListContactGroups(fields string, cap int) (<-chan *people.ContactGroup, <-chan error)

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

func ListOtherContacts(readMask, fields string, cap int) (<-chan *people.Person, <-chan error)

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 SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL