Skip to content

Instantly share code, notes, and snippets.

@Sytten
Last active August 19, 2020 21:18
Show Gist options
  • Save Sytten/66a7c4ace538f85e24618d4d8d6d58d4 to your computer and use it in GitHub Desktop.
Save Sytten/66a7c4ace538f85e24618d4d8d6d58d4 to your computer and use it in GitHub Desktop.
contacts-extract
type Contact = {
id: {
$t: string
}
gd$name?: {
gd$givenName?: {
$t: string
}
gd$familyName?: {
$t: string
}
}
gd$email?: {
address: string
}[]
gContact$groupMembershipInfo?: {
href: string
}[]
}
const data = res.data as any
let contacts = data.feed.entry as Contact[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment