Last active
August 19, 2020 21:17
-
-
Save Sytten/815c23b9d9e40ee963d698557c17ddc4 to your computer and use it in GitHub Desktop.
contacts-request
This file contains 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
const query = 'john' | |
const limit = 10 | |
const res = await client | |
.request({ | |
headers: { | |
'GData-Version': 3.0, | |
}, | |
params: { | |
alt: 'json', | |
'max-results': 3 * limit, | |
orderby: 'lastmodified', | |
q: query, | |
sortorder: 'descending', | |
}, | |
url: 'https://www.google.com/m8/feeds/contacts/default/full', | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment