google-contacts-api

GoogleWebAuthorizationBroker is not working from IIS Host

烈酒焚心 提交于 2019-11-27 19:37:17
问题 I am using the following code to authenticate to Google using the Google .Net client library. public static void auth() { string clientId = "xxxxxx.apps.googleusercontent.com"; string clientSecret = "xxxxx"; string[] scopes = new string[] { "https://www.googleapis.com/auth/contacts.readonly" }; // view your basic profile info. try { // Use the current Google .net client library to get the Oauth2 stuff. UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets {

I keep getting an error that my app needs to be verified when either I or another user try to authorize with OAuth2. What does that mean?

点点圈 提交于 2019-11-27 18:51:12
I received this error when trying to authorize my app with my own account: Your project is trying to access scopes that need to go through the verification process. {invalid=https://www.googleapis.com/auth/contacts} If you need to use one of these scopes, submit a verification request. Learn More When I use a different account, the error message is different: This app hasn’t been verified to access: {invalid=https://www.googleapis.com/auth/contacts} Are you the developer? If this project needs these scopes, sign in to an account with access to edit your project and try again. If not, contact

Getting google contacts with javascript

醉酒当歌 提交于 2019-11-27 16:40:15
问题 How can I get the contacts of a user that has already authenticated using OAuth 2, using Javascript? The authentication is already made, so I need only how to get the contact list. I have read that Google Contacts Api 1 and 2 had some examples for Javascript codes, but i can't find anything on the Google Contacts V3 site. Could it be that this can no more be done? 回答1: Google Contacts API v3 does not provide a JavaScript SDK. However, if you want to handle the contact importing on the client

Get google plus user friends

久未见 提交于 2019-11-27 04:42:39
问题 In the Google+ API there is a method to search for public friends. However, I do not see a way to get user friends. Is there any way to get the Google+ user's friends? 回答1: There currently is no API access to circles and friends in Googel+. There is an open feature request you can star to get notified if an API method is added. Alternatively you can use the Google Contacts API. This has the downside of being a scarier permission dialog because there is not a read only permission. 来源: https:/

I keep getting an error that my app needs to be verified when either I or another user try to authorize with OAuth2. What does that mean?

独自空忆成欢 提交于 2019-11-26 22:44:19
问题 I received this error when trying to authorize my app with my own account: Your project is trying to access scopes that need to go through the verification process. {invalid=https://www.googleapis.com/auth/contacts} If you need to use one of these scopes, submit a verification request. Learn More When I use a different account, the error message is different: This app hasn’t been verified to access: {invalid=https://www.googleapis.com/auth/contacts} Are you the developer? If this project

Retrieving information about a contact with Google People API (Java)

女生的网名这么多〃 提交于 2019-11-26 21:01:02
问题 I am using an example of recently released Google's People API from here. I have extended a sample a bit to display additional information about the contact such as an email address and a phone number. The code that should do the job is presented below. public class PeopleQuickstart { ... public static void getPersonInfo(Person person){ // Get names List<Name> names = person.getNames(); if(names != null && names.size() > 0) { for(Name personName: names) { System.out.println("Name: " +

Google Contacts API vs People API

好久不见. 提交于 2019-11-26 19:09:48
I'm having a problem with the 2 APIs above. Given the next scenario: I have 2 different google accounts. One that doesn't use Google+ and a second account that uses Google+ When using Contacts API on the first account that doesn't use Google+ I can see all my contacts: GET /m8/feeds/contacts/<email>/full Same for the second account that uses Google+. When I'm using People API for the first account that doesn't use Google+, I'm getting an empty response (actually I'm getting just the next sync token: GET https://people.googleapis.com/v1/people/me/connections With the next scope: https://www

Google Contacts API vs People API

 ̄綄美尐妖づ 提交于 2019-11-26 06:48:21
问题 I\'m having a problem with the 2 APIs above. Given the next scenario: I have 2 different google accounts. One that doesn\'t use Google+ and a second account that uses Google+ When using Contacts API on the first account that doesn\'t use Google+ I can see all my contacts: GET /m8/feeds/contacts/<email>/full Same for the second account that uses Google+. When I\'m using People API for the first account that doesn\'t use Google+, I\'m getting an empty response (actually I\'m getting just the

get contact info from android contact picker

时光毁灭记忆、已成空白 提交于 2019-11-26 03:48:49
I'm trying to call the contact picker, get the persons name, phone and e-mail into strings and send them to another activity using an intent. So far this works: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(intent, 1); // ... @Override public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); if (resultCode == Activity.RESULT_OK) { Uri contactData = data.getData(); Cursor c = managedQuery(contactData, null, null, null, null); if (c.moveToFirst()) { String name = c

get contact info from android contact picker

烈酒焚心 提交于 2019-11-26 01:52:57
问题 I\'m trying to call the contact picker, get the persons name, phone and e-mail into strings and send them to another activity using an intent. So far this works: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(intent, 1); // ... @Override public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); if (resultCode == Activity.RESULT_OK) { Uri contactData = data.getData()