Last active
August 19, 2020 21:18
-
-
Save Sytten/66a7c4ace538f85e24618d4d8d6d58d4 to your computer and use it in GitHub Desktop.
contacts-extract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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