google-people

Android Google People API error: TokenResponseException: Missing parameter: code

匆匆过客 提交于 2019-12-12 12:35:36
问题 I've used up my way. I followed the tutorial(part 1 and 2) to use Google People API in my android project. It always hit an error saying parameter code is missing in the signed apk, and stucked at getting GoogleTokenResponse . It works fine in the debug version. What did I do wrong? And I have done all these: Changed SHA1 to released version. Replace downloaded google-services.json file downloaded from Firebase. Client ID and Client Secret using OAuth Client ID for web Invalidate caches

Deprecated Plus.PeopleApi.load

穿精又带淫゛_ 提交于 2019-12-12 08:53:02
问题 Now that Plus.API is deprecated in Google Play Services 9.4, what is correct way to get Google Plus circles for authenticated user on Android Application? Now We have deprecated method of loading plus users Plus.PeopleApi.load New documentation says: If your app needs social information and more extensive profile data, check out the Android Contacts Provider or the cross-platform People API. So I should go with Android Contacts Provider that seems to be a hard alternative (Because I have to

How to get profile ID of Connections using Google People API in Android?

倖福魔咒の 提交于 2019-12-12 04:02:09
问题 I'm working on an App and this app has a feature, which need profile ID of Google Account. I can get data using Google People API by using code: GoogleSignInOptions signInOptions = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) // The serverClientId is an OAuth 2.0 web client ID .requestServerAuthCode(getString(R.string.googleWebClientId)) .requestEmail() .requestScopes(new Scope(Scopes.PLUS_LOGIN), new Scope(PeopleScopes.CONTACTS_READONLY), new Scope(PeopleScopes.USER

google people api: assign/create contact group

天大地大妈咪最大 提交于 2019-12-11 14:11:52
问题 I cannot figure out how to create a new contact group and assign it to the contact using google people api in php. An error "person.memberships is a read only field." occurs at $person->setMemberships(): $contactGroup=new Google_Service_PeopleService_ContactGroup(); //$contactGroup->setGroupType('USER_CONTACT_GROUP'); $contactGroup->setName('Some group'); $contactGroup->create(); $cgm=new Google_Service_PeopleService_ContactGroupMembership(); $cgm->setContactGroupId('groupID'); $membership

403 error when calling Google People API

可紊 提交于 2019-12-11 06:28:36
问题 So I am trying call the Google People API with the following from the JS API: var request = gapi.client.people.people.get({ 'resourceName': 'people/me' }); With the objective of retrieving the users email to ensure that a give user is using their corporate Google account and not say their personal account for a Google Drive integration with an application. Its been about 26 hours now since the API was enabled on our application and we are still recieving this message back from the API: Google

People API of google versus contacts API

有些话、适合烂在心里 提交于 2019-12-07 05:06:09
问题 While trying to fetch contacts using google account of user , I am facing some issues after using people API.It only returns few email addresses out of all listed ones.Access token and all scopes have been set correctly. Code for following : People peopleService = new People.Builder(httpTransport, jsonFactory, credential) .build(); ListConnectionsResponse response = peopleService.people().connections().list("people/me") .setPageSize(500).setSortOrder("FIRST_NAME_ASCENDING") .setAccessToken

people.connections.list not returning contacts using Python Client Library

陌路散爱 提交于 2019-12-06 19:05:23
问题 I'm trying to programmatically access the list of contacts on my own personal Google Account using the Python Client Library This is a script that will run on a server without user input, so I have it set up to use credentials from a Service Account I set up. My Google API console setup looks like this. I'm using the following basic script, pulled from the examples provided in the API docs - import json from httplib2 import Http from oauth2client.service_account import

Does Google People API support ability to query

ε祈祈猫儿з 提交于 2019-12-06 06:15:48
问题 Does google people api support the ability to query? Currently, the older api contact google api allows you to use a query parameter "q" to do a simple text search. Was wondering if people api supports this? Thanks, Derek 回答1: Google People API currently does not support doing such a query. That functionality is one of the feature requests. 来源: https://stackoverflow.com/questions/41840383/does-google-people-api-support-ability-to-query

Cannot update photos with Google People API

▼魔方 西西 提交于 2019-12-05 15:57:39
https://developers.google.com/people/api/rest/v1/people/updateContact Here's the wiki on update contact using People API. The update works for fields like 'emailAddresses'. But 'coverPhotos' or 'photos' are not listed as valid value for 'updatePersonFields' and I get return code 400 if I try to update them. Is changing photos of a contact supported by this API? Or is there any other API that does this job? Currently you cannot update photos, there will be support for updating photos coming in the future. For now you'll need to use the old Contacts API to update photos . The cover photo is only

People API of google versus contacts API

自古美人都是妖i 提交于 2019-12-05 10:43:10
While trying to fetch contacts using google account of user , I am facing some issues after using people API.It only returns few email addresses out of all listed ones.Access token and all scopes have been set correctly. Code for following : People peopleService = new People.Builder(httpTransport, jsonFactory, credential) .build(); ListConnectionsResponse response = peopleService.people().connections().list("people/me") .setPageSize(500).setSortOrder("FIRST_NAME_ASCENDING") .setAccessToken(tokenResponse.getAccessToken()) .setAlt("json") .setRequestMaskIncludeField("person.names,person