Skip to main content

contacts.getSaved

Get all contacts, requires a takeout session, see here » for more info.

func (c *Client) ContactsGetSaved(ctx context.Context) ([]SavedPhoneContact, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.ContactsGetSaved(ctx)
if err != nil {
return err
}
_ = res // []SavedPhoneContact
return nil
})

Parameters

This method takes no parameters.

Returns

[]SavedPhoneContact

Possible errors

CodeTypeDescription
400TAKEOUT_INVALIDThe specified takeout ID is invalid.
403TAKEOUT_REQUIREDA takeout¹ session needs to be initialized first, see here » for more info².

References