Skip to content

feat(contacts): add address field support #331

@beezly

Description

@beezly

Summary

gog contacts get doesn't return address fields, and gog contacts create/update don't support setting them, even though the Google People API supports them.

This is a follow-up to #198 / #199, which added org, title, URL, notes, and custom fields — but addresses were listed as medium priority and not included.

Requested Changes

  • Read: Include addresses in contactsGetReadMask and contactsReadMask so that gog contacts get displays stored addresses
  • Write: Add --address flag to gog contacts create and gog contacts update to set a street address

Example Usage

# Create contact with address
gog contacts create --given "Sophie" --family "Wadsworth"   --phone "+447547835757"   --address "114 Botany Ln, Lepton, Huddersfield HD8 0NF"

# Update existing contact
gog contacts update people/c123 --address "114 Botany Ln, Lepton, Huddersfield HD8 0NF"

# Get contact - should now show address
gog contacts get people/c123

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions