google-people-api

People API - QUOTA_EXCEEDED / FBS quota limit exceeded

ぃ、小莉子 提交于 2021-02-17 02:11:30
问题 The google people api page says correctly how to authenticate and list 10 example contacts and everything works perfectly: https://developers.google.com/people/quickstart/python I can authenticate and list 10 perfectly but I'm having an error when trying to create new contacts. The api is returning me the following error: HttpError: <HttpError 429 when requesting https://people.googleapis.com/v1/people:createContact?alt=json returned "Resource has been exhausted (e.g. check quota).". Details:

Google People Api: Country not returned in Adresses field

[亡魂溺海] 提交于 2021-02-11 12:41:17
问题 I am trying to get the authenticated user's country by specifying "addresses" field in the People Api request as specified here. This is the code: router.post("/test_scope", (req, res) => { const { idToken, accessToken } = req.body; authenticationServices .validateGoogleAccessToken(idToken, accessToken) .then((response) => { res.json(response); }); }); const validateGoogleAccessToken = async (idToken, accessToken) => { try { const CLIENT_ID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps

Google People API listDirectoryPeople is not returning names for any users in the directory

穿精又带淫゛_ 提交于 2021-02-11 12:29:40
问题 The api found here: https://developers.google.com/people/api/rest/v1/people/listDirectoryPeople with a readmask of metadata, names, emailAddresses is not returning names for any of the users in the directory anymore using the interface found on that page. It used to return names this is a change in the last week. Any ideas? 回答1: I opened another post with a related problem. This solution works to me: you have to register to Google Currents in order to get your name for your user. I hope that

Google People API - ordering by the update time not working as expected

不打扰是莪最后的温柔 提交于 2021-01-29 15:48:23
问题 I've been successfully using Google People API for retrieving my Google contacts, but I've discovered that API does not sort correctly by the last update time (eg. using setSortOrder("LAST_MODIFIED_DESCENDING") ). What's more, it turns out that there is an interesting pattern when looking at the output of this code: private static void getLastModified() throws GeneralSecurityException, IOException { PeopleService service = getService(); ListConnectionsResponse response = service.people()

Google, people api, how can I create a contact in a group

梦想的初衷 提交于 2021-01-29 09:56:12
问题 With people.createContact I can easily create a contact in myContacts. But how do I create a contact in a special group ?? 回答1: You can create the contact with the method - people.createContact, as you are probably already doing. All you have to change is to specify a membership: "memberships": [ { "contactGroupMembership": { "contactGroupResourceName": "contactGroups/PASTE_HERE_THE_NAME_OF_THE_GROUP" } } ] Have a look at this sample. 来源: https://stackoverflow.com/questions/60000605/google

google people.api, how to get members of a specific group?

試著忘記壹切 提交于 2020-06-28 03:46:17
问题 with people.api I can only read the people in the main group, with people.connections.list: GET https://people.googleapis.com/v1/people/Me/connections with MS REST.api I can also read the people in a sub-group GET https://outlook.office.com/api/v2.0/me/contacts GET https://outlook.office.com/api/v2.0/me/contactfolders/{contact_folder_id}/contact I know that I can use contactGroups.get to find the resource names. But then I need one people.get request for each resource name. Unfortunately,

c# - People API does not return email address

我怕爱的太早我们不能终老 提交于 2019-12-11 18:31:30
问题 I am trying to get the email address and name of the logged-in user. I can see the name of the user but the email address shows null. Here is the code I have written to retrieve both the values: using Google.Apis.Auth.OAuth2; using Google.Apis.People.v1; using System.Net; using System.Threading; using Google.Apis.Services; using Google.Apis.People.v1.Data; UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync( new ClientSecrets { ClientId = "jfms2vr52dm9eghchabasa5.apps